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 class
SpacesQuery.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
equals(Object o)
Date
getCreationDate()
Optional<Boolean>
getFavourite()
Optional<Boolean>
getHasRetentionPolicy()
List<Label>
getLabels()
String
getPermissionType()
List<String>
getSortBy()
SpaceGroup
getSpaceGroup()
Deprecated.in 5.9.Set<Long>
getSpaceIds()
List<String>
getSpaceKeys()
Set<SpaceStatus>
getSpaceStatuses()
SpaceType
getSpaceType()
com.atlassian.user.User
getUser()
List<String>
getUserGroups()
Deprecated.since 5.9, no replacement.int
hashCode()
static SpacesQuery.Builder
newQuery()
-
-
-
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.SpaceGroup
and related classes likeSpaceGroupManager
andSpaceGroupComparator
will be removed. Please do not use them.
-
getCreationDate
public Date getCreationDate()
-
getSpaceStatuses
public Set<SpaceStatus> getSpaceStatuses()
-
-