Class UserSummary


  • @Generated(value="OracleSDKGenerator",
               comments="API Version: 20181201")
    public final class UserSummary
    extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
    The summary of information about the database user.

    It includes details such as user type, account status, last login time, user creation time, authentication type, user profile, and time and date of the last password change and the date and time of the expiration of the password. It also contains the user category derived from these user details, as well as granted privileges.
    Note: Objects should always be created or deserialized using the UserSummary.Builder. This model distinguishes fields that are null because they are unset from fields that are explicitly set to null. This is done in the setter methods of the UserSummary.Builder, which maintain a set of all explicitly set fields called UserSummary.Builder.__explicitlySet__. The hashCode() and equals(Object) methods are implemented to take the explicitly set fields into account. The constructor, on the other hand, does not take the explicitly set fields into account (since the constructor cannot distinguish explicit null from unset null).

    • Method Detail

      • getKey

        public String getKey()
        The unique user key.

        This is a system-generated identifier. Use ListUsers to get the user key for a user.

        Returns:
        the value
      • getUserName

        public String getUserName()
        The database user name.
        Returns:
        the value
      • getUserCategory

        public UserSummary.UserCategory getUserCategory()
        The user category based on the privileges and other details of the user.
        Returns:
        the value
      • getTargetId

        public String getTargetId()
        The OCID of the target database.
        Returns:
        the value
      • getTimeLastLogin

        public Date getTimeLastLogin()
        The date and time the user last logged in, in the format defined by RFC3339.
        Returns:
        the value
      • getTimeUserCreated

        public Date getTimeUserCreated()
        The date and time the user was created in the database, in the format defined by RFC3339.
        Returns:
        the value
      • getUserProfile

        public String getUserProfile()
        The user profile name.
        Returns:
        the value
      • getTimePasswordChanged

        public Date getTimePasswordChanged()
        The date and time the user password was last changed, in the format defined by RFC3339.
        Returns:
        the value
      • getTimePasswordExpiry

        public Date getTimePasswordExpiry()
        The date and time the user’s password will expire, in the format defined by RFC3339.
        Returns:
        the value
      • getUserTypes

        public List<UserSummary.UserTypes> getUserTypes()
        The user type, which can be a combination of the following:

        'Admin Privileged': The user has administrative privileges. 'Application': The user is an Oracle E-Business Suite Applications (EBS) or Fusion Applications (FA) user. 'Privileged': The user is a privileged user. 'Schema': The user is EXPIRED & LOCKED / EXPIRED / LOCKED, or a schema-only account (authentication type is NONE). 'Non-privileged': The user is a non-privileged user.

        Returns:
        the value
      • getAreAllSchemasAccessible

        public Boolean getAreAllSchemasAccessible()
        Indicates whether the user has access to all the schemas.
        Returns:
        the value
      • getSchemaList

        public List<String> getSchemaList()
        The list of database schemas current user can access.
        Returns:
        the value
      • toString

        public String toString()
        Overrides:
        toString in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
      • toString

        public String toString​(boolean includeByteArrayContents)
        Return a string representation of the object.
        Parameters:
        includeByteArrayContents - true to include the full contents of byte arrays
        Returns:
        string representation
      • equals

        public boolean equals​(Object o)
        Overrides:
        equals in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel