|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SpaceDao
Method Summary | |
---|---|
int |
countPermittedSpacesForUser(com.atlassian.user.User user,
java.util.List<com.atlassian.user.Group> groupsForUser,
java.lang.String permission)
Deprecated. since 5.2. See countSpaces(SpacesQuery) instead. |
int |
countSpaces(SpacesQuery query)
Count the spaces specified by the SpacesQuery . |
int |
findPageTotal(Space space)
Fast way to count pages in a space without loading them. |
java.util.Collection<java.lang.String> |
findSpaceKeysWithStatus(java.lang.String status)
find all space keys where the space status is equal to the given status. |
java.lang.String |
findUniqueVersionOfSpaceKey(java.lang.String spaceKey)
Return a unique version of the supplied spaceKey. |
Space |
getById(long id)
|
int |
getNumberOfBlogPosts(Space space)
Fast way to count blog posts in a space without loading them. |
int |
getNumberOfMail(Space space)
Fast way to count pages in a space without loading them. |
Space |
getPersonalSpace(ConfluenceUser user)
|
Space |
getSpace(java.lang.String spaceKey)
Find a space by its space key. |
Space |
getSpaceByContentId(long contentId)
Get the space that some content belongs to in a single db query. |
java.util.List<Space> |
getSpaces(SpacesQuery query)
Get a list of spaces specified by the SpacesQuery . |
java.util.List<Space> |
getSpaces(SpacesQuery query,
int offset,
int maxResults)
Get a list of spaces specified by the SpacesQuery . |
java.util.List<Space> |
getSpacesContainingCommentsByUser(java.lang.String username)
Find all spaces containing comments by a particular user. |
java.util.List<Space> |
getSpacesContainingPagesEditedByUser(java.lang.String username)
Find all spaces containing pages that were edited by a particular user. |
java.util.List<Space> |
getSpacesCreatedAfter(java.util.Date creationDate)
|
java.util.List<Space> |
getSpacesCreatedByUser(java.lang.String username)
Find all the spaces created by a given user. |
java.util.List<Space> |
getSpacesCreatedOrUpdatedSinceDate(java.util.Date previousLoginDate)
|
Methods inherited from interface bucket.core.persistence.ObjectDao |
---|
findAll, findAllSorted, findAllSorted, getPersistentClass, refresh, remove, replicate, save, saveRaw |
Method Detail |
---|
Space getById(long id)
Space getSpace(java.lang.String spaceKey)
java.util.List<Space> getSpacesCreatedByUser(java.lang.String username)
Space getPersonalSpace(ConfluenceUser user)
user
- the user who's personal space is to be retrieved
java.util.List<Space> getSpacesContainingPagesEditedByUser(java.lang.String username)
username
- the name of the user to track down
java.util.List<Space> getSpacesContainingCommentsByUser(java.lang.String username)
username
- the name of the user to track down
java.util.List<Space> getSpacesCreatedOrUpdatedSinceDate(java.util.Date previousLoginDate)
int findPageTotal(Space space)
int getNumberOfBlogPosts(Space space)
int getNumberOfMail(Space space)
java.util.List<Space> getSpacesCreatedAfter(java.util.Date creationDate)
@Deprecated int countPermittedSpacesForUser(com.atlassian.user.User user, java.util.List<com.atlassian.user.Group> groupsForUser, java.lang.String permission)
countSpaces(SpacesQuery)
instead.
user
- groupsForUser
- permission
-
java.util.List<Space> getSpaces(SpacesQuery query, int offset, int maxResults)
SpacesQuery
.
java.util.List<Space> getSpaces(SpacesQuery query)
SpacesQuery
. Its recommended to use the
getSpaces(com.atlassian.confluence.spaces.SpacesQuery, int, int)
form of this method where ever
possible.
int countSpaces(SpacesQuery query)
SpacesQuery
.
Space getSpaceByContentId(long contentId)
contentId
- the ID of the content
java.util.Collection<java.lang.String> findSpaceKeysWithStatus(java.lang.String status)
status
- the status to search for
java.lang.String findUniqueVersionOfSpaceKey(java.lang.String spaceKey)
spaceKey
- the space key to create a unique version of
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |