Interface ContentFolderItemRepository<D extends com.broadleafcommerce.data.tracking.core.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:
JpaContentFolderItemRepository<D>

@NoRepositoryBean public interface ContentFolderItemRepository<D extends com.broadleafcommerce.data.tracking.core.Trackable> extends com.broadleafcommerce.data.tracking.core.TrackableRepository<D>, com.broadleafcommerce.data.tracking.core.TrackableRsqlFilterExecutor<D>
Repository for persistent counter-parts of FolderItems.
Author:
Jon Fleschler (jfleschler)
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    existsByFolderContextId(String folderId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Returns whether there are any folder items with folderId as their ContentFolderItem#folder.
    findAllByContentItemContextIdIn(Collection<String> contentItemContextIds, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Returns all folder items with the given content item context ID.
    findAllByFolderContextId(String folderContextId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Returns a list of the children folder items of the given folder by finding all folder items whose folder context ID matches the given ID.
    org.springframework.data.domain.Page<D>
    findAllByFolderContextId(String folderContextId, cz.jirutka.rsql.parser.ast.Node filters, org.springframework.data.domain.Pageable pageInfo, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Returns the children folder items of the given folder by finding all folder items whose folder context ID matches the given ID.
    org.springframework.data.domain.Page<D>
    findAllByFolderContextIdIsNull(cz.jirutka.rsql.parser.ast.Node filters, org.springframework.data.domain.Pageable pageInfo, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Returns all root folder items.

    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

    • findAllByFolderContextId

      @Policy(operationTypes=READ) org.springframework.data.domain.Page<D> findAllByFolderContextId(@NonNull String folderContextId, @Nullable cz.jirutka.rsql.parser.ast.Node filters, @Nullable org.springframework.data.domain.Pageable pageInfo, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Returns the children folder items of the given folder by finding all folder items whose folder context ID matches the given ID.
      Parameters:
      folderContextId - the context ID of the folder to search for
      filters - additional filters to apply in the query. Should be EmptyNode if no additional filters should be applied.
      pageInfo - pagination information
      contextInfo - the context to perform the operation in
      Returns:
      the children folders of the folder with the given context ID
    • findAllByFolderContextIdIsNull

      @Policy(operationTypes=READ) org.springframework.data.domain.Page<D> findAllByFolderContextIdIsNull(@Nullable cz.jirutka.rsql.parser.ast.Node filters, @Nullable org.springframework.data.domain.Pageable pageInfo, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Returns all root folder items.
      Parameters:
      filters - additional filters to apply in the query. Should be EmptyNode if no additional filters should be applied.
      pageInfo - pagination information
      contextInfo - the context to perform the operation in
      Returns:
      the children folders of the folder with the given context ID
    • findAllByFolderContextId

      @Policy(operationTypes=READ) List<D> findAllByFolderContextId(@NonNull String folderContextId, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Returns a list of the children folder items of the given folder by finding all folder items whose folder context ID matches the given ID.
      Parameters:
      folderContextId - the context ID of the folder to search for
      contextInfo - the context to perform the operation in
      Returns:
      a list of all children folders of the folder with the given context ID
    • findAllByContentItemContextIdIn

      @Policy(operationTypes=READ) List<D> findAllByContentItemContextIdIn(@Nullable Collection<String> contentItemContextIds, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Returns all folder items with the given content item context ID.
      Parameters:
      contentItemContextIds - the list of content item context IDs to search for
      contextInfo - the context to perform the operation in
      Returns:
      the children folders of the folder with the given context ID
    • existsByFolderContextId

      @Policy(operationTypes=READ) boolean existsByFolderContextId(@NonNull String folderId, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Returns whether there are any folder items with folderId as their ContentFolderItem#folder. Determines if there are any content items directly in the given folder.
      Parameters:
      folderId - the context ID of the folder to search for
      contextInfo - the context surrounding sandboxing and mulitenant state
      Returns:
      whether there are any folder items with folderId as their ContentFolderItem#folder