|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SpaceManager
| Field Summary | |
|---|---|
static String |
GLOBAL_LOGO
|
| Method Summary | |
|---|---|
Space |
createPersonalSpace(String name,
String description,
com.atlassian.user.User owner)
Creates a personal space. |
Space |
createPrivatePersonalSpace(String name,
String description,
com.atlassian.user.User owner)
Create a personal Space for which only the creator has any permissions |
Space |
createPrivateSpace(String key,
String name,
String description,
com.atlassian.user.User creator)
Creates a Space for which only the creator has any permissions |
Space |
createSpace(Space space)
|
Space |
createSpace(String key,
String name,
String description,
com.atlassian.user.User creator)
|
void |
ensureSpaceDescriptionExists(Space space)
If the given Space does not have a description, creates one for it, and saves it. |
long |
findPageTotal(Space space)
Get the number of pages in a space. |
List<Space> |
getAllSpaces()
Finds all spaces in Confluence, of any type, sorted alphabetically by space name. |
List<Space> |
getAllSpaces(SpacesQuery query)
Get a list of spaces specified by the SpacesQuery. |
List |
getAuthoredSpacesByUser(String username)
|
List |
getEditableSpacesByType(com.atlassian.user.User user,
SpaceType type)
Deprecated. since 3.1 Use getSpaces(SpacesQuery) instead |
SpaceLogo |
getLogoForGlobalcontext()
|
SpaceLogo |
getLogoForSpace(String spaceKey)
|
int |
getNumberOfBlogPosts(Space space)
Get the number of blog posts in a space. |
int |
getNumberOfMail(Space space)
Get the number of archived emails in a space. |
List<Space> |
getPermittedSpaces(com.atlassian.user.User user)
Deprecated. since 3.1 Use getSpaces(SpacesQuery) instead |
List<Space> |
getPermittedSpacesByType(com.atlassian.user.User user,
SpaceType type)
Deprecated. since 3.1 Use getSpaces(SpacesQuery) instead |
List |
getPermittedSpacesInSpaceGroup(com.atlassian.user.User user,
SpaceGroup spaceGroup)
Deprecated. since 3.1 Use getSpaces(SpacesQuery) instead |
Space |
getPersonalSpace(String username)
Get the personal space for the user with the given username |
Space |
getPersonalSpace(com.atlassian.user.User user)
Get the personal space of the given user. |
String |
getPersonalSpaceKey(String username)
|
Space |
getSpace(long id)
Retrieve a space by its ID. |
Space |
getSpace(String spaceKey)
Retrieve a space by its key. |
String |
getSpaceFromPageId(long pageId)
Get the key for a space from its pageId in a single db call |
ListBuilder<Space> |
getSpaces(SpacesQuery query)
Get a list of spaces specified by the SpacesQuery limited by the offset and maxResults. |
List<Space> |
getSpacesByType(SpaceType type)
Deprecated. since 3.1 Use getSpaces(SpacesQuery) instead |
List |
getSpacesContainingCommentsBy(String username)
|
List |
getSpacesContainingPagesEditedBy(String username)
Returns Pages that are either created or edited by the specified user |
List<Space> |
getSpacesCreatedAfter(Date creationDate)
|
List<Space> |
getSpacesEditableByUser(com.atlassian.user.User user)
Deprecated. since 3.1 Use getSpaces(SpacesQuery) instead |
List<Space> |
getSpacesInSpaceGroup(SpaceGroup spaceGroup)
Deprecated. since 3.1 Use getSpaces(SpacesQuery) instead |
Boolean |
removeSpace(Space space)
|
Boolean |
removeSpace(String spaceKey,
com.atlassian.core.util.ProgressMeter progressMeter)
Removes a space with a given spaceKey (case sensitive). |
void |
removeSpacesInGroup(SpaceGroup spaceGroup)
|
void |
saveSpace(Space space)
|
void |
saveSpace(Space space,
Space originalSpace)
|
| Field Detail |
|---|
static final String GLOBAL_LOGO
| Method Detail |
|---|
Space createSpace(String key,
String name,
String description,
com.atlassian.user.User creator)
Space createPersonalSpace(String name,
String description,
com.atlassian.user.User owner)
name - description - owner -
Space createPrivatePersonalSpace(String name,
String description,
com.atlassian.user.User owner)
name - description - owner -
Space createSpace(Space space)
Space createPrivateSpace(String key,
String name,
String description,
com.atlassian.user.User creator)
key - name - description - creator -
void saveSpace(Space space)
void saveSpace(Space space,
Space originalSpace)
Boolean removeSpace(Space space)
Boolean removeSpace(String spaceKey,
com.atlassian.core.util.ProgressMeter progressMeter)
spaceKey - the key of the space to removeprogressMeter - will be updated with status messages and percentage completed. Not Null.
void removeSpacesInGroup(SpaceGroup spaceGroup)
Space getSpace(long id)
id - the ID of the space
Space getSpace(String spaceKey)
spaceKey - the space key of the space to retrieve
Space getPersonalSpace(String username)
username - the username of the user to get the personal space of
Space getPersonalSpace(com.atlassian.user.User user)
getPersonalSpace(String), as it behaves gracefully when the user is anonymous
(i.e. null). Where the user is not null, this method is the equivalent of
getPersonalSpace(user.getName()).
user - the user to get the space for. If user is null, the method will return null
List<Space> getAllSpaces()
List getSpacesContainingPagesEditedBy(String username)
Pages that are either created or edited by the specified user
username - a username
Pages that are either created or edited by the specified userList getSpacesContainingCommentsBy(String username)
List getAuthoredSpacesByUser(String username)
long findPageTotal(Space space)
space - the space to count pages in
int getNumberOfBlogPosts(Space space)
space - the space to count pages in
int getNumberOfMail(Space space)
space - the space to count mail in
String getSpaceFromPageId(long pageId)
pageId - the id of the page to look for
List<Space> getSpacesCreatedAfter(Date creationDate)
String getPersonalSpaceKey(String username)
void ensureSpaceDescriptionExists(Space space)
This is required for CONF-4080, because labels on a Space are attached to a Space Description.
space - an existing space. Not null.SpaceLogo getLogoForSpace(String spaceKey)
SpaceLogo getLogoForGlobalcontext()
ListBuilder<Space> getSpaces(SpacesQuery query)
SpacesQuery limited by the offset and maxResults.
List<Space> getAllSpaces(SpacesQuery query)
SpacesQuery. Any code that calls this method is a potential
performance problem. The method may be deprecated and removed in a future version of Confluence. Use
getSpaces(SpacesQuery) to retrieve pages of results instead.
@Deprecated List<Space> getPermittedSpaces(com.atlassian.user.User user)
getSpaces(SpacesQuery) instead
user - the user to check permissions against, or null for the anonymous user
@Deprecated
List<Space> getPermittedSpacesByType(com.atlassian.user.User user,
SpaceType type)
getSpaces(SpacesQuery) instead
user - the user to check permissions against, or null for the anonymous usertype - the type of space to return
@Deprecated
List getPermittedSpacesInSpaceGroup(com.atlassian.user.User user,
SpaceGroup spaceGroup)
getSpaces(SpacesQuery) instead
user - the user to check permissions against, or null for the anonymous userspaceGroup - the spaceGroup from which we query the spaces
@Deprecated List<Space> getSpacesEditableByUser(com.atlassian.user.User user)
getSpaces(SpacesQuery) instead
user - the user to check permissions against, or null for the anonymous user
@Deprecated
List getEditableSpacesByType(com.atlassian.user.User user,
SpaceType type)
getSpaces(SpacesQuery) instead
user - the user to check permissions against, or null for the anonymous usertype - the type of space to return
@Deprecated List<Space> getSpacesByType(SpaceType type)
getSpaces(SpacesQuery) instead
@Deprecated List<Space> getSpacesInSpaceGroup(SpaceGroup spaceGroup)
getSpaces(SpacesQuery) instead
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||