public class HibernateSpacePermissionDao extends VersionedHibernateObjectDao implements SpacePermissionDao
HibernateObjectDao.Cacheability
cacheFactory, confluenceUserDao
NON_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) 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, updateModificationData
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, index, refresh, reIndex, remove, replicate, save, saveRaw, setIndexer, unIndex, uniqueResult
checkDaoConfig, convertHibernateAccessException, createHibernateTemplate, getHibernateTemplate, getSession, getSession, getSessionFactory, releaseSession, setHibernateTemplate, setSessionFactory
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
findLatestVersionsCount, findLatestVersionsIterator, save
findAll, findAllSorted, findAllSorted, findByClassIds, refresh, remove, replicate, save, saveRaw
public Class getPersistentClass()
getPersistentClass
in interface ObjectDao
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 up@Deprecated public List<SpacePermission> findPermissionsForUser(String userName)
SpacePermissionDao
findPermissionsForUser
in interface SpacePermissionDao
userName
- the username 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–2015 Atlassian. All rights reserved.