com.accendia.iris.admin.interfaces
Interface IAdminRoles


public interface IAdminRoles

The interface is implemented by the roles command. It contains the methods for setting and reading application roles for users.


Method Summary
 java.lang.String[] getGrants(java.lang.String applicationName, java.lang.String user)
          Returns the application roles assigned to an user.
 int setGrants(java.lang.String applicationName, java.lang.String user, java.lang.String[] roles)
          Sets the application roles assigned to an user.
 

Method Detail

setGrants

int setGrants(java.lang.String applicationName,
              java.lang.String user,
              java.lang.String[] roles)
              throws InvocationException
Sets the application roles assigned to an user.

Parameters:
applicationName - The name of the application.
user - The user name.
roles - Array of roles to be assigned to the user.
Throws:
InvocationException - When a remote error occurs, for example the user invoking the method doesn't have the required privileges.

getGrants

java.lang.String[] getGrants(java.lang.String applicationName,
                             java.lang.String user)
                             throws InvocationException
Returns the application roles assigned to an user.

Parameters:
applicationName - The name of the application.
user - The user name
Throws:
InvocationException - When a remote error occurs, for example the user invoking the method doesn't have the required privileges.