|
||||||||||
| 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 |
| Fields inherited from class org.springframework.dao.support.DaoSupport |
|---|
logger |
| Constructor Summary | |
|---|---|
HibernateSpacePermissionDao()
|
|
| Method Summary | |
|---|---|
List<SpacePermission> |
findAllGlobalPermissions()
Retreives all global permissions |
List<SpacePermission> |
findAllGlobalPermissionsForType(String permissionType)
Retrieves all global permissions of type permissionType |
Collection<SpacePermission> |
findGlobalGroupPermissions(String permissionType)
Find all global group permissions of type permissionType. |
Collection<SpacePermission> |
findGroupPermissionsForSpace(Space space,
String permissionType)
Find all group permissions of type permissionType for space. |
List<SpacePermission> |
findPermissionsForGroup(String group)
Retrieves all permissions for group |
List<SpacePermission> |
findPermissionsForSpace(Space space)
Retrieves all permissions for space |
List<SpacePermission> |
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, setCacheFactory, updateModificationData |
| 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, findAllSorted, refresh, remove, replicate, save, saveRaw |
| Constructor Detail |
|---|
public HibernateSpacePermissionDao()
| Method Detail |
|---|
public Class getPersistentClass()
getPersistentClass in interface 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 List<SpacePermission> findAllGlobalPermissions()
SpacePermissionDao
findAllGlobalPermissions in interface SpacePermissionDaopublic List<SpacePermission> findAllGlobalPermissionsForType(String permissionType)
SpacePermissionDao
findAllGlobalPermissionsForType in interface SpacePermissionDaopermissionType - the SpacePermission type to look up
public List<SpacePermission> findPermissionsForGroup(String group)
SpacePermissionDao
findPermissionsForGroup in interface SpacePermissionDaogroup - the group to look up
public List<SpacePermission> findPermissionsForSpace(Space space)
SpacePermissionDao
findPermissionsForSpace in interface SpacePermissionDaospace - the Space to look up
public Collection<SpacePermission> findGroupPermissionsForSpace(Space space,
String permissionType)
SpacePermissionDaopermissionType for space.
findGroupPermissionsForSpace in interface SpacePermissionDaopermissionType - one of the constants in SpacePermission, such as SpacePermission.VIEWSPACE_PERMISSION.
public Collection<SpacePermission> findGlobalGroupPermissions(String permissionType)
SpacePermissionDaopermissionType.
findGlobalGroupPermissions in interface SpacePermissionDaopermissionType - one of the constants in SpacePermission, such as SpacePermission.USE_CONFLUENCE_PERMISSION.
public List<SpacePermission> findPermissionsForUser(String userName)
SpacePermissionDao
findPermissionsForUser in interface SpacePermissionDaouserName - the username to look up
public void removePermissionsForUser(String userName)
SpacePermissionDao
removePermissionsForUser in interface SpacePermissionDaouserName - the User whose permissions will be removedpublic void removePermissionsForGroup(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 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 | |||||||||