Class CustomContentServiceImpl
java.lang.Object
com.atlassian.confluence.api.impl.service.content.CustomContentServiceImpl
- All Implemented Interfaces:
CustomContentService
-
Constructor Summary
ConstructorsConstructorDescriptionCustomContentServiceImpl(CustomContentManager customContentManager, ContentEntityManagerInternal contentEntityManager, ContentFactory contentFactory, CustomContentProviderRegistry customContentProviderRegistry) -
Method Summary
Modifier and TypeMethodDescription@NonNull PageResponse<Content> getChildrenOfTypeAndFilter(@NonNull ContentId parentId, String contentModuleKey, LimitedRequest limitedRequest, Expansions expansions, Depth depth, Predicate<Content> predicate) Returns the children of a CustomContentEntityObject, limited to the pagination requested.booleanisScannableContent(String scanType) Check if a scan type represents scannable content.
-
Constructor Details
-
CustomContentServiceImpl
public CustomContentServiceImpl(CustomContentManager customContentManager, ContentEntityManagerInternal contentEntityManager, ContentFactory contentFactory, CustomContentProviderRegistry customContentProviderRegistry)
-
-
Method Details
-
getChildrenOfTypeAndFilter
public @NonNull PageResponse<Content> getChildrenOfTypeAndFilter(@NonNull ContentId parentId, String contentModuleKey, LimitedRequest limitedRequest, Expansions expansions, Depth depth, Predicate<Content> predicate) Description copied from interface:CustomContentServiceReturns the children of a CustomContentEntityObject, limited to the pagination requested. This method will return children that have the entity as a container, and children that have the entity as a parent.- Specified by:
getChildrenOfTypeAndFilterin interfaceCustomContentService- Parameters:
parentId- the content to look for children ofcontentModuleKey- the module key of the type of child to look forlimitedRequest- the pagination requestedexpansions- the expansions applied to resultsdepth- the depth to return children to- Returns:
-
isScannableContent
Description copied from interface:CustomContentServiceCheck if a scan type represents scannable content. This allows plugins to exclude utility/metadata content from general content scans.- Specified by:
isScannableContentin interfaceCustomContentService- Parameters:
scanType- The scan type to check (e.g., "calendar", "question")- Returns:
- true if scan type should be included in scans, false to exclude from scans
-