com.accendia.iris.admin.interfaces
Interface IAdminUserProfile


public interface IAdminUserProfile

The interface is implemented by the users command and contains the methods for user management.


Method Summary
 int createUser(java.lang.String user, char[] password)
          Create an user.
 int deleteUser(java.lang.String user)
          Removes an user.
 int resetPassword(java.lang.String user, char[] newPassword)
          Changes the password for an user.
 boolean userExists(java.lang.String userName)
          Verifies if an user exists.
 

Method Detail

userExists

boolean userExists(java.lang.String userName)
                   throws java.io.IOException
Verifies if an user exists.

Parameters:
userName - The name of the user.
Returns:
True if the user exists.
Throws:
java.io.IOException

createUser

int createUser(java.lang.String user,
               char[] password)
               throws java.io.IOException
Create an user. The returned error codes are defined in IReturnCodes.

Parameters:
user - The user name
password - The user password
Returns:
Code indicating success or the error reason.
Throws:
java.io.IOException

deleteUser

int deleteUser(java.lang.String user)
               throws java.io.IOException
Removes an user. The returned error codes are defined in IReturnCodes.

Parameters:
user - The user name
Returns:
Code indicating success or the error reason.
Throws:
java.io.IOException

resetPassword

int resetPassword(java.lang.String user,
                  char[] newPassword)
                  throws java.io.IOException
Changes the password for an user. The returned error codes are defined in IReturnCodes.

Parameters:
user - The user name.
newPassword - The new password.
Returns:
Code indicating success or the error reason.
Throws:
java.io.IOException