Package com.atlassian.confluence.spaces
Class ReadOnlySpaceManager
java.lang.Object
com.atlassian.confluence.spaces.ReadOnlySpaceManager
- All Implemented Interfaces:
SpaceManager
@Deprecated(forRemoval=true)
public class ReadOnlySpaceManager
extends Object
implements SpaceManager
Deprecated, for removal: This API element is subject to removal in a future version.
-
Field Summary
Fields inherited from interface com.atlassian.confluence.spaces.SpaceManager
GLOBAL_LOGO -
Constructor Summary
ConstructorsConstructorDescriptionReadOnlySpaceManager(SpaceManager delegate) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionvoidarchiveSpace(Space space) Deprecated, for removal: This API element is subject to removal in a future version.Archive the space.@NonNull SpacecreatePersonalSpace(String name, @Nullable String description, ConfluenceUser owner) Deprecated, for removal: This API element is subject to removal in a future version.Creates a personal space.@NonNull SpacecreatePrivatePersonalSpace(String name, @Nullable String description, ConfluenceUser owner) Deprecated, for removal: This API element is subject to removal in a future version.Create a personal Space for which only the creator has any permissions@NonNull SpacecreatePrivateSpace(String key, String name, @Nullable String description, ConfluenceUser creator) Deprecated, for removal: This API element is subject to removal in a future version.Creates a Space for which only the creator has any permissions@NonNull SpacecreateSpace(Space space) Deprecated, for removal: This API element is subject to removal in a future version.@NonNull SpacecreateSpace(String key, String name, @Nullable String description, ConfluenceUser creator) Deprecated, for removal: This API element is subject to removal in a future version.voidDeprecated, for removal: This API element is subject to removal in a future version.If the given Space does not have a description, creates one for it, and saves it.longfindPageTotal(Space space) Deprecated, for removal: This API element is subject to removal in a future version.Get the number of pages in a space.@NonNull Collection<String>getAllSpaceKeys(SpaceStatus status) Deprecated, for removal: This API element is subject to removal in a future version.Get the space keys of all spaces with the given status.Deprecated, for removal: This API element is subject to removal in a future version.Finds all spaces in Confluence, of any type, sorted alphabetically by space name.getAllSpaces(SpacesQuery query) Deprecated, for removal: This API element is subject to removal in a future version.Get a list of spaces specified by theSpacesQuery.@NonNull ListgetAuthoredSpacesByUser(@Nullable ConfluenceUser user) Deprecated, for removal: This API element is subject to removal in a future version.@NonNull SpaceLogoDeprecated, for removal: This API element is subject to removal in a future version.@NonNull SpaceLogogetLogoForSpace(@Nullable String spaceKey) Deprecated, for removal: This API element is subject to removal in a future version.intgetNumberOfBlogPosts(Space space) Deprecated, for removal: This API element is subject to removal in a future version.Get the number of blog posts in a space.@Nullable SpacegetPersonalSpace(@Nullable ConfluenceUser user) Deprecated, for removal: This API element is subject to removal in a future version.Get the personal space of the given user.@Nullable SpacegetSpace(long id) Deprecated, for removal: This API element is subject to removal in a future version.Retrieve a space by its ID.@Nullable SpaceDeprecated, for removal: This API element is subject to removal in a future version.Retrieve a space by its key.@NonNull List<com.atlassian.user.User>getSpaceAdmins(Space spaces) Deprecated, for removal: This API element is subject to removal in a future version.Returns a list of administrators for a given space, sorted by full name@NonNull List<com.atlassian.user.User>getSpaceAdmins(Space spaces, int limit) Deprecated, for removal: This API element is subject to removal in a future version.Returns a list of administrators for a given space, sorted by full name, up to the size limit@Nullable StringgetSpaceFromPageId(long pageId) Deprecated, for removal: This API element is subject to removal in a future version.Get the key for a space from its pageId in a single db call@NonNull ListBuilder<Space>getSpaces(SpacesQuery query) Deprecated, for removal: This API element is subject to removal in a future version.Get a list of spaces specified by theSpacesQuerylimited by the offset and maxResults.@NonNull ListgetSpacesContainingCommentsBy(@Nullable ConfluenceUser user) Deprecated, for removal: This API element is subject to removal in a future version.@NonNull ListgetSpacesContainingPagesEditedBy(@Nullable ConfluenceUser user) Deprecated, for removal: This API element is subject to removal in a future version.ReturnsPages that are either created or edited by the specified usergetSpacesCreatedAfter(Date creationDate) Deprecated, for removal: This API element is subject to removal in a future version.@NonNull BooleanremoveSpace(Space space) Deprecated, for removal: This API element is subject to removal in a future version.Removes a space with a given space.@NonNull BooleanremoveSpace(String spaceKey) Deprecated, for removal: This API element is subject to removal in a future version.Removes a space with a given spaceKey (case sensitive).@NonNull BooleanremoveSpace(String spaceKey, com.atlassian.core.util.ProgressMeter progressMeter) Deprecated, for removal: This API element is subject to removal in a future version.Removes a space with a given spaceKey (case sensitive).voidremoveSpacesInGroup(SpaceGroup spaceGroup) Deprecated, for removal: This API element is subject to removal in a future version.voidDeprecated, for removal: This API element is subject to removal in a future version.voidDeprecated, for removal: This API element is subject to removal in a future version.voidunarchiveSpace(Space space) Deprecated, for removal: This API element is subject to removal in a future version.Un-archive the space.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.confluence.spaces.SpaceManager
createPersonalSpace, createPrivatePersonalSpace, createPrivateSpace, createSpace, getDefaultHomepageTitle, hasPersonalSpace
-
Constructor Details
-
ReadOnlySpaceManager
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
createSpace
public @NonNull Space createSpace(String key, String name, @Nullable String description, ConfluenceUser creator) Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
createSpacein interfaceSpaceManager
-
createPersonalSpace
public @NonNull Space createPersonalSpace(String name, @Nullable String description, ConfluenceUser owner) Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:SpaceManagerCreates a personal space. The difference to a normal space are that this space will have a type "personal" and the user passed to this space should not be the creator, but is the owner of the space.- Specified by:
createPersonalSpacein interfaceSpaceManager
-
createPrivatePersonalSpace
public @NonNull Space createPrivatePersonalSpace(String name, @Nullable String description, ConfluenceUser owner) Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:SpaceManagerCreate a personal Space for which only the creator has any permissions- Specified by:
createPrivatePersonalSpacein interfaceSpaceManager
-
createSpace
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
createSpacein interfaceSpaceManager
-
createPrivateSpace
public @NonNull Space createPrivateSpace(String key, String name, @Nullable String description, ConfluenceUser creator) Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:SpaceManagerCreates a Space for which only the creator has any permissions- Specified by:
createPrivateSpacein interfaceSpaceManager
-
saveSpace
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
saveSpacein interfaceSpaceManager
-
saveSpace
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
saveSpacein interfaceSpaceManager
-
removeSpace
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:SpaceManagerRemoves a space with a given space.Delegates to
SpaceManager.removeSpace(String, com.atlassian.core.util.ProgressMeter).- Specified by:
removeSpacein interfaceSpaceManager- Parameters:
space- the key of the space to remove- Returns:
- true if the space was successfully removed.
-
removeSpace
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:SpaceManagerRemoves a space with a given spaceKey (case sensitive).Delegates to
SpaceManager.removeSpace(String, com.atlassian.core.util.ProgressMeter).- Specified by:
removeSpacein interfaceSpaceManager- Parameters:
spaceKey- the key of the space to remove- Returns:
- true if the space was successfully removed.
-
removeSpace
public @NonNull Boolean removeSpace(String spaceKey, com.atlassian.core.util.ProgressMeter progressMeter) Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:SpaceManagerRemoves a space with a given spaceKey (case sensitive). This must be passed a progress monitor which will be updated with internationalised status while the space is being removed. Ideally this should be done from a long running task, since it can be very slow and it clears the current Hibernate session.- Specified by:
removeSpacein interfaceSpaceManager- Parameters:
spaceKey- the key of the space to removeprogressMeter- will be updated with status messages and percentage completed. Not Null.- Returns:
- true if the space was successfully removed.
-
removeSpacesInGroup
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
removeSpacesInGroupin interfaceSpaceManager
-
getSpace
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:SpaceManagerRetrieve a space by its ID. The space can be of any type.- Specified by:
getSpacein interfaceSpaceManager- Parameters:
id- the ID of the space- Returns:
- the space, or null if no space exists with that id.
-
getSpace
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:SpaceManagerRetrieve a space by its key. The space can be of any type.- Specified by:
getSpacein interfaceSpaceManager- Parameters:
spaceKey- the space key of the space to retrieve- Returns:
- the space, or null if no space exists with that key
-
getPersonalSpace
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:SpaceManagerGet the personal space of the given user.- Specified by:
getPersonalSpacein interfaceSpaceManager- Parameters:
user- the user to get the space for. If user is null, the method will return null- Returns:
- the personal space of the user if one exists, otherwise null.
-
getAllSpaces
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:SpaceManagerFinds all spaces in Confluence, of any type, sorted alphabetically by space name.- Specified by:
getAllSpacesin interfaceSpaceManager- Returns:
- List of spaces
-
getSpacesContainingPagesEditedBy
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:SpaceManagerReturnsPages that are either created or edited by the specified user- Specified by:
getSpacesContainingPagesEditedByin interfaceSpaceManager- Returns:
Pages that are either created or edited by the specified user
-
getSpacesContainingCommentsBy
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getSpacesContainingCommentsByin interfaceSpaceManager
-
getAuthoredSpacesByUser
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getAuthoredSpacesByUserin interfaceSpaceManager
-
findPageTotal
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:SpaceManagerGet the number of pages in a space. This counts all pages, including non-current versions, and including pages that are in the trash. As such, it probably doesn't do what you think it does.- Specified by:
findPageTotalin interfaceSpaceManager- Parameters:
space- the space to count pages in- Returns:
- the number of pages in that space
-
getNumberOfBlogPosts
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:SpaceManagerGet the number of blog posts in a space. This counts all news, including non-current versions, and including news that is in the trash. As such, it probably doesn't do what you think it does.- Specified by:
getNumberOfBlogPostsin interfaceSpaceManager- Parameters:
space- the space to count pages in- Returns:
- the number of blog posts (news items) in that space
-
getSpaceFromPageId
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:SpaceManagerGet the key for a space from its pageId in a single db call- Specified by:
getSpaceFromPageIdin interfaceSpaceManager- Parameters:
pageId- the id of the page to look for- Returns:
- the key for the space containing the given page
-
getSpacesCreatedAfter
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getSpacesCreatedAfterin interfaceSpaceManager
-
ensureSpaceDescriptionExists
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:SpaceManagerIf the given Space does not have a description, creates one for it, and saves it.This is required for CONF-4080, because labels on a Space are attached to a Space Description.
- Specified by:
ensureSpaceDescriptionExistsin interfaceSpaceManager- Parameters:
space- an existing space. Not null.
-
getLogoForSpace
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getLogoForSpacein interfaceSpaceManager
-
getLogoForGlobalcontext
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getLogoForGlobalcontextin interfaceSpaceManager
-
getSpaces
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:SpaceManagerGet a list of spaces specified by theSpacesQuerylimited by the offset and maxResults.- Specified by:
getSpacesin interfaceSpaceManager
-
getAllSpaces
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:SpaceManagerGet a list of spaces specified by theSpacesQuery. Any code that calls this method is a potential performance problem. The method may be deprecated and removed in a future version of Confluence. UseSpaceManager.getSpaces(SpacesQuery)to retrieve pages of results instead.- Specified by:
getAllSpacesin interfaceSpaceManager
-
getSpaceAdmins
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:SpaceManagerReturns a list of administrators for a given space, sorted by full name- Specified by:
getSpaceAdminsin interfaceSpaceManager
-
getSpaceAdmins
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:SpaceManagerReturns a list of administrators for a given space, sorted by full name, up to the size limit- Specified by:
getSpaceAdminsin interfaceSpaceManager
-
archiveSpace
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:SpaceManagerArchive the space. Archived spaces are removed from various lists and search results to unclutter the user interface. If the space is archived, this method does nothing.- Specified by:
archiveSpacein interfaceSpaceManager- Parameters:
space- the space to archive.
-
unarchiveSpace
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:SpaceManagerUn-archive the space. If the space is already un-archived, this method does nothing.- Specified by:
unarchiveSpacein interfaceSpaceManager- Parameters:
space- the space to archive.
-
getAllSpaceKeys
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:SpaceManagerGet the space keys of all spaces with the given status.- Specified by:
getAllSpaceKeysin interfaceSpaceManager- Parameters:
status- the status to search for- Returns:
- the keys of all spaces with that status.
-
SpaceManagerdirectly.