|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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, confluenceUserDao |
Fields inherited from class org.springframework.dao.support.DaoSupport |
---|
logger |
Constructor Summary | |
---|---|
HibernateSpacePermissionDao()
|
Method Summary | |
---|---|
java.util.List<SpacePermission> |
findAllGlobalPermissions()
Retreives all global permissions |
java.util.List<SpacePermission> |
findAllGlobalPermissionsForType(java.lang.String permissionType)
Retrieves all global permissions of type permissionType |
java.util.Collection<SpacePermission> |
findGlobalGroupPermissions(java.lang.String permissionType)
Find all global group permissions of type permissionType . |
java.util.Collection<SpacePermission> |
findGroupPermissionsForSpace(Space space,
java.lang.String permissionType)
Find all group permissions of type permissionType for space . |
java.util.List<SpacePermission> |
findPermissionsForGroup(java.lang.String group)
Retrieves all permissions for group |
java.util.List<SpacePermission> |
findPermissionsForSpace(Space space)
Retrieves all permissions for space |
java.util.List<SpacePermission> |
findPermissionsForUser(ConfluenceUser user)
Retrieves all permissions for user |
java.util.List<SpacePermission> |
findPermissionsForUser(java.lang.String userName)
Deprecated. |
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, findNamedQueryStringParams, save, setCacheFactory, setConfluenceUserDao, 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 java.lang.Class getPersistentClass()
getPersistentClass
in interface ObjectDao
public SpacePermission getById(long id)
SpacePermissionDao
getById
in interface SpacePermissionDao
id
- the SpacePermission to retrieve
public boolean hasPermission(SpacePermission permission)
SpacePermissionDao
hasPermission
in interface SpacePermissionDao
permission
- the SpacePermission to look up
public java.util.List<SpacePermission> findAllGlobalPermissions()
SpacePermissionDao
findAllGlobalPermissions
in interface SpacePermissionDao
public java.util.List<SpacePermission> findAllGlobalPermissionsForType(java.lang.String permissionType)
SpacePermissionDao
findAllGlobalPermissionsForType
in interface SpacePermissionDao
permissionType
- the SpacePermission type to look up
public java.util.List<SpacePermission> findPermissionsForGroup(java.lang.String group)
SpacePermissionDao
findPermissionsForGroup
in interface SpacePermissionDao
group
- the group to look up
public java.util.List<SpacePermission> findPermissionsForSpace(Space space)
SpacePermissionDao
findPermissionsForSpace
in interface SpacePermissionDao
space
- the Space to look up
public java.util.Collection<SpacePermission> findGroupPermissionsForSpace(Space space, java.lang.String permissionType)
SpacePermissionDao
permissionType
for space
.
findGroupPermissionsForSpace
in interface SpacePermissionDao
permissionType
- one of the constants in SpacePermission
, such as SpacePermission.VIEWSPACE_PERMISSION
.
public java.util.Collection<SpacePermission> findGlobalGroupPermissions(java.lang.String permissionType)
SpacePermissionDao
permissionType
.
findGlobalGroupPermissions
in interface SpacePermissionDao
permissionType
- one of the constants in SpacePermission
, such as SpacePermission.USE_CONFLUENCE_PERMISSION
.
public java.util.List<SpacePermission> findPermissionsForUser(ConfluenceUser user)
SpacePermissionDao
findPermissionsForUser
in interface SpacePermissionDao
user
- the user to look up
@Deprecated public java.util.List<SpacePermission> findPermissionsForUser(java.lang.String userName)
SpacePermissionDao
findPermissionsForUser
in interface SpacePermissionDao
userName
- the username to look up
public void removePermissionsForUser(java.lang.String userName)
SpacePermissionDao
removePermissionsForUser
in interface SpacePermissionDao
userName
- the User whose permissions will be removedpublic void removePermissionsForGroup(java.lang.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 java.util.List findPermissionTypes(SpacePermission permission)
SpacePermissionDao
findPermissionTypes
in interface SpacePermissionDao
permission
- the permission to look up
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |