Interface ApplicationRepository<D extends com.broadleafcommerce.data.tracking.core.Trackable>

Type Parameters:
D - General domain type that derives from Trackable
All Superinterfaces:
com.broadleafcommerce.common.extension.DomainTypeAware, com.broadleafcommerce.common.messaging.notification.NotificationStateRepository, org.springframework.data.repository.Repository<D,String>, com.broadleafcommerce.data.tracking.core.TrackableRepository<D>, com.broadleafcommerce.data.tracking.core.TrackableRsqlFilterExecutor<D>
All Known Subinterfaces:
JpaApplicationRepository<D>

@NoRepositoryBean public interface ApplicationRepository<D extends com.broadleafcommerce.data.tracking.core.Trackable> extends com.broadleafcommerce.data.tracking.core.TrackableRepository<D>, com.broadleafcommerce.data.tracking.core.TrackableRsqlFilterExecutor<D>
Repository agnostic interface. Generally extended by another interface that is declared against a specific repository domain type.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.data.domain.Page<D>
    findAllByDeactivated(boolean deactivated, cz.jirutka.rsql.parser.ast.Node filters, org.springframework.data.domain.Pageable pageInfo, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Finds all Applications where Application.isDeactivated() matches the param deactivated
    findByContextIdAndDeactivated(String contextId, boolean isDeactivated, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Read the application by its Application.getId() and Application.isDeactivated().
    findByIdentifierValueAndDeactivated(String identifierValue, boolean isDeactivated, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    findByIdentifierValueAndIdentifierTypeAndDeactivated(String identifierValue, String identifierType, boolean isDeactivated, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    findByToken(String applicationToken, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Read the application by it's Application.getToken().
    org.springframework.data.domain.Page<D>
    readAllByContextIdIn(Collection<String> applicationId, cz.jirutka.rsql.parser.ast.Node filters, org.springframework.data.domain.Pageable page, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
     
    org.springframework.data.domain.Page<D>
    readAllByContextIdInAndDeactivated(Collection<String> applicationId, boolean deactivated, cz.jirutka.rsql.parser.ast.Node filters, org.springframework.data.domain.Pageable page, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
     

    Methods inherited from interface com.broadleafcommerce.common.messaging.notification.NotificationStateRepository

    findNotificationReadyMembers, setFailedNotificationAttempt, setNotificationAcknowledged

    Methods inherited from interface com.broadleafcommerce.data.tracking.core.TrackableRepository

    archive, existsByContextId, findAll, findAll, findAll, findAll, findAll, findAll, findAllByContextId, findByContextId, findByContextIdAndCatalog, findByNativeId, findDeployable, findMaxSortMember, findMinSortMember, findOriginal, findPromotable, findPromoteOrientedItems, findRebasable, findRejectable, findRevertable, findTarget, getDomainType, getEntityInformation, getTrackableBehaviorUtil, getTypesToRegisterInMappingContext, pruneChangeDetails, pruneRestingNotificationStates, purgeObsoleteSandboxData, save, saveAll, setTrackableBehaviorUtil

    Methods inherited from interface com.broadleafcommerce.data.tracking.core.TrackableRsqlFilterExecutor

    exists, findAll, findAll, findAll, findAll
  • Method Details

    • findByToken

      Optional<D> findByToken(String applicationToken, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Read the application by it's Application.getToken().
      Parameters:
      applicationToken - the application token
      contextInfo - the context info
      Returns:
      the application
    • findByIdentifierValueAndIdentifierTypeAndDeactivated

      Optional<D> findByIdentifierValueAndIdentifierTypeAndDeactivated(String identifierValue, String identifierType, boolean isDeactivated, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Parameters:
      identifierValue - the Application.getIdentifierValue()
      identifierType - the Application.getIdentifierType()
      isDeactivated - whether the application is Application.isDeactivated() deactivated}.
      contextInfo - context information related to multitenancy. Often used to validate visibility and mutability of persistence operations for a catalog.
      Returns:
      the application with the matching Application.getIdentifierValue()
    • findAllByDeactivated

      org.springframework.data.domain.Page<D> findAllByDeactivated(boolean deactivated, @Nullable cz.jirutka.rsql.parser.ast.Node filters, @Nullable org.springframework.data.domain.Pageable pageInfo, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Finds all Applications where Application.isDeactivated() matches the param deactivated
      Parameters:
      deactivated - Whether to find deactived or active applications
      filters - additional filters to apply in the query, can be null
      pageInfo - the requested page of results from the database
      contextInfo - context information related to multitenancy. Often used to validate visibility and mutability of persistence operations for a catalog.
      Returns:
      all Applications where Application.isDeactivated() matches the param deactivated
    • findByIdentifierValueAndDeactivated

      Optional<D> findByIdentifierValueAndDeactivated(String identifierValue, boolean isDeactivated, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Parameters:
      identifierValue - the Application.getIdentifierValue()
      isDeactivated - whether the application is Application.isDeactivated() deactivated}.
      contextInfo - context information related to multitenancy. Often used to validate visibility and mutability of persistence operations for a catalog.
      Returns:
      the application with the matching Application.getIdentifierValue()
    • findByContextIdAndDeactivated

      Optional<D> findByContextIdAndDeactivated(String contextId, boolean isDeactivated, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Read the application by its Application.getId() and Application.isDeactivated().
      Parameters:
      contextId - the Application.getId()
      isDeactivated - whether the application is Application.isDeactivated() deactivated}.
      contextInfo - context information related to multitenancy. Often used to validate visibility and mutability of persistence operations for a catalog.
      Returns:
      the application with the matching Application.getIdentifierValue()
    • readAllByContextIdIn

      org.springframework.data.domain.Page<D> readAllByContextIdIn(Collection<String> applicationId, cz.jirutka.rsql.parser.ast.Node filters, org.springframework.data.domain.Pageable page, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    • readAllByContextIdInAndDeactivated

      org.springframework.data.domain.Page<D> readAllByContextIdInAndDeactivated(Collection<String> applicationId, boolean deactivated, cz.jirutka.rsql.parser.ast.Node filters, org.springframework.data.domain.Pageable page, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)