Package com.atlassian.confluence.spaces
Class SpacesQuery
- java.lang.Object
-
- com.atlassian.confluence.spaces.SpacesQuery
-
public class SpacesQuery extends Object
An attempt to remove some of the proliferation of almost-identical space listing queries from Space.hbm.xml.Dynamically builds a hibernate query which saves us from defining a query for every combination and permutation of input.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSpacesQuery.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanequals(Object o)DategetCreationDate()Optional<Boolean>getFavourite()Optional<Boolean>getHasRetentionPolicy()List<Label>getLabels()StringgetPermissionType()List<String>getSortBy()SpaceGroupgetSpaceGroup()Deprecated.in 5.9.Set<Long>getSpaceIds()List<String>getSpaceKeys()Set<SpaceStatus>getSpaceStatuses()SpaceTypegetSpaceType()com.atlassian.user.UsergetUser()List<String>getUserGroups()Deprecated.since 5.9, no replacement.inthashCode()static SpacesQuery.BuildernewQuery()
-
-
-
Method Detail
-
newQuery
public static SpacesQuery.Builder newQuery()
-
getSpaceType
public SpaceType getSpaceType()
-
getPermissionType
public String getPermissionType()
-
getUser
public com.atlassian.user.User getUser()
-
getUserGroups
@Deprecated public List<String> getUserGroups()
Deprecated.since 5.9, no replacement. Permissions are checked based on all groups the user is a member of (if a user is specified), which is determined in the implementation, so this is effectively ignored (and has been for a long time).- Returns:
- an empty list
-
getSpaceGroup
@Deprecated public SpaceGroup getSpaceGroup()
Deprecated.in 5.9.SpaceGroupand related classes likeSpaceGroupManagerandSpaceGroupComparatorwill be removed. Please do not use them.
-
getCreationDate
public Date getCreationDate()
-
getSpaceStatuses
public Set<SpaceStatus> getSpaceStatuses()
-
-