public interface SpacePermissionDao extends VersionedObjectDao<SpacePermission>
| 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<SpacePermissionDTOLight> |
findPermissionsForSpacesAndTypes(Set<Long> spaceIdList,
Collection<String> typeList)
Retrieves all permissions for the provides space list.
|
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
|
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
|
findLatestVersionsCount, findLatestVersionsIterator, savefindAll, findAllSorted, findAllSorted, findByClassIds, getPersistentClass, refresh, remove, replicate, save, saveRawSpacePermission getById(long id)
id - the SpacePermission to retrieveboolean hasPermission(SpacePermission permission)
permission - the SpacePermission to look upList<SpacePermission> findAllGlobalPermissions()
List<SpacePermission> findAllGlobalPermissionsForType(String permissionType)
permissionType - the SpacePermission type to look upList<SpacePermission> findPermissionsForUser(ConfluenceUser user)
user - the user to look upList<SpacePermission> findPermissionsForGroup(String group)
group - the group to look upList<SpacePermission> findPermissionsForSpace(Space space)
space - the Space to look upList<SpacePermissionDTOLight> findPermissionsForSpacesAndTypes(Set<Long> spaceIdList, Collection<String> typeList)
spaceIdList - list of space idtypeList - list of permission types to retrivevoid removePermissionsForUser(String userName)
userName - the User whose permissions will be removedvoid removePermissionsForGroup(String group)
group - the Group whose permissions will be removedvoid removePermissionsForSpace(Space space)
space - the Space that permissions will be removed fromList findPermissionTypes(SpacePermission permission)
permission - the permission to look upCollection<SpacePermission> findGroupPermissionsForSpace(Space space, String permissionType)
permissionType for space.permissionType - one of the constants in SpacePermission, such as SpacePermission.VIEWSPACE_PERMISSION.Collection<SpacePermission> findGlobalGroupPermissions(String permissionType)
permissionType.permissionType - one of the constants in SpacePermission, such as SpacePermission.USE_CONFLUENCE_PERMISSION.Copyright © 2003–2022 Atlassian. All rights reserved.