public class HibernateSpacePermissionDao extends VersionedHibernateObjectDao implements SpacePermissionDao
HibernateObjectDao.CacheabilitycacheFactory, confluenceUserDaoNON_CACHEABLE| Constructor and Description |
|---|
HibernateSpacePermissionDao() |
| Modifier and Type | Method and Description |
|---|---|
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(ConfluenceUser user)
Retrieves all permissions for user
|
List<SpacePermission> |
findPermissionsForUser(String userName)
Deprecated.
|
List |
findPermissionTypes(SpacePermission permission)
Find all permission types matching the combination of
(space, user, group, authenticated access subject) 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
|
findAllSorted, findLatestVersionsCount, findLatestVersionsCount, findLatestVersionsIterator, findLatestVersionsIterator, findNamedQueryStringParams, findNamedQueryStringParams, save, setCacheFactory, setConfluenceUserDao, updateModificationDataapplyTransactionTimeout, applyTransactionTimeout, checkDaoConfig, createHibernateTemplate, findAll, findAllSorted, findByClassIds, findNamedQuery, findNamedQuery, findNamedQuery, findNamedQuery, findNamedQuery, findNamedQueryStringParam, findNamedQueryStringParam, findNamedQueryStringParam, findNamedQueryStringParam, findNamedQueryStringParam, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findSingleObject, getByClassId, getCountResult, getHibernateTemplate, getSession, getSessionFactory, index, refresh, reIndex, remove, replicate, save, saveRaw, setHibernateTemplate, setIndexer, setSessionFactory, unIndex, uniqueResultclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfindLatestVersionsCount, findLatestVersionsIterator, savefindAll, findAllSorted, findAllSorted, findByClassIds, refresh, remove, replicate, save, saveRawpublic Class getPersistentClass()
getPersistentClass in interface ObjectDaopublic SpacePermission getById(long id)
SpacePermissionDaogetById in interface SpacePermissionDaoid - the SpacePermission to retrievepublic boolean hasPermission(SpacePermission permission)
SpacePermissionDaohasPermission in interface SpacePermissionDaopermission - the SpacePermission to look uppublic List<SpacePermission> findAllGlobalPermissions()
SpacePermissionDaofindAllGlobalPermissions in interface SpacePermissionDaopublic List<SpacePermission> findAllGlobalPermissionsForType(String permissionType)
SpacePermissionDaofindAllGlobalPermissionsForType in interface SpacePermissionDaopermissionType - the SpacePermission type to look uppublic List<SpacePermission> findPermissionsForGroup(String group)
SpacePermissionDaofindPermissionsForGroup in interface SpacePermissionDaogroup - the group to look uppublic List<SpacePermission> findPermissionsForSpace(Space space)
SpacePermissionDaofindPermissionsForSpace in interface SpacePermissionDaospace - the Space to look uppublic 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(ConfluenceUser user)
SpacePermissionDaofindPermissionsForUser in interface SpacePermissionDaouser - the user to look up@Deprecated public List<SpacePermission> findPermissionsForUser(String userName)
SpacePermissionDaofindPermissionsForUser in interface SpacePermissionDaouserName - the username to look uppublic void removePermissionsForUser(String userName)
SpacePermissionDaoremovePermissionsForUser in interface SpacePermissionDaouserName - the User whose permissions will be removedpublic void removePermissionsForGroup(String group)
SpacePermissionDaoremovePermissionsForGroup in interface SpacePermissionDaogroup - the Group whose permissions will be removedpublic void removePermissionsForSpace(Space space)
SpacePermissionDaoremovePermissionsForSpace in interface SpacePermissionDaospace - the Space that permissions will be removed frompublic List findPermissionTypes(SpacePermission permission)
SpacePermissionDaofindPermissionTypes in interface SpacePermissionDaopermission - the permission to look upCopyright © 2003–2017 Atlassian. All rights reserved.