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 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()
    • findByIdentifierValueIgnoreCaseAndIdentifierTypeAndDeactivated

      Optional<D> findByIdentifierValueIgnoreCaseAndIdentifierTypeAndDeactivated(String identifierValue, String identifierType, boolean isDeactivated, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Read the application by its Application.getIdentifierValue() (case-insensitive) and Application.getIdentifierValue().
      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()
    • findByIdentifierValueIgnoreCaseAndDeactivated

      Optional<D> findByIdentifierValueIgnoreCaseAndDeactivated(String identifierValue, boolean isDeactivated, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Read the application by its Application.getIdentifierValue() (case-insensitive) and Application.isDeactivated().
      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)