Interface RoleMappingService.RoleDeploymentContext

Enclosing interface:
RoleMappingService

public static interface RoleMappingService.RoleDeploymentContext
This interface represents a RoleDeploymentContext as returned by the Role Mapping Service's findOrCreateDeploymentContext() method. The RoleDeploymentContext is used to configure role mapping policy for an application (or server administration) context. It represents the body of policy that applies to the given context. A RoleDeploymentContext is always in one of three states: open, closed/inService, or deleted. When returned by the Role Mapping service, a context is in an open state. Policies can be added or deleted while in the open state, but the context is not in service. Upon calling commit(), the context is closed and the policies are place in service. Upon calling delete(), the context is taken out of service and the policies are deleted from the Role Mapping Provider.
  • Method Details

    • addMapping

      void addMapping(String role, String[] users, String[] groups)
    • removeMapping

      void removeMapping(String role, String[] users, String[] groups)
    • removeRole

      void removeRole(String role)
    • commit

      void commit()
    • delete

      void delete()