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.ExplicitlySetBmcModelThe 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 classUser.AllSharedIn a sharded database, indicates whether the user is created with shard DDL enabled (YES) or not (NO).static classUser.AuthenticationThe authentication mechanism for the user.static classUser.Builderstatic classUser.CommonIndicates whether a given user is common(Y) or local(N).static classUser.EditionsEnabledIndicates whether editions have been enabled for the corresponding user (Y) or not (N).static classUser.ExternalSharedIn a federated sharded database, indicates whether the user is an external shard user (YES) or not (NO).static classUser.ImplicitIndicates whether the user is a common user created by an implicit application (YES) or not (NO).static classUser.InheritedIndicates whether the user definition is inherited from another container (YES) or not (NO).static classUser.OracleMaintainedIndicates whether the user was created and is maintained by Oracle-supplied scripts (such as catalog.sql or catproc.sql).static classUser.ProxyConnectIndicates 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 classUser.StatusThe 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.Builderbuilder()Create a new builder.booleanequals(Object o)User.AllSharedgetAllShared()In a sharded database, indicates whether the user is created with shard DDL enabled (YES) or not (NO).User.AuthenticationgetAuthentication()The authentication mechanism for the user.User.CommongetCommon()Indicates whether a given user is common(Y) or local(N).StringgetConsumerGroup()The initial resource consumer group for the User.StringgetDefaultCollation()The default collation for the user schema.StringgetDefaultTablespace()The default tablespace for data.User.EditionsEnabledgetEditionsEnabled()Indicates whether editions have been enabled for the corresponding user (Y) or not (N).StringgetExternalName()The external name of the user.User.ExternalSharedgetExternalShared()In a federated sharded database, indicates whether the user is an external shard user (YES) or not (NO).User.ImplicitgetImplicit()Indicates whether the user is a common user created by an implicit application (YES) or not (NO).User.InheritedgetInherited()Indicates whether the user definition is inherited from another container (YES) or not (NO).StringgetLocalTempTablespace()The default local temporary tablespace for the user.StringgetName()The name of the User.User.OracleMaintainedgetOracleMaintained()Indicates whether the user was created and is maintained by Oracle-supplied scripts (such as catalog.sql or catproc.sql).StringgetPasswordVersions()The list of existing versions of the password hashes (also known as “verifiers”) for the account.StringgetProfile()The profile name of the user.User.ProxyConnectgetProxyConnect()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.StatusgetStatus()The status of the user account.StringgetTempTablespace()The name of the default tablespace for temporary tables or the name of a tablespace group.DategetTimeCreated()The date and time the user was created.DategetTimeExpiring()The date and time of the expiration of the user account.DategetTimeLastLogin()The date and time of the last user login.DategetTimeLocked()The date the account was locked, if the status of the account is LOCKED.DategetTimePasswordChanged()The date and time when the user password was last set.inthashCode()User.BuildertoBuilder()StringtoString()StringtoString(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:
toStringin 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:
equalsin classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
hashCode
public int hashCode()
- Overrides:
hashCodein classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
-