|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.dao.support.DaoSupport
org.springframework.orm.hibernate.support.HibernateDaoSupport
com.atlassian.hibernate.HibernateObjectDao
com.atlassian.confluence.core.persistence.hibernate.VersionedHibernateObjectDao
com.atlassian.confluence.security.persistence.dao.hibernate.HibernateSpacePermissionDao
public class HibernateSpacePermissionDao
| Field Summary |
|---|
| Fields inherited from class com.atlassian.confluence.core.persistence.hibernate.VersionedHibernateObjectDao |
|---|
cacheFactory, log |
| Fields inherited from class org.springframework.dao.support.DaoSupport |
|---|
logger |
| Constructor Summary | |
|---|---|
HibernateSpacePermissionDao()
|
|
| Method Summary | |
|---|---|
java.util.List |
findAllGlobalPermissions()
Retreives all global permissions |
java.util.List |
findAllGlobalPermissionsForType(java.lang.String permissionType)
Retrieves all global permissions of type permissionType |
java.util.List |
findPermissionsForGroup(java.lang.String group)
Retrieves all permissions for group |
java.util.List |
findPermissionsForSpace(Space space)
Retrieves all permissions for space |
java.util.List |
findPermissionsForUser(java.lang.String userName)
Retrieves all permissions for userName |
java.util.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 |
java.lang.Class |
getPersistentClass()
|
boolean |
hasPermission(SpacePermission permission)
Determines whether permission exists in the data store |
void |
removePermissionsForGroup(java.lang.String group)
Removes all permissions for group |
void |
removePermissionsForSpace(Space space)
Removes all permissions in space |
void |
removePermissionsForUser(java.lang.String userName)
Removes all permissions for userName |
| Methods inherited from class com.atlassian.confluence.core.persistence.hibernate.VersionedHibernateObjectDao |
|---|
findAllSorted, findLatestVersionsCount, findLatestVersionsIterator, save, setCacheFactory, updateModificationData |
| Methods inherited from class com.atlassian.hibernate.HibernateObjectDao |
|---|
findAll, findNamedQuery, findNamedQuery, findNamedQuery, findNamedQueryStringParam, findNamedQueryStringParam, findNamedQueryStringParam, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findSingleObject, getByClassId, index, refresh, reIndex, remove, replicate, save, saveRaw, setIndexer, unIndex |
| Methods inherited from class org.springframework.orm.hibernate.support.HibernateDaoSupport |
|---|
checkDaoConfig, convertHibernateAccessException, createHibernateTemplate, getHibernateTemplate, getSession, getSession, getSessionFactory, releaseSession, setHibernateTemplate, setSessionFactory |
| Methods inherited from class org.springframework.dao.support.DaoSupport |
|---|
afterPropertiesSet, initDao |
| 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 java.lang.Class getPersistentClass()
getPersistentClass in interface bucket.core.persistence.ObjectDaopublic SpacePermission getById(long id)
SpacePermissionDao
getById in interface SpacePermissionDaoid - the SpacePermission to retrieve
public boolean hasPermission(SpacePermission permission)
SpacePermissionDao
hasPermission in interface SpacePermissionDaopermission - the SpacePermission to look up
public java.util.List findAllGlobalPermissions()
SpacePermissionDao
findAllGlobalPermissions in interface SpacePermissionDaopublic java.util.List findAllGlobalPermissionsForType(java.lang.String permissionType)
SpacePermissionDao
findAllGlobalPermissionsForType in interface SpacePermissionDaopermissionType - the SpacePermission type to look up
public java.util.List findPermissionsForGroup(java.lang.String group)
SpacePermissionDao
findPermissionsForGroup in interface SpacePermissionDaogroup - the group to look up
public java.util.List findPermissionsForSpace(Space space)
SpacePermissionDao
findPermissionsForSpace in interface SpacePermissionDaospace - the Space to look up
public java.util.List findPermissionsForUser(java.lang.String userName)
SpacePermissionDao
findPermissionsForUser in interface SpacePermissionDaouserName - the username to look up
public void removePermissionsForUser(java.lang.String userName)
SpacePermissionDao
removePermissionsForUser in interface SpacePermissionDaouserName - the User whose permissions will be removedpublic void removePermissionsForGroup(java.lang.String group)
SpacePermissionDao
removePermissionsForGroup in interface SpacePermissionDaogroup - the Group whose permissions will be removedpublic void removePermissionsForSpace(Space space)
SpacePermissionDao
removePermissionsForSpace in interface SpacePermissionDaospace - the Space that permissions will be removed frompublic java.util.List findPermissionTypes(SpacePermission permission)
SpacePermissionDao
findPermissionTypes in interface SpacePermissionDaopermission - the permission to look up
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||