@Generated(value="OracleSDKGenerator", comments="API Version: 20181201") public final class DatabaseTableAccessEntry extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
A DatabaseTableAccess is a resource corresponding to a row in database table access report. It
contains information about user’s privilege grants that enable table access for the user. It’s a
subresource of Security Policy Report resource and is always associated with a
SecurityPolicyReport.
Note: Objects should always be created or deserialized using the DatabaseTableAccessEntry.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 DatabaseTableAccessEntry.Builder
, which maintain a
set of all explicitly set fields called DatabaseTableAccessEntry.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
).
Modifier and Type | Class and Description |
---|---|
static class |
DatabaseTableAccessEntry.Builder |
EXPLICITLY_SET_FILTER_NAME, EXPLICITLY_SET_PROPERTY_NAME
Constructor and Description |
---|
DatabaseTableAccessEntry(String key,
String grantee,
AccessType accessType,
String tableSchema,
String tableName,
String privilegeType,
String targetId,
PrivilegeName privilege,
PrivilegeGrantableOption privilegeGrantable,
String grantFromRole,
String accessThroughObject,
String columnName,
String grantor,
Boolean areAllTablesAccessible,
Boolean isAccessConstrainedByView,
Boolean isAccessConstrainedByLabelSecurity,
Boolean isAccessConstrainedByDatabaseVault,
Boolean isAccessConstrainedByVirtualPrivateDatabase,
Boolean isAccessConstrainedByRedaction,
Boolean isAccessConstrainedByRealApplicationSecurity,
Boolean isAccessConstrainedBySqlFirewall,
Boolean isSensitive)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static DatabaseTableAccessEntry.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
String |
getAccessThroughObject()
A non-null value in this field indicates the object through which user has access to table,
possible values could be table or view.
|
AccessType |
getAccessType()
The type of the access the user has on the table, there can be one or more from SELECT,
UPDATE, INSERT, OWNER or DELETE.
|
Boolean |
getAreAllTablesAccessible()
Indicates whether the user has access to all the tables in the schema.
|
String |
getColumnName()
If there are column level privileges on a table or view.
|
String |
getGrantee()
Grantee is the user who can access the table
|
String |
getGrantFromRole()
This can be empty in case of direct grant, in case of indirect grant, this attribute displays
the name of the role which is granted to the user though which the user has access to the
table.
|
String |
getGrantor()
The one who granted this privilege.
|
Boolean |
getIsAccessConstrainedByDatabaseVault()
Indicates whether the table access is constrained via Oracle Database Vault.
|
Boolean |
getIsAccessConstrainedByLabelSecurity()
Indicates whether the table access is constrained via Oracle Label Security.
|
Boolean |
getIsAccessConstrainedByRealApplicationSecurity()
Indicates whether the table access is constrained via Real Application Security.
|
Boolean |
getIsAccessConstrainedByRedaction()
Indicates whether the table access is constrained via Oracle Data Redaction.
|
Boolean |
getIsAccessConstrainedBySqlFirewall()
Indicates whether the table access is constrained via Oracle Database SQL Firewall.
|
Boolean |
getIsAccessConstrainedByView()
Indicates whether the access is constrained on a table via a view.
|
Boolean |
getIsAccessConstrainedByVirtualPrivateDatabase()
Indicates whether the table access is constrained via Virtual Private Database.
|
Boolean |
getIsSensitive()
Indicates whether the table is marked as sensitive.
|
String |
getKey()
The unique key that identifies the table access report.
|
PrivilegeName |
getPrivilege()
Name of the privilege.
|
PrivilegeGrantableOption |
getPrivilegeGrantable()
Indicates whether the grantee can grant this privilege to other users.
|
String |
getPrivilegeType()
Type of the privilege user has, this includes System Privilege, Schema Privilege, Object
Privilege, Column Privilege, Owner or Schema Privilege on a schema.
|
String |
getTableName()
The name of the database table the user has access to.
|
String |
getTableSchema()
The name of the schema the table belongs to.
|
String |
getTargetId()
The OCID of the of the target database.
|
int |
hashCode() |
DatabaseTableAccessEntry.Builder |
toBuilder() |
String |
toString() |
String |
toString(boolean includeByteArrayContents)
Return a string representation of the object.
|
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
@Deprecated @ConstructorProperties(value={"key","grantee","accessType","tableSchema","tableName","privilegeType","targetId","privilege","privilegeGrantable","grantFromRole","accessThroughObject","columnName","grantor","areAllTablesAccessible","isAccessConstrainedByView","isAccessConstrainedByLabelSecurity","isAccessConstrainedByDatabaseVault","isAccessConstrainedByVirtualPrivateDatabase","isAccessConstrainedByRedaction","isAccessConstrainedByRealApplicationSecurity","isAccessConstrainedBySqlFirewall","isSensitive"}) public DatabaseTableAccessEntry(String key, String grantee, AccessType accessType, String tableSchema, String tableName, String privilegeType, String targetId, PrivilegeName privilege, PrivilegeGrantableOption privilegeGrantable, String grantFromRole, String accessThroughObject, String columnName, String grantor, Boolean areAllTablesAccessible, Boolean isAccessConstrainedByView, Boolean isAccessConstrainedByLabelSecurity, Boolean isAccessConstrainedByDatabaseVault, Boolean isAccessConstrainedByVirtualPrivateDatabase, Boolean isAccessConstrainedByRedaction, Boolean isAccessConstrainedByRealApplicationSecurity, Boolean isAccessConstrainedBySqlFirewall, Boolean isSensitive)
public static DatabaseTableAccessEntry.Builder builder()
Create a new builder.
public DatabaseTableAccessEntry.Builder toBuilder()
public String getKey()
The unique key that identifies the table access report. It is numeric and unique within a security policy report.
public String getGrantee()
Grantee is the user who can access the table
public AccessType getAccessType()
The type of the access the user has on the table, there can be one or more from SELECT, UPDATE, INSERT, OWNER or DELETE.
public String getTableSchema()
The name of the schema the table belongs to.
public String getTableName()
The name of the database table the user has access to.
public String getPrivilegeType()
Type of the privilege user has, this includes System Privilege, Schema Privilege, Object Privilege, Column Privilege, Owner or Schema Privilege on a schema.
public String getTargetId()
The OCID of the of the target database.
public PrivilegeName getPrivilege()
Name of the privilege.
public PrivilegeGrantableOption getPrivilegeGrantable()
Indicates whether the grantee can grant this privilege to other users. Privileges can be granted to a user or role with GRANT_OPTION or ADMIN_OPTION
public String getGrantFromRole()
This can be empty in case of direct grant, in case of indirect grant, this attribute displays the name of the role which is granted to the user though which the user has access to the table.
public String getAccessThroughObject()
A non-null value in this field indicates the object through which user has access to table, possible values could be table or view.
public String getColumnName()
If there are column level privileges on a table or view.
public String getGrantor()
The one who granted this privilege.
public Boolean getAreAllTablesAccessible()
Indicates whether the user has access to all the tables in the schema.
public Boolean getIsAccessConstrainedByView()
Indicates whether the access is constrained on a table via a view.
public Boolean getIsAccessConstrainedByLabelSecurity()
Indicates whether the table access is constrained via Oracle Label Security.
public Boolean getIsAccessConstrainedByDatabaseVault()
Indicates whether the table access is constrained via Oracle Database Vault.
public Boolean getIsAccessConstrainedByVirtualPrivateDatabase()
Indicates whether the table access is constrained via Virtual Private Database.
public Boolean getIsAccessConstrainedByRedaction()
Indicates whether the table access is constrained via Oracle Data Redaction.
public Boolean getIsAccessConstrainedByRealApplicationSecurity()
Indicates whether the table access is constrained via Real Application Security.
public Boolean getIsAccessConstrainedBySqlFirewall()
Indicates whether the table access is constrained via Oracle Database SQL Firewall.
public Boolean getIsSensitive()
Indicates whether the table is marked as sensitive.
public String toString()
toString
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.
includeByteArrayContents
- true to include the full contents of byte arrayspublic boolean equals(Object o)
equals
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public int hashCode()
hashCode
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
Copyright © 2016–2024. All rights reserved.