public interface AuthorizationPolicyStorage
Modifier and Type | Method and Description |
---|---|
void |
deletePolicyByGroup(org.jboss.errai.security.shared.api.Group group,
AuthorizationPolicy policy)
Deletes the group from
AuthorizationPolicy instance stored in the backend |
AuthorizationPolicy |
loadPolicy()
Retrieves the current
AuthorizationPolicy instance from the backend storage. |
void |
savePolicy(AuthorizationPolicy policy)
Overwrites the content of the
AuthorizationPolicy instance stored in the backend
by the contents of the instance passed as a parameter. |
AuthorizationPolicy loadPolicy()
AuthorizationPolicy
instance from the backend storage.AuthorizationPolicy
instance or null if no policy exists.void savePolicy(AuthorizationPolicy policy)
AuthorizationPolicy
instance stored in the backend
by the contents of the instance passed as a parameter.policy
- The authorization policy to storevoid deletePolicyByGroup(org.jboss.errai.security.shared.api.Group group, AuthorizationPolicy policy)
AuthorizationPolicy
instance stored in the backendpolicy
- The authorization policy to storegroup
- Group instanceCopyright © 2012–2020 JBoss by Red Hat. All rights reserved.