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