Class User
- java.lang.Object
-
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
- com.oracle.bmc.databasemanagement.model.User
-
@Generated(value="OracleSDKGenerator", comments="API Version: 20201101") public final class User extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
The summary of a specific user resource.
Note: Objects should always be created or deserialized using theUser.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 theUser.Builder
, which maintain a set of all explicitly set fields calledUser.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
User.AllShared
In a sharded database, indicates whether the user is created with shard DDL enabled (YES) or not (NO).static class
User.Authentication
The authentication mechanism for the user.static class
User.Builder
static class
User.Common
Indicates whether a given user is common(Y) or local(N).static class
User.EditionsEnabled
Indicates whether editions have been enabled for the corresponding user (Y) or not (N).static class
User.ExternalShared
In a federated sharded database, indicates whether the user is an external shard user (YES) or not (NO).static class
User.Implicit
Indicates whether the user is a common user created by an implicit application (YES) or not (NO).static class
User.Inherited
Indicates whether the user definition is inherited from another container (YES) or not (NO).static class
User.OracleMaintained
Indicates whether the user was created and is maintained by Oracle-supplied scripts (such as catalog.sql or catproc.sql).static class
User.ProxyConnect
Indicates whether a user can connect directly (N) or whether the account can only be proxied (Y) by users who have proxy privileges for this account (that is, by users who have been granted the “connect through” privilege for this account).static class
User.Status
The status of the user account.
-
Constructor Summary
Constructors Constructor Description User(String name, User.Status status, Date timeLocked, Date timeExpiring, String defaultTablespace, String tempTablespace, String localTempTablespace, Date timeCreated, String profile, String consumerGroup, String externalName, String passwordVersions, User.EditionsEnabled editionsEnabled, User.Authentication authentication, User.ProxyConnect proxyConnect, User.Common common, Date timeLastLogin, User.OracleMaintained oracleMaintained, User.Inherited inherited, String defaultCollation, User.Implicit implicit, User.AllShared allShared, User.ExternalShared externalShared, Date timePasswordChanged)
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static User.Builder
builder()
Create a new builder.boolean
equals(Object o)
User.AllShared
getAllShared()
In a sharded database, indicates whether the user is created with shard DDL enabled (YES) or not (NO).User.Authentication
getAuthentication()
The authentication mechanism for the user.User.Common
getCommon()
Indicates whether a given user is common(Y) or local(N).String
getConsumerGroup()
The initial resource consumer group for the User.String
getDefaultCollation()
The default collation for the user schema.String
getDefaultTablespace()
The default tablespace for data.User.EditionsEnabled
getEditionsEnabled()
Indicates whether editions have been enabled for the corresponding user (Y) or not (N).String
getExternalName()
The external name of the user.User.ExternalShared
getExternalShared()
In a federated sharded database, indicates whether the user is an external shard user (YES) or not (NO).User.Implicit
getImplicit()
Indicates whether the user is a common user created by an implicit application (YES) or not (NO).User.Inherited
getInherited()
Indicates whether the user definition is inherited from another container (YES) or not (NO).String
getLocalTempTablespace()
The default local temporary tablespace for the user.String
getName()
The name of the User.User.OracleMaintained
getOracleMaintained()
Indicates whether the user was created and is maintained by Oracle-supplied scripts (such as catalog.sql or catproc.sql).String
getPasswordVersions()
The list of existing versions of the password hashes (also known as “verifiers”) for the account.String
getProfile()
The profile name of the user.User.ProxyConnect
getProxyConnect()
Indicates whether a user can connect directly (N) or whether the account can only be proxied (Y) by users who have proxy privileges for this account (that is, by users who have been granted the “connect through” privilege for this account).User.Status
getStatus()
The status of the user account.String
getTempTablespace()
The name of the default tablespace for temporary tables or the name of a tablespace group.Date
getTimeCreated()
The date and time the user was created.Date
getTimeExpiring()
The date and time of the expiration of the user account.Date
getTimeLastLogin()
The date and time of the last user login.Date
getTimeLocked()
The date the account was locked, if the status of the account is LOCKED.Date
getTimePasswordChanged()
The date and time when the user password was last set.int
hashCode()
User.Builder
toBuilder()
String
toString()
String
toString(boolean includeByteArrayContents)
Return a string representation of the object.
-
-
-
Constructor Detail
-
User
@Deprecated @ConstructorProperties({"name","status","timeLocked","timeExpiring","defaultTablespace","tempTablespace","localTempTablespace","timeCreated","profile","consumerGroup","externalName","passwordVersions","editionsEnabled","authentication","proxyConnect","common","timeLastLogin","oracleMaintained","inherited","defaultCollation","implicit","allShared","externalShared","timePasswordChanged"}) public User(String name, User.Status status, Date timeLocked, Date timeExpiring, String defaultTablespace, String tempTablespace, String localTempTablespace, Date timeCreated, String profile, String consumerGroup, String externalName, String passwordVersions, User.EditionsEnabled editionsEnabled, User.Authentication authentication, User.ProxyConnect proxyConnect, User.Common common, Date timeLastLogin, User.OracleMaintained oracleMaintained, User.Inherited inherited, String defaultCollation, User.Implicit implicit, User.AllShared allShared, User.ExternalShared externalShared, Date timePasswordChanged)
Deprecated.
-
-
Method Detail
-
builder
public static User.Builder builder()
Create a new builder.
-
toBuilder
public User.Builder toBuilder()
-
getName
public String getName()
The name of the User.- Returns:
- the value
-
getStatus
public User.Status getStatus()
The status of the user account.- Returns:
- the value
-
getTimeLocked
public Date getTimeLocked()
The date the account was locked, if the status of the account is LOCKED.- Returns:
- the value
-
getTimeExpiring
public Date getTimeExpiring()
The date and time of the expiration of the user account.- Returns:
- the value
-
getDefaultTablespace
public String getDefaultTablespace()
The default tablespace for data.- Returns:
- the value
-
getTempTablespace
public String getTempTablespace()
The name of the default tablespace for temporary tables or the name of a tablespace group.- Returns:
- the value
-
getLocalTempTablespace
public String getLocalTempTablespace()
The default local temporary tablespace for the user.- Returns:
- the value
-
getTimeCreated
public Date getTimeCreated()
The date and time the user was created.- Returns:
- the value
-
getProfile
public String getProfile()
The profile name of the user.- Returns:
- the value
-
getConsumerGroup
public String getConsumerGroup()
The initial resource consumer group for the User.- Returns:
- the value
-
getExternalName
public String getExternalName()
The external name of the user.- Returns:
- the value
-
getPasswordVersions
public String getPasswordVersions()
The list of existing versions of the password hashes (also known as “verifiers”) for the account.- Returns:
- the value
-
getEditionsEnabled
public User.EditionsEnabled getEditionsEnabled()
Indicates whether editions have been enabled for the corresponding user (Y) or not (N).- Returns:
- the value
-
getAuthentication
public User.Authentication getAuthentication()
The authentication mechanism for the user.- Returns:
- the value
-
getProxyConnect
public User.ProxyConnect getProxyConnect()
Indicates whether a user can connect directly (N) or whether the account can only be proxied (Y) by users who have proxy privileges for this account (that is, by users who have been granted the “connect through” privilege for this account).- Returns:
- the value
-
getCommon
public User.Common getCommon()
Indicates whether a given user is common(Y) or local(N).- Returns:
- the value
-
getTimeLastLogin
public Date getTimeLastLogin()
The date and time of the last user login.This column is not populated when a user connects to the database with administrative privileges, that is, AS { SYSASM | SYSBACKUP | SYSDBA | SYSDG | SYSOPER | SYSRAC | SYSKM }.
- Returns:
- the value
-
getOracleMaintained
public User.OracleMaintained getOracleMaintained()
Indicates whether the user was created and is maintained by Oracle-supplied scripts (such as catalog.sql or catproc.sql).- Returns:
- the value
-
getInherited
public User.Inherited getInherited()
Indicates whether the user definition is inherited from another container (YES) or not (NO).- Returns:
- the value
-
getDefaultCollation
public String getDefaultCollation()
The default collation for the user schema.- Returns:
- the value
-
getImplicit
public User.Implicit getImplicit()
Indicates whether the user is a common user created by an implicit application (YES) or not (NO).- Returns:
- the value
-
getAllShared
public User.AllShared getAllShared()
In a sharded database, indicates whether the user is created with shard DDL enabled (YES) or not (NO).- Returns:
- the value
-
getExternalShared
public User.ExternalShared getExternalShared()
In a federated sharded database, indicates whether the user is an external shard user (YES) or not (NO).- Returns:
- the value
-
getTimePasswordChanged
public Date getTimePasswordChanged()
The date and time when the user password was last set.This column is populated only when the value of the AUTHENTICATION_TYPE column is PASSWORD. Otherwise, this column is null.
- 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
-
-