Interface SpaceManagerInternal
- All Superinterfaces:
 SpaceManager
- All Known Implementing Classes:
 DefaultSpaceManager
DMZ space manager interface. ; see the package-info.java for rationale.
- Since:
 - 9.0
 
- 
Field Summary
Fields inherited from interface com.atlassian.confluence.spaces.SpaceManager
GLOBAL_LOGO - 
Method Summary
Modifier and TypeMethodDescription@NonNull PageResponse<Space>getSpaces(SpacesQuery query, LimitedRequest limitedRequest, Predicate<? super Space>... filter) get a paginated list of spaces that match the spaceQuery, filtered by the given predicate@NonNull io.atlassian.fugue.Either<AccessDenied,SpacesQueryWithPermissionQueryBuilder> toSpacesQueryWithPermissionQueryBuilder(SpacesQuery spacesQuery) Converts aSpacesQueryinto a decorated formSpacesQueryWithPermissionQueryBuilderthat includes information about how database queries should be built for the space permissions table.Methods inherited from interface com.atlassian.confluence.spaces.SpaceManager
archiveSpace, createPersonalSpace, createPersonalSpace, createPrivatePersonalSpace, createPrivatePersonalSpace, createPrivateSpace, createPrivateSpace, createSpace, createSpace, createSpace, ensureSpaceDescriptionExists, findPageTotal, getAllSpaceKeys, getAllSpaces, getAllSpaces, getAuthoredSpacesByUser, getDefaultHomepageTitle, getLogoForGlobalcontext, getLogoForSpace, getNumberOfBlogPosts, getPersonalSpace, getSpace, getSpace, getSpaceAdmins, getSpaceAdmins, getSpaceFromPageId, getSpaces, getSpacesContainingCommentsBy, getSpacesContainingPagesEditedBy, getSpacesCreatedAfter, hasPersonalSpace, removeSpace, removeSpace, removeSpace, removeSpacesInGroup, saveSpace, saveSpace, unarchiveSpace 
- 
Method Details
- 
getSpaces
@Transactional(readOnly=true) @NonNull PageResponse<Space> getSpaces(SpacesQuery query, LimitedRequest limitedRequest, Predicate<? super Space>... filter) get a paginated list of spaces that match the spaceQuery, filtered by the given predicate- Parameters:
 query- - the query to use to fetch the spaces from the databaseslimitedRequest- - the pagination request limitfilter- - the filter to apply to the requested spaces- Returns:
 - a PageResponse of matching spaces
 - Since:
 - 7.0.1
 
 - 
toSpacesQueryWithPermissionQueryBuilder
@NonNull io.atlassian.fugue.Either<AccessDenied,SpacesQueryWithPermissionQueryBuilder> toSpacesQueryWithPermissionQueryBuilder(SpacesQuery spacesQuery) Converts a
SpacesQueryinto a decorated formSpacesQueryWithPermissionQueryBuilderthat 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 thatSpaceDaodoesn't have to call out to the manager level to determine things like the user'sAccessStatus, or construct extremely complex queries to join and figure out the user's Confluence access.If no permission check is defined in the
SpacesQueryor the user is a super-user, then the returned object excludes permission checking.- Parameters:
 spacesQuery- the query to use to fetch the spaces from the databases- Returns:
 - the 
SpacesQuerydecorated into aSpacesQueryWithPermissionQueryBuilderORAccessDeniedif the user does not have Confluence access, or an invalid permission is being checked for the user. - Since:
 - 7.0.1
 
 
 -