public interface SpaceManagerInternal extends SpaceManager
GLOBAL_LOGO
Modifier and Type | Method and Description |
---|---|
PageResponse<Space> |
getSpaces(SpacesQuery query,
LimitedRequest limitedRequest,
com.google.common.base.Predicate<? super Space>... filter)
get a paginated list of spaces that match the spaceQuery, filtered by the given predicate
|
com.atlassian.fugue.Either<AccessDenied,SpacesQueryWithPermissionQueryBuilder> |
toSpacesQueryWithPermissionQueryBuilder(SpacesQuery spacesQuery)
Converts a
SpacesQuery into a decorated form SpacesQueryWithPermissionQueryBuilder that includes
information about how database queries should be built for the space permissions table. |
archiveSpace, createPersonalSpace, createPrivatePersonalSpace, createPrivateSpace, createSpace, createSpace, ensureSpaceDescriptionExists, findPageTotal, getAllSpaceKeys, getAllSpaces, getAllSpaces, getAuthoredSpacesByUser, getLogoForGlobalcontext, getLogoForSpace, getNumberOfBlogPosts, getNumberOfMail, getPersonalSpace, getPersonalSpace, getPersonalSpace, getPersonalSpaceKey, getSpace, getSpace, getSpaceAdmins, getSpaceAdmins, getSpaceFromPageId, getSpaces, getSpacesContainingCommentsBy, getSpacesContainingPagesEditedBy, getSpacesCreatedAfter, removeSpace, removeSpace, removeSpacesInGroup, saveSpace, saveSpace, unarchiveSpace
@Nonnull PageResponse<Space> getSpaces(SpacesQuery query, LimitedRequest limitedRequest, com.google.common.base.Predicate<? super Space>... filter)
query
- - the query to use to fetch the spaces from the databaseslimitedRequest
- - the pagination request limitfilter
- - the filter to apply to the requested spaces@Nonnull com.atlassian.fugue.Either<AccessDenied,SpacesQueryWithPermissionQueryBuilder> toSpacesQueryWithPermissionQueryBuilder(SpacesQuery spacesQuery)
Converts a SpacesQuery
into a decorated form SpacesQueryWithPermissionQueryBuilder
that includes
information about how database queries should be built for the space permissions table.
This extra information is passed down to the DAO level so that SpaceDao
doesn't have to call out to the
manager level to determine things like the user's AccessStatus
, or construct extremely complex queries to
join and figure out the user's Confluence access.
If no permission check is defined in the SpacesQuery
or the user is a super-user, then the returned
object excludes permission checking.
spacesQuery
- the query to use to fetch the spaces from the databasesSpacesQuery
decorated into a SpacesQueryWithPermissionQueryBuilder
OR
AccessDenied
if the user does not have Confluence access, or an invalid permission is being checked for
the user.Copyright © 2003–2015 Atlassian. All rights reserved.