Interface AuthorizationService


  • public interface AuthorizationService
    Provides methods to manipulate the AuthorizationPolicy instance stored in the Uberfire's virtual file system.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void deletePolicyByGroup​(org.jboss.errai.security.shared.api.Group group, org.uberfire.security.authz.AuthorizationPolicy policy)
      Deletes the group from AuthorizationPolicy instance stored in the backend
      org.uberfire.security.authz.AuthorizationPolicy loadPolicy()
      Retrieves the current AuthorizationPolicy instance from the backend storage.
      void savePolicy​(org.uberfire.security.authz.AuthorizationPolicy policy)
      Overwrites the content of the AuthorizationPolicy instance 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 current AuthorizationPolicy instance from the backend storage.
        Returns:
        The stored AuthorizationPolicy instance
      • savePolicy

        void savePolicy​(org.uberfire.security.authz.AuthorizationPolicy policy)
        Overwrites the content of the AuthorizationPolicy instance 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 from AuthorizationPolicy instance stored in the backend
        Parameters:
        policy - The authorization policy to store
        group - Group instance