Class FinderPredicates
java.lang.Object
com.atlassian.confluence.api.impl.service.content.finder.FinderPredicates
Predicates used by finders to filter Content
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Predicate<? super ContentEntityObject>
containerPredicate
(@NonNull ContentId containerId) Create a predicate that matchesContained
instances that have the same container ID, for exampleAttachment
s orComment
s on the same page.static Predicate<? super ContentEntityObject>
createCommentLocationPredicate
(Collection<String> location) static Predicate<? super ContentEntityObject>
createContentIdPredicate
(List<ContentId> contentIds) static Predicate<? super ContentEntityObject>
createContentTypePredicate
(ContentType... types) static Predicate<? super ContentEntityObject>
createCreationDatePredicate
(LocalDate createdDate) static Predicate<? super ContentEntityObject>
createFileNamePredicate
(String filename) static Predicate<? super ContentEntityObject>
createMediaTypePredicate
(String mediaType) static Predicate<? super ContentEntityObject>
createSpaceKeysPredicate
(List<String> spaceKeys) static Predicate<? super ContentEntityObject>
createTitlePredicate
(String title) permissionPredicate
(Permission permission, PermissionManager permissionManager) permissionPredicate
(com.atlassian.user.User user, Permission permission, PermissionManager permissionManager) static Predicate<? super ContentEntityObject>
statusPredicate
(List<ContentStatus> statuses)
-
Constructor Details
-
FinderPredicates
public FinderPredicates()
-
-
Method Details
-
createContentTypePredicate
public static Predicate<? super ContentEntityObject> createContentTypePredicate(ContentType... types) -
createTitlePredicate
-
createSpaceKeysPredicate
public static Predicate<? super ContentEntityObject> createSpaceKeysPredicate(List<String> spaceKeys) -
createCreationDatePredicate
public static Predicate<? super ContentEntityObject> createCreationDatePredicate(LocalDate createdDate) -
createFileNamePredicate
-
createMediaTypePredicate
-
createCommentLocationPredicate
public static Predicate<? super ContentEntityObject> createCommentLocationPredicate(Collection<String> location) -
createContentIdPredicate
public static Predicate<? super ContentEntityObject> createContentIdPredicate(List<ContentId> contentIds) -
statusPredicate
-
permissionPredicate
public static Predicate<Object> permissionPredicate(Permission permission, PermissionManager permissionManager) -
permissionPredicate
public static Predicate<Object> permissionPredicate(com.atlassian.user.User user, Permission permission, PermissionManager permissionManager) -
containerPredicate
public static Predicate<? super ContentEntityObject> containerPredicate(@NonNull ContentId containerId) Create a predicate that matchesContained
instances that have the same container ID, for exampleAttachment
s orComment
s on the same page.- Parameters:
containerId
- the container ID to match
-