Class UserSummary
- java.lang.Object
-
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
- com.oracle.bmc.datasafe.model.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 theUserSummary.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 theUserSummary.Builder
, which maintain a set of all explicitly set fields calledUserSummary.Builder.__explicitlySet__
. ThehashCode()
andequals(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).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
UserSummary.AccountStatus
The status of the user account.static class
UserSummary.AdminRoles
static class
UserSummary.AuthenticationType
The user authentication method.static class
UserSummary.Builder
static class
UserSummary.UserCategory
The user category based on the privileges and other details of the user.static class
UserSummary.UserTypes
-
Constructor Summary
Constructors Constructor Description UserSummary(String key, String userName, UserSummary.UserCategory userCategory, UserSummary.AccountStatus accountStatus, String targetId, Date timeLastLogin, Date timeUserCreated, UserSummary.AuthenticationType authenticationType, String userProfile, Date timePasswordChanged, Date timePasswordExpiry, List<UserSummary.UserTypes> userTypes, List<UserSummary.AdminRoles> adminRoles, Boolean areAllSchemasAccessible, List<String> schemaList)
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static UserSummary.Builder
builder()
Create a new builder.boolean
equals(Object o)
UserSummary.AccountStatus
getAccountStatus()
The status of the user account.List<UserSummary.AdminRoles>
getAdminRoles()
The admin roles granted to the user.Boolean
getAreAllSchemasAccessible()
Indicates whether the user has access to all the schemas.UserSummary.AuthenticationType
getAuthenticationType()
The user authentication method.String
getKey()
The unique user key.List<String>
getSchemaList()
The list of database schemas current user can access.String
getTargetId()
The OCID of the target database.Date
getTimeLastLogin()
The date and time the user last logged in, in the format defined by RFC3339.Date
getTimePasswordChanged()
The date and time the user password was last changed, in the format defined by RFC3339.Date
getTimePasswordExpiry()
The date and time the user’s password will expire, in the format defined by RFC3339.Date
getTimeUserCreated()
The date and time the user was created in the database, in the format defined by RFC3339.UserSummary.UserCategory
getUserCategory()
The user category based on the privileges and other details of the user.String
getUserName()
The database user name.String
getUserProfile()
The user profile name.List<UserSummary.UserTypes>
getUserTypes()
The user type, which can be a combination of the following:int
hashCode()
UserSummary.Builder
toBuilder()
String
toString()
String
toString(boolean includeByteArrayContents)
Return a string representation of the object.
-
-
-
Constructor Detail
-
UserSummary
@Deprecated @ConstructorProperties({"key","userName","userCategory","accountStatus","targetId","timeLastLogin","timeUserCreated","authenticationType","userProfile","timePasswordChanged","timePasswordExpiry","userTypes","adminRoles","areAllSchemasAccessible","schemaList"}) public UserSummary(String key, String userName, UserSummary.UserCategory userCategory, UserSummary.AccountStatus accountStatus, String targetId, Date timeLastLogin, Date timeUserCreated, UserSummary.AuthenticationType authenticationType, String userProfile, Date timePasswordChanged, Date timePasswordExpiry, List<UserSummary.UserTypes> userTypes, List<UserSummary.AdminRoles> adminRoles, Boolean areAllSchemasAccessible, List<String> schemaList)
Deprecated.
-
-
Method Detail
-
builder
public static UserSummary.Builder builder()
Create a new builder.
-
toBuilder
public UserSummary.Builder toBuilder()
-
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
-
getAccountStatus
public UserSummary.AccountStatus getAccountStatus()
The status of the user account.- 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
-
getAuthenticationType
public UserSummary.AuthenticationType getAuthenticationType()
The user authentication method.- 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
-
getAdminRoles
public List<UserSummary.AdminRoles> getAdminRoles()
The admin roles granted to the 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 classcom.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 classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
-