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 SummaryNested Classes Modifier and Type Class Description static classSpacesQuery.Builder
 - 
Method SummaryAll 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- 
newQuerypublic static SpacesQuery.Builder newQuery() 
 - 
getSpaceTypepublic SpaceType getSpaceType() 
 - 
getPermissionTypepublic String getPermissionType() 
 - 
getUserpublic 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.
 - 
getCreationDatepublic Date getCreationDate() 
 - 
getSpaceStatusespublic Set<SpaceStatus> getSpaceStatuses() 
 
- 
 
-