com.sas.drugdev.remote.admin
Interface User

All Known Subinterfaces:
RemoteUser
All Known Implementing Classes:
UserBean

public interface User

Interface representing a user in the SDD instance.


Method Summary
 java.lang.String getAuthenticationProvider()
          Gets the name of the authentication provider for this user.
 java.lang.String getAuthenticationProviderUserId()
          Gets the userId associated with this user that is defined in the external authentication provider.
 java.lang.String getEmailAddress()
          Get the email address of this user in SDD
 java.lang.String getFirstName()
          Get the first name of this user in SDD
 java.lang.String getLastName()
          Get the last name of this user in SDD
 boolean getPasswordReset()
          Sets whether the password should be reset.
 java.util.List getPolicies()
          Get the policies assigned to this user in SDD.
 java.util.Map getProperties()
          Get all properties of this user in SDD except policies
 java.lang.String getUserId()
          Get the userId of this user as defined within SDD
 boolean isActive()
          Returns the active status of the user
 boolean isRetired()
          Returns whether the user is retired or not
 

Method Detail

getUserId

public java.lang.String getUserId()
Get the userId of this user as defined within SDD

Returns:
The userId of this user within SDD

getFirstName

public java.lang.String getFirstName()
Get the first name of this user in SDD

Returns:
The first name of this user within SDD

getLastName

public java.lang.String getLastName()
Get the last name of this user in SDD

Returns:
The last name of this user within SDD

getEmailAddress

public java.lang.String getEmailAddress()
Get the email address of this user in SDD

Returns:
The email address of this user within SDD

isActive

public boolean isActive()
Returns the active status of the user

Returns:
true if active, false if inactive

isRetired

public boolean isRetired()
Returns whether the user is retired or not

Returns:
true if retired, false if not

getPolicies

public java.util.List getPolicies()
Get the policies assigned to this user in SDD. Returns an empty List if user has no policies.

Returns:
List of Policy objects

getAuthenticationProvider

public java.lang.String getAuthenticationProvider()
Gets the name of the authentication provider for this user. Default is sdd, otherwise will be the name of an external authentication provider.

Returns:
name of authentication provider

getAuthenticationProviderUserId

public java.lang.String getAuthenticationProviderUserId()
Gets the userId associated with this user that is defined in the external authentication provider. If the authentication provider is sdd or if no provider userId has been specified, this will return null.

Returns:
userId as defined in external authentication provider

getProperties

public java.util.Map getProperties()
Get all properties of this user in SDD except policies

Returns:
An unmodifiable map of properties with a String key and String value

getPasswordReset

public boolean getPasswordReset()
Sets whether the password should be reset. Default is true. Determines if this user's password needs to be reset

Returns:
True if the user's password needs to be reset, otherwise false