public class HibernateSpacePermissionDao extends VersionedHibernateObjectDao implements SpacePermissionDao
HibernateObjectDao.Cacheability
cacheFactory, confluenceUserDao
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 |
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()
Gets the type of
EntityObject this Dao works with. |
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, saveEntity, setCacheFactory, setConfluenceUserDao, updateEntityModificationData, updateModificationData
applyTransactionTimeout, applyTransactionTimeout, checkDaoConfig, createHibernateTemplate, findAll, findAllSorted, findByClassIds, findByClassIdsFiltered, findNamedQuery, findNamedQuery, findNamedQuery, findNamedQueryStringParam, findNamedQueryStringParam, findNamedQueryStringParam, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findSingleObject, getByClassId, getCountResult, getHibernateTemplate, getSession, getSessionFactory, index, indexEntity, refresh, refreshEntity, reIndex, reIndexEntity, remove, removeEntity, replicate, replicateEntity, save, saveEntity, saveRaw, saveRawEntity, setHibernateTemplate, setIndexer, setSessionFactory, unIndex, unIndexEntity, uniqueResult
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
findLatestVersionsCount, findLatestVersionsIterator, save
findAll, findAllSorted, findAllSorted, findByClassIds, refresh, remove, replicate, save, saveRaw
findAll, findAllSorted, findByClassIds, findByClassIdsFiltered, refresh, refreshEntity, remove, removeEntity, replicate, replicateEntity, save, saveEntity, saveRaw, saveRawEntity
public Class getPersistentClass()
ObjectDaoInternal
EntityObject
this Dao works with.getPersistentClass
in interface ObjectDao
getPersistentClass
in interface ObjectDaoInternal
public SpacePermission getById(long id)
SpacePermissionDao
getById
in interface SpacePermissionDao
id
- the SpacePermission to retrievepublic boolean hasPermission(SpacePermission permission)
SpacePermissionDao
hasPermission
in interface SpacePermissionDao
permission
- the SpacePermission to look uppublic List<SpacePermission> findAllGlobalPermissions()
SpacePermissionDao
findAllGlobalPermissions
in interface SpacePermissionDao
public List<SpacePermission> findAllGlobalPermissionsForType(String permissionType)
SpacePermissionDao
findAllGlobalPermissionsForType
in interface SpacePermissionDao
permissionType
- the SpacePermission type to look uppublic List<SpacePermission> findPermissionsForGroup(String group)
SpacePermissionDao
findPermissionsForGroup
in interface SpacePermissionDao
group
- the group to look uppublic List<SpacePermission> findPermissionsForSpace(Space space)
SpacePermissionDao
findPermissionsForSpace
in interface SpacePermissionDao
space
- the Space to look uppublic Collection<SpacePermission> findGroupPermissionsForSpace(Space space, String permissionType)
SpacePermissionDao
permissionType
for space
.findGroupPermissionsForSpace
in interface SpacePermissionDao
permissionType
- one of the constants in SpacePermission
, such as SpacePermission.VIEWSPACE_PERMISSION
.public Collection<SpacePermission> findGlobalGroupPermissions(String permissionType)
SpacePermissionDao
permissionType
.findGlobalGroupPermissions
in interface SpacePermissionDao
permissionType
- one of the constants in SpacePermission
, such as SpacePermission.USE_CONFLUENCE_PERMISSION
.public List<SpacePermission> findPermissionsForUser(ConfluenceUser user)
SpacePermissionDao
findPermissionsForUser
in interface SpacePermissionDao
user
- the user to look uppublic 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 upCopyright © 2003–2021 Atlassian. All rights reserved.