Interface CustomContentService
- All Known Implementing Classes:
CustomContentServiceImpl
public interface CustomContentService
- Since:
- 9.0
-
Method Summary
Modifier and TypeMethodDescription@NonNull PageResponse<Content> getChildrenOfTypeAndFilter(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.
-
Method Details
-
getChildrenOfTypeAndFilter
@NonNull PageResponse<Content> getChildrenOfTypeAndFilter(ContentId parentId, String contentModuleKey, LimitedRequest limitedRequest, Expansions expansions, Depth depth, Predicate<Content> predicate) Returns 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.- 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:
- Since:
- 9.0
-
isScannableContent
Check if a scan type represents scannable content. This allows plugins to exclude utility/metadata content from general content scans.- 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
- Since:
- 9.2.11
-