java.lang.Object | ||||||
↳ | org.springframework.dao.support.DaoSupport | |||||
↳ | org.springframework.orm.hibernate.support.HibernateDaoSupport | |||||
↳ | com.atlassian.hibernate.HibernateObjectDao | |||||
↳ | com.atlassian.confluence.core.persistence.hibernate.VersionedHibernateObjectDao<T extends com.atlassian.core.bean.EntityObject> | |||||
↳ | com.atlassian.confluence.core.persistence.hibernate.ConfluenceHibernateObjectDao | |||||
↳ | com.atlassian.confluence.spaces.persistence.dao.hibernate.HibernateSpaceDao |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
CACHE_KEY_SPACE_KEY_TO_SPACEID |
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.atlassian.confluence.core.persistence.hibernate.VersionedHibernateObjectDao
| |||||||||||
From class
com.atlassian.hibernate.HibernateObjectDao
| |||||||||||
From class
org.springframework.dao.support.DaoSupport
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Count the spaces specified by the
SpacesQuery . | |||||||||||
Like findAllSorted, but allows you to query for a specific type of space
| |||||||||||
Fast way to count pages in a space without loading them.
| |||||||||||
Fast way to count blog posts in a space without loading them.
| |||||||||||
Fast way to count pages in a space without loading them.
| |||||||||||
Return a single page of spaces for a user with a particular permission
| |||||||||||
Find all spaces on which the given user has the given permission
| |||||||||||
The database queries order the space's returned by spacename and then spacekey.
| |||||||||||
Find all spaces of a certain type on which the given user has the given permission
| |||||||||||
Query for spaces by type.
| |||||||||||
Find all spaces within a spaceGroup to which the given user has the given permission
| |||||||||||
Query for spaces by type.
| |||||||||||
first tries to fetch the space from the cache by space id
if not, fetch it from database
| |||||||||||
Get the space that some content belongs to in a single db query.
| |||||||||||
Get a list of spaces specified by the
SpacesQuery . | |||||||||||
Get a list of spaces specified by the
SpacesQuery . | |||||||||||
Find all spaces containing comments by a particular user.
| |||||||||||
Find all spaces containing pages that were edited by a particular user.
| |||||||||||
Find all the spaces created by a given user.
| |||||||||||
Find all spaces within a given spaceGroup
| |||||||||||
Override the parent remove method as we want to remove the object out of the cache as well
| |||||||||||
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Retrieve the object with a particular id from the database.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.atlassian.confluence.core.persistence.hibernate.VersionedHibernateObjectDao
| |||||||||||
From class
com.atlassian.hibernate.HibernateObjectDao
| |||||||||||
From class
org.springframework.orm.hibernate.support.HibernateDaoSupport
| |||||||||||
From class
org.springframework.dao.support.DaoSupport
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
bucket.core.persistence.ObjectDao
| |||||||||||
From interface
com.atlassian.confluence.core.persistence.VersionedObjectDao
| |||||||||||
From interface
com.atlassian.confluence.spaces.persistence.dao.SpaceDao
| |||||||||||
From interface
org.springframework.beans.factory.InitializingBean
|
Like findAllSorted, but allows you to query for a specific type of space
Fast way to count pages in a space without loading them. Counts all pages, not just the current versions.
Fast way to count blog posts in a space without loading them. Counts all blog posts, not just the current versions.
Fast way to count pages in a space without loading them. Counts all mail, not just the current versions.
Return a single page of spaces for a user with a particular permission
Find all spaces on which the given user has the given permission
The database queries order the space's returned by spacename and then spacekey.
Find all spaces of a certain type on which the given user has the given permission
Query for spaces by type.
Find all spaces within a spaceGroup to which the given user has the given permission
Query for spaces by type.
first tries to fetch the space from the cache by space id if not, fetch it from database
Get the space that some content belongs to in a single db query. This will only work for content that directly belongs to a space (i.e. Pages, Blog Posts, Space Descriptions but not Comments or Attachments) and it will only work for current content (old content is dissassociated from its space)
contentId | the ID of the content |
---|
Get a list of spaces specified by the SpacesQuery
. Its recommended to use the
getSpaces(com.atlassian.confluence.spaces.SpacesQuery, int, int)
form of this method where ever
possible.
Get a list of spaces specified by the SpacesQuery
.
Find all spaces containing comments by a particular user. This is for tracking down whether a user can be safely deleted or not. Does currently not include personal spaces, but probably should.
username | the name of the user to track down |
---|
Find all spaces containing pages that were edited by a particular user. This is for tracking down whether a user can be safely deleted or not.
username | the name of the user to track down |
---|
Find all the spaces created by a given user.
Find all spaces within a given spaceGroup
spaceGroup | the group |
---|
Override the parent remove method as we want to remove the object out of the cache as well
entity | the object to remove |
---|
Retrieve the object with a particular id from the database. The object must be of the same class as the DAO's getPersistentClass() method returns.
l | the id of the object to look up |
---|