public interface PermissionSchemeService
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PERMISSION_SCHEME_NAME_PATTERN |
Modifier and Type | Method and Description |
---|---|
boolean |
addPermissionSchemeAnonymousUsers(java.lang.String permissionSchemeName,
PrincipalAssociationData principalAssociationData)
Add anonymous-users principal association
|
boolean |
addPermissionSchemeGroup(java.lang.String permissionSchemeName,
NamedPrincipalAssociationData principalAssociationData)
Add group principal association
|
boolean |
addPermissionSchemeLoggedUsers(java.lang.String permissionSchemeName,
PrincipalAssociationData principalAssociationData)
Add logged-in-users principal association
|
boolean |
addPermissionSchemeReviewRole(java.lang.String permissionSchemeName,
NamedPrincipalAssociationData principalAssociationData)
Add role principal association
|
boolean |
addPermissionSchemeUser(java.lang.String permissionSchemeName,
NamedPrincipalAssociationData principalAssociationData)
Add user principal association
|
int |
countPermissionSchemes(PermissionSchemeSearchCriteria permissionSchemeSearchCriteria)
Returns the number of permission schemes filtered by permission search criteria
|
void |
create(PermissionSchemeData permissionSchemeData)
Create permission scheme
|
void |
createFrom(java.lang.String copyFromPermissionSchemeName,
java.lang.String newPermissionSchemeName)
Creates a permission scheme from an existing permission scheme
|
void |
delete(java.lang.String name)
Delete permisison scheme.
|
boolean |
deletePermissionSchemeAnonymousUsersLoggedUsers(java.lang.String permissionSchemeName,
PrincipalAssociationData principalAssociationData)
Delete anonymous-users principal association
|
boolean |
deletePermissionSchemeGroup(java.lang.String permissionSchemeName,
NamedPrincipalAssociationData principalAssociationData)
Delete group principal association
|
boolean |
deletePermissionSchemeLoggedUsers(java.lang.String permissionSchemeName,
PrincipalAssociationData principalAssociationData)
Delete logged-in-users principal association
|
boolean |
deletePermissionSchemeRole(java.lang.String permissionSchemeName,
NamedPrincipalAssociationData principalAssociationData)
Delete role principal association
|
boolean |
deletePermissionSchemeUser(java.lang.String permissionSchemeName,
NamedPrincipalAssociationData principalAssociationData)
Delete user principal association
|
PermissionSchemeData |
findByName(java.lang.String permissionSchemeName)
Finds a permission scheme based on permission scheme name
|
java.lang.Integer |
getId(java.lang.String name)
Return permission scheme name
|
java.lang.String |
getName(int id)
Returns the permission scheme name
|
void |
rename(java.lang.String oldName,
java.lang.String newName)
Rename permission scheme
|
Page<PrincipalAssociationData> |
searchAnonymousUsersPrincipalAssociation(java.lang.String permissionSchemeName,
PrincipalAssociationSearchCriteria principalAssociationSearchCriteria,
PageRequest pageRequest)
Page of anonymous-users principal associations (action name)specified in this permission scheme
|
Page<NamedPrincipalAssociationData> |
searchGroupsPrincipalAssociation(java.lang.String permissionSchemeName,
NamedPrincipalAssociationSearchCriteria namedPrincipalAssociationSearchCriteria,
PageRequest pageRequest)
Page of groups principal associations (group name, action name)specified in this permission scheme
|
Page<PrincipalAssociationData> |
searchLoggedUsersPrincipalAssociation(java.lang.String permissionSchemeName,
PrincipalAssociationSearchCriteria principalAssociationSearchCriteria,
PageRequest pageRequest)
Page of logged-in-users principal associations (action name)specified in this permission scheme
|
Page<PermissionSchemeData> |
searchPermissionSchemes(PermissionSchemeSearchCriteria permissionSchemeSearchCriteria,
PageRequest pageRequest)
Returns a paged list of permission schemes.
|
Page<NamedPrincipalAssociationData> |
searchRolesPrincipalAssociation(java.lang.String permissionSchemeName,
NamedPrincipalAssociationSearchCriteria namedPrincipalAssociationSearchCriteria,
PageRequest pageRequest)
Page of roles principal associations (role name, action name)specified in this permission scheme
|
Page<NamedPrincipalAssociationData> |
searchUsersPrincipalAssociation(java.lang.String permissionSchemeName,
NamedPrincipalAssociationSearchCriteria namedPrincipalAssociationSearchCriteria,
PageRequest pageRequest)
Page of users principal associations (username, action name)specified in this permission scheme
|
static final java.lang.String PERMISSION_SCHEME_NAME_PATTERN
java.lang.String getName(int id)
id
- permission scheme idjava.lang.Integer getId(java.lang.String name)
name
- permission scheme nameint countPermissionSchemes(PermissionSchemeSearchCriteria permissionSchemeSearchCriteria)
Page<PermissionSchemeData> searchPermissionSchemes(PermissionSchemeSearchCriteria permissionSchemeSearchCriteria, PageRequest pageRequest)
permissionSchemeSearchCriteria
- permission scheme search criteriapageRequest
- PermissionSchemeData findByName(java.lang.String permissionSchemeName)
permissionSchemeName
- permission scheme namePage<NamedPrincipalAssociationData> searchUsersPrincipalAssociation(java.lang.String permissionSchemeName, NamedPrincipalAssociationSearchCriteria namedPrincipalAssociationSearchCriteria, PageRequest pageRequest)
permissionSchemeName
- permission scheme namenamedPrincipalAssociationSearchCriteria
- user principal association search criteriaboolean addPermissionSchemeUser(java.lang.String permissionSchemeName, NamedPrincipalAssociationData principalAssociationData)
permissionSchemeName
- permission scheme nameprincipalAssociationData
- user principal association data (username, action name)boolean deletePermissionSchemeUser(java.lang.String permissionSchemeName, NamedPrincipalAssociationData principalAssociationData)
permissionSchemeName
- permission scheme nameprincipalAssociationData
- user principal association data (username, action name)Page<NamedPrincipalAssociationData> searchGroupsPrincipalAssociation(java.lang.String permissionSchemeName, NamedPrincipalAssociationSearchCriteria namedPrincipalAssociationSearchCriteria, PageRequest pageRequest)
permissionSchemeName
- permission scheme namenamedPrincipalAssociationSearchCriteria
- group principal association search criteriaboolean addPermissionSchemeGroup(java.lang.String permissionSchemeName, NamedPrincipalAssociationData principalAssociationData)
permissionSchemeName
- permission scheme nameprincipalAssociationData
- group principal association data (group name, action name)boolean deletePermissionSchemeGroup(java.lang.String permissionSchemeName, NamedPrincipalAssociationData principalAssociationData)
permissionSchemeName
- permission scheme nameprincipalAssociationData
- group principal association data (group name, action name)Page<NamedPrincipalAssociationData> searchRolesPrincipalAssociation(java.lang.String permissionSchemeName, NamedPrincipalAssociationSearchCriteria namedPrincipalAssociationSearchCriteria, PageRequest pageRequest)
permissionSchemeName
- permission scheme namenamedPrincipalAssociationSearchCriteria
- role principal association search criteriaboolean addPermissionSchemeReviewRole(java.lang.String permissionSchemeName, NamedPrincipalAssociationData principalAssociationData)
permissionSchemeName
- permission scheme nameprincipalAssociationData
- role principal association data (role name, action name)boolean deletePermissionSchemeRole(java.lang.String permissionSchemeName, NamedPrincipalAssociationData principalAssociationData)
permissionSchemeName
- permission scheme nameprincipalAssociationData
- role principal association data (role name, action name)Page<PrincipalAssociationData> searchLoggedUsersPrincipalAssociation(java.lang.String permissionSchemeName, PrincipalAssociationSearchCriteria principalAssociationSearchCriteria, PageRequest pageRequest)
permissionSchemeName
- permission scheme nameprincipalAssociationSearchCriteria
- logged-in-users principal association search criteriaboolean addPermissionSchemeLoggedUsers(java.lang.String permissionSchemeName, PrincipalAssociationData principalAssociationData)
permissionSchemeName
- permission scheme nameprincipalAssociationData
- logged-in-users principal association data (action name)boolean deletePermissionSchemeLoggedUsers(java.lang.String permissionSchemeName, PrincipalAssociationData principalAssociationData)
permissionSchemeName
- permission scheme nameprincipalAssociationData
- logged-in-users principal association data (action name)Page<PrincipalAssociationData> searchAnonymousUsersPrincipalAssociation(java.lang.String permissionSchemeName, PrincipalAssociationSearchCriteria principalAssociationSearchCriteria, PageRequest pageRequest)
permissionSchemeName
- permission scheme nameprincipalAssociationSearchCriteria
- anonymous-users principal association search criteriaboolean addPermissionSchemeAnonymousUsers(java.lang.String permissionSchemeName, PrincipalAssociationData principalAssociationData)
permissionSchemeName
- permission scheme nameprincipalAssociationData
- anonymous-users principal association data (action name)boolean deletePermissionSchemeAnonymousUsersLoggedUsers(java.lang.String permissionSchemeName, PrincipalAssociationData principalAssociationData)
permissionSchemeName
- permission scheme nameprincipalAssociationData
- anonymous-users principal association data (action name)void create(PermissionSchemeData permissionSchemeData)
permissionSchemeData
- permission scheme datavoid rename(java.lang.String oldName, java.lang.String newName)
oldName
- permission scheme old namenewName
- permission scheme new namevoid delete(java.lang.String name)
name
- permission scheme namevoid createFrom(java.lang.String copyFromPermissionSchemeName, java.lang.String newPermissionSchemeName)
copyFromPermissionSchemeName
- existing permission scheme namenewPermissionSchemeName
- new permission scheme name