@ParametersAreNonnullByDefault public interface SpaceDao extends ObjectDao
| Modifier and Type | Method and Description | 
|---|---|
| int | countSpaces(SpacesQueryWithPermissionQueryBuilder queryWithPermissionClauseBuilder)Count the spaces specified by the  SpacesQuery. | 
| int | findPageTotal(Space space)Fast way to count pages in a space without loading them. | 
| @NonNull Collection<String> | findSpaceKeysWithStatus(String status)find all space keys where the space status is equal to the given status. | 
| @NonNull String | findUniqueVersionOfSpaceKey(String spaceKey)Return a unique version of the supplied spaceKey. | 
| @Nullable Space | getById(long id) | 
| int | getNumberOfBlogPosts(Space space)Fast way to count blog posts in a space without loading them. | 
| @Nullable Space | getPersonalSpace(@Nullable ConfluenceUser user) | 
| @Nullable Space | getSpace(@Nullable String spaceKey)Find a space by its space key. | 
| @Nullable Space | getSpaceByContentId(long contentId)Get the space that some content belongs to in a single db query. | 
| @NonNull List<Space> | getSpaces(SpacesQueryWithPermissionQueryBuilder queryWithPermissionClauseBuilder)Get a list of spaces specified by the  SpacesQuery. | 
| @NonNull List<Space> | getSpaces(SpacesQueryWithPermissionQueryBuilder queryWithPermissionClauseBuilder,
         int offset,
         int maxResults)Get a list of spaces specified by the  SpacesQueryWithPermissionQueryBuilder. | 
| @NonNull List<Space> | getSpacesContainingCommentsByUser(@Nullable String username)Find all spaces containing comments by a particular user. | 
| @NonNull List<Space> | getSpacesContainingPagesEditedByUser(@Nullable String username)Find all spaces containing pages that were edited by a particular user. | 
| @NonNull List<Space> | getSpacesCreatedAfter(Date creationDate) | 
| @NonNull List<Space> | getSpacesCreatedByUser(@Nullable String username)Find all the spaces created by a given user. | 
| @NonNull List<Space> | getSpacesCreatedOrUpdatedSinceDate(Date previousLoginDate) | 
| void | performOnAll(Consumer<Space> function)Perform the task with all spaces. | 
findAll, findAllSorted, findAllSorted, findByClassIds, getPersistentClass, refresh, remove, replicate, save, saveRaw@Nullable Space getById(long id)
@NonNull List<Space> getSpacesCreatedByUser(@Nullable String username)
@Nullable Space getPersonalSpace(@Nullable ConfluenceUser user)
user - the user who's personal space is to be retrieved@NonNull List<Space> getSpacesContainingPagesEditedByUser(@Nullable String username)
username - the name of the user to track down@NonNull List<Space> getSpacesContainingCommentsByUser(@Nullable String username)
Does currently not include personal spaces, but probably should.
username - the name of the user to track down@NonNull List<Space> getSpacesCreatedOrUpdatedSinceDate(Date previousLoginDate)
int findPageTotal(Space space)
int getNumberOfBlogPosts(Space space)
@NonNull List<Space> getSpaces(SpacesQueryWithPermissionQueryBuilder queryWithPermissionClauseBuilder, int offset, int maxResults)
SpacesQueryWithPermissionQueryBuilder.@NonNull List<Space> getSpaces(SpacesQueryWithPermissionQueryBuilder queryWithPermissionClauseBuilder)
SpacesQuery.  Its recommended to use the
 getSpaces(SpacesQueryWithPermissionQueryBuilder, int, int) form of this method where ever possible.int countSpaces(SpacesQueryWithPermissionQueryBuilder queryWithPermissionClauseBuilder)
SpacesQuery.@Nullable Space getSpaceByContentId(long contentId)
contentId - the ID of the content@NonNull Collection<String> findSpaceKeysWithStatus(String status)
status - the status to search for@NonNull String findUniqueVersionOfSpaceKey(String spaceKey)
spaceKey - the space key to create a unique version ofCopyright © 2003–2023 Atlassian. All rights reserved.