Package org.uberfire.backend.authz
Interface AuthorizationPolicyStorage
-
public interface AuthorizationPolicyStorageProvides methods to manipulate the AuthorizationPolicy instance stored into the Uberfire's virtual file system.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddeletePolicyByGroup(org.jboss.errai.security.shared.api.Group group, org.uberfire.security.authz.AuthorizationPolicy policy)Deletes the group fromAuthorizationPolicyinstance stored in the backendorg.uberfire.security.authz.AuthorizationPolicyloadPolicy()Retrieves the currentAuthorizationPolicyinstance from the backend storage.voidsavePolicy(org.uberfire.security.authz.AuthorizationPolicy policy)Overwrites the content of theAuthorizationPolicyinstance stored in the backend by the contents of the instance passed as a parameter.
-
-
-
Method Detail
-
loadPolicy
org.uberfire.security.authz.AuthorizationPolicy loadPolicy()
Retrieves the currentAuthorizationPolicyinstance from the backend storage.- Returns:
- The stored
AuthorizationPolicyinstance or null if no policy exists.
-
savePolicy
void savePolicy(org.uberfire.security.authz.AuthorizationPolicy policy)
Overwrites the content of theAuthorizationPolicyinstance stored in the backend by the contents of the instance passed as a parameter.- Parameters:
policy- The authorization policy to store
-
deletePolicyByGroup
void deletePolicyByGroup(org.jboss.errai.security.shared.api.Group group, org.uberfire.security.authz.AuthorizationPolicy policy)Deletes the group fromAuthorizationPolicyinstance stored in the backend- Parameters:
policy- The authorization policy to storegroup- Group instance
-
-