Class AccountInfo

java.lang.Object
com.sas.lsaf.security.user.AccountInfo
All Implemented Interfaces:
Serializable

public class AccountInfo extends Object implements Serializable
Account information that details account activation, licensing, and external authentication settings, if applicable.
Since:
1.2
See Also:
  • 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

      public AccountInfo.AccountType getAccountType()
      Gets the type of user account.
      Returns:
      The type of the user account.
    • setAccountType

      public void setAccountType(AccountInfo.AccountType accountType)
      Sets the type of the user account.
      Parameters:
      accountType - the type of the user account.
    • getActivationDate

      public Date getActivationDate()
      Gets the activation date of the user account.
      Returns:
      The activation date of the user account.
    • setActivationDate

      public void setActivationDate(Date activationDate)
      Sets the activation date of the user account.
      Parameters:
      activationDate - the activation date of the user account.
    • getDeactivationDate

      public Date getDeactivationDate()
      Gets the deactivation date of the user account.
      Returns:
      The deactivation date of the user account.
    • setDeactivationDate

      public void setDeactivationDate(Date deactivationDate)
      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

      public String getAuthenticator()
      Gets the authentication provider id for the user account.
      Returns:
      The authenticator of the user account.
      See Also:
    • getAuthenticatorUsername

      public String 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

      public String getLicenseTypeId()
      Gets the id of the license type of the user account.
      Returns:
      The license type id of the user account.
    • setLicenseTypeId

      public void setLicenseTypeId(String licenseTypeId)
      Sets the id of the license type of the user account. See UserService.getLicenseTypes()
      Parameters:
      licenseTypeId - the id of the license type to set for the user account.
    • getSingleSignOnId

      public String 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()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object