public class FinderPredicates extends Object
| Constructor and Description |
|---|
FinderPredicates() |
public static Predicate<? super ContentEntityObject> createContentTypePredicate(ContentType... types)
public static Predicate<? super ContentEntityObject> createTitlePredicate(String title)
public static Predicate<? super ContentEntityObject> createSpaceKeysPredicate(List<String> spaceKeys)
public static Predicate<? super ContentEntityObject> createCreationDatePredicate(org.joda.time.LocalDate createdDate)
public static Predicate<? super ContentEntityObject> createFileNamePredicate(String filename)
public static Predicate<? super ContentEntityObject> createMediaTypePredicate(String mediaType)
public static Predicate<? super ContentEntityObject> createCommentLocationPredicate(Collection<String> location)
public static Predicate<? super ContentEntityObject> createContentIdPredicate(List<ContentId> contentIds)
public static Predicate<? super ContentEntityObject> statusPredicate(List<ContentStatus> statuses)
public static Predicate<Object> permissionPredicate(Permission permission, PermissionManager permissionManager)
public static Predicate<Object> permissionPredicate(com.atlassian.user.User user, Permission permission, PermissionManager permissionManager)
public static Predicate<? super ContentEntityObject> containerPredicate(@NonNull ContentId containerId)
Contained instances that have the same container ID,
for example Attachments or Comments on the same page.containerId - the container ID to matchCopyright © 2003–2022 Atlassian. All rights reserved.