Package com.sas.lsaf.security.user
Class AccountInfo
java.lang.Object
com.sas.lsaf.security.user.AccountInfo
- All Implemented Interfaces:
Serializable
Account information that details account activation, licensing, and external authentication settings, if applicable.
- Since:
- 1.2
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe list of supported account types. -
Constructor Summary
ConstructorsConstructorDescriptionAccountInfo(AccountInfo.AccountType accountType, Date activationDate, Date deactivationDate, boolean active, String licenseTypeId, String authenticator, String authenticatorUsername) Constructor.AccountInfo(AccountInfo.AccountType accountType, Date activationDate, Date deactivationDate, boolean active, String licenseTypeId, String authenticator, String authenticatorUsername, String singleSignOnId, boolean singleSignOnEnabled) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets the type of user account.Gets the activation date of the user account.Gets the authentication provider id for the user account.Gets the authentication provider username of the user account.Gets the deactivation date of the user account.Gets the id of the license type of the user account.Gets the id for single sign-on authentication.inthashCode()booleanisActive()Gets the Boolean value that indicates whether the user account is currently active.booleanGets the boolean value to indicate if single sign-on is enabled.voidsetAccountType(AccountInfo.AccountType accountType) Sets the type of the user account.voidsetActivationDate(Date activationDate) Sets the activation date of the user account.voidsetActive(boolean active) Sets the Boolean value that indicates whether the user account is currently active.voidsetDeactivationDate(Date deactivationDate) Sets the deactivation date of the user account.voidsetLicenseTypeId(String licenseTypeId) Sets the id of the license type of the user account.toString()
-
Constructor Details
-
AccountInfo
public AccountInfo(AccountInfo.AccountType accountType, Date activationDate, Date deactivationDate, boolean active, String licenseTypeId, String authenticator, String authenticatorUsername) Constructor.- Parameters:
accountType- the type of user account.activationDate- the activation date of the user account.deactivationDate- the deactivation date of the user account.active- the Boolean value that indicates whether the user account is currently active.licenseTypeId- the id of the license type of the user account.authenticator- the authentication provider id for the user account.authenticatorUsername- the authenticator username of the user account.
-
AccountInfo
public AccountInfo(AccountInfo.AccountType accountType, Date activationDate, Date deactivationDate, boolean active, String licenseTypeId, String authenticator, String authenticatorUsername, String singleSignOnId, boolean singleSignOnEnabled) Constructor.- Parameters:
accountType- the type of user account.activationDate- the activation date of the user account.deactivationDate- the deactivation date of the user account.active- the Boolean value that indicates whether the user account is currently active.licenseTypeId- the id of the license type of the user account.authenticator- the authentication provider id for the user account.authenticatorUsername- the authenticator username of the user account.singleSignOnId- The id for single sign-on authentication.singleSignOnEnabled- The boolean value to indicate if single sign-on is enabled.
-
-
Method Details
-
getAccountType
Gets the type of user account.- Returns:
- The type of the user account.
-
setAccountType
Sets the type of the user account.- Parameters:
accountType- the type of the user account.
-
getActivationDate
Gets the activation date of the user account.- Returns:
- The activation date of the user account.
-
setActivationDate
Sets the activation date of the user account.- Parameters:
activationDate- the activation date of the user account.
-
getDeactivationDate
Gets the deactivation date of the user account.- Returns:
- The deactivation date of the user account.
-
setDeactivationDate
Sets the deactivation date of the user account.- Parameters:
deactivationDate- the deactivation date of the user account.
-
isActive
public boolean isActive()Gets the Boolean value that indicates whether the user account is currently active.- Returns:
- The Boolean value that indicates whether the user account is currently active.
-
setActive
public void setActive(boolean active) Sets the Boolean value that indicates whether the user account is currently active.- Parameters:
active- the Boolean value that indicates whether the user account is currently active.
-
getAuthenticator
Gets the authentication provider id for the user account.- Returns:
- The authenticator of the user account.
- See Also:
-
getAuthenticatorUsername
Gets the authentication provider username of the user account. If this is provided then it will be used when authenticating against the external authentication system.- Returns:
- The authenticator username of the user account.
-
getLicenseTypeId
Gets the id of the license type of the user account.- Returns:
- The license type id of the user account.
-
setLicenseTypeId
Sets the id of the license type of the user account. SeeUserService.getLicenseTypes()- Parameters:
licenseTypeId- the id of the license type to set for the user account.
-
getSingleSignOnId
Gets the id for single sign-on authentication.- Returns:
- The id for single sign-on authentication.
-
isSingleSignOnEnabled
public boolean isSingleSignOnEnabled()Gets the boolean value to indicate if single sign-on is enabled.- Returns:
- True if single sign-on is enabled for the system. Otherwise, false.
-
hashCode
public int hashCode() -
equals
-
toString
-