|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.orm.hibernate.support.HibernateDaoSupport
com.atlassian.hibernate.HibernateObjectDao
bucket.core.persistence.hibernate.CachableHibernateObjectDao
com.atlassian.confluence.core.persistence.hibernate.VersionedHibernateObjectDao
com.atlassian.confluence.security.persistence.dao.hibernate.HibernateSpacePermissionDao
Field Summary |
Fields inherited from class com.atlassian.confluence.core.persistence.hibernate.VersionedHibernateObjectDao |
log |
Fields inherited from class bucket.core.persistence.hibernate.CachableHibernateObjectDao |
cacheManager |
Fields inherited from class org.springframework.orm.hibernate.support.HibernateDaoSupport |
logger |
Constructor Summary | |
HibernateSpacePermissionDao()
|
Method Summary | |
List |
findAllGlobalPermissions()
Retreives all global permissions |
List |
findAllGlobalPermissionsForType(String permissionType)
Retrieves all global permissions of type permissionType |
List |
findPermissionsForGroup(String group)
Retrieves all permissions for group |
List |
findPermissionsForSpace(Space space)
Retrieves all permissions for space |
List |
findPermissionsForUser(String userName)
Retrieves all permissions for userName |
List |
findPermissionTypes(SpacePermission permission)
Find all permission types matching the combination of (space, user, group) in permission. |
SpacePermission |
getById(long id)
Retrieves a single SpacePermission by its ID |
Class |
getPersistentClass()
|
boolean |
hasPermission(SpacePermission permission)
Determines whether permission exists in the data store |
void |
removePermissionsForGroup(String group)
Removes all permissions for group |
void |
removePermissionsForSpace(Space space)
Removes all permissions in space |
void |
removePermissionsForUser(String userName)
Removes all permissions for userName |
Methods inherited from class com.atlassian.confluence.core.persistence.hibernate.VersionedHibernateObjectDao |
findAllSorted, findLatestVersionsCount, findLatestVersionsIterator, save, updateModificationData |
Methods inherited from class bucket.core.persistence.hibernate.CachableHibernateObjectDao |
setCacheManager |
Methods inherited from class org.springframework.orm.hibernate.support.HibernateDaoSupport |
afterPropertiesSet, closeSessionIfNecessary, convertHibernateAccessException, createHibernateTemplate, getHibernateTemplate, getSession, getSession, getSessionFactory, initDao, setHibernateTemplate, setSessionFactory |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.atlassian.confluence.core.persistence.VersionedObjectDao |
findLatestVersionsCount, findLatestVersionsIterator, save |
Methods inherited from interface bucket.core.persistence.ObjectDao |
findAll, findAllSorted, refresh, remove, replicate, save, saveRaw |
Constructor Detail |
public HibernateSpacePermissionDao()
Method Detail |
public Class getPersistentClass()
getPersistentClass
in interface ObjectDao
public SpacePermission getById(long id)
SpacePermissionDao
getById
in interface SpacePermissionDao
id
- the SpacePermission to retrieve
public boolean hasPermission(SpacePermission permission)
SpacePermissionDao
hasPermission
in interface SpacePermissionDao
permission
- the SpacePermission to look up
public List findAllGlobalPermissions()
SpacePermissionDao
findAllGlobalPermissions
in interface SpacePermissionDao
public List findAllGlobalPermissionsForType(String permissionType)
SpacePermissionDao
findAllGlobalPermissionsForType
in interface SpacePermissionDao
permissionType
- the SpacePermission type to look up
public List findPermissionsForGroup(String group)
SpacePermissionDao
findPermissionsForGroup
in interface SpacePermissionDao
group
- the group to look up
public List findPermissionsForSpace(Space space)
SpacePermissionDao
findPermissionsForSpace
in interface SpacePermissionDao
space
- the Space to look up
public List findPermissionsForUser(String userName)
SpacePermissionDao
findPermissionsForUser
in interface SpacePermissionDao
userName
- the username to look up
public void removePermissionsForUser(String userName)
SpacePermissionDao
removePermissionsForUser
in interface SpacePermissionDao
userName
- the User whose permissions will be removedpublic void removePermissionsForGroup(String group)
SpacePermissionDao
removePermissionsForGroup
in interface SpacePermissionDao
group
- the Group whose permissions will be removedpublic void removePermissionsForSpace(Space space)
SpacePermissionDao
removePermissionsForSpace
in interface SpacePermissionDao
space
- the Space that permissions will be removed frompublic List findPermissionTypes(SpacePermission permission)
SpacePermissionDao
findPermissionTypes
in interface SpacePermissionDao
permission
- the permission to look up
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |