com.sas.drugdev.remote.admin
Interface AdminService


public interface AdminService

The AdminService provides a list of available users and groups. The intention for this service is to aid in creating AccessControlEntry objects. It allows the code to check whether a user or group exists before creating the entry.


Method Summary
 void changePassword(char[] currentPassword, char[] newPassword)
          Deprecated. Use UserService.changePassword(char[], char[]) instead. Change the current user's password.
 java.util.List getGroupNames()
          Deprecated. Use GroupService.get(GroupBean) instead. Gets a list of all the group names in the system.
 java.util.Date getPasswordExpirationDate()
          Deprecated. Use UserService.getPasswordExpirationDate() instead. Get the date that the current user's password will expire.
 java.util.List getUserIds()
          Deprecated. Use UserService.getAll() instead. Gets a list of all userids in the system where the user is active or inactive. No retired userids are returned in the list.
 boolean groupExists(java.lang.String groupName)
          Deprecated. Use GroupService.exists(GroupBean) instead. Tests whether a group of the given name exists.
 boolean userExists(java.lang.String userid)
          Deprecated. Use UserService.exists(String) instead. Check whether a user with the given userid exists. This method will return true if the user exists and is either active or inactive. It will return false if the user doesn't exist or if the user exists, but is retired.
 

Method Detail

getGroupNames

java.util.List getGroupNames()
                             throws RemoteException,
                                    InvalidSessionException
Deprecated. Use GroupService.get(GroupBean) instead. Gets a list of all the group names in the system.

Returns:
an unmodifiable list of String objects.
Throws:
RemoteException - if a server or transport error occurs
InvalidSessionException - if the current session is expired or has been invalidated

groupExists

boolean groupExists(java.lang.String groupName)
                    throws RemoteException,
                           InvalidSessionException
Deprecated. Use GroupService.exists(GroupBean) instead. Tests whether a group of the given name exists.

Parameters:
groupName - name of the group to check for
Returns:
true is the group exists
Throws:
RemoteException - if a server or transport error occurs
InvalidSessionException - if the current session is expired or has been invalidated

getUserIds

java.util.List getUserIds()
                          throws RemoteException,
                                 InvalidSessionException
Deprecated. Use UserService.getAll() instead. Gets a list of all userids in the system where the user is active or inactive. No retired userids are returned in the list.

Returns:
an unmodifiable list of String objects.
Throws:
RemoteException - if a server or transport error occurs
InvalidSessionException - if the current session is expired or has been invalidated

userExists

boolean userExists(java.lang.String userid)
                   throws RemoteException,
                          InvalidSessionException
Deprecated. Use UserService.exists(String) instead. Check whether a user with the given userid exists. This method will return true if the user exists and is either active or inactive. It will return false if the user doesn't exist or if the user exists, but is retired.

Parameters:
userid - userid of the user to check for
Returns:
true if the user exists and is not retired
Throws:
RemoteException - if a server or transport error occurs
InvalidSessionException - if the current session is expired or has been invalidated

getPasswordExpirationDate

java.util.Date getPasswordExpirationDate()
                                         throws RemoteException,
                                                InvalidSessionException
Deprecated. Use UserService.getPasswordExpirationDate() instead. Get the date that the current user's password will expire.

Returns:
Date on which the password will expire.
Throws:
RemoteException - if a server or transport error occurs
InvalidSessionException - if the current session is expired or has been invalidated

changePassword

void changePassword(char[] currentPassword,
                    char[] newPassword)
                    throws InvalidPasswordException,
                           RemoteException,
                           InvalidSessionException
Deprecated. Use UserService.changePassword(char[], char[]) instead. Change the current user's password.

Parameters:
currentPassword - current password of the current user
newPassword - new password for the current user
Throws:
RemoteException - if a server or transport error occurs
InvalidSessionException - if the current session is expired or has been invalidated
InvalidPasswordException - if the current password is expired or is not valid