Class DatabaseViewAccessEntry


  • @Generated(value="OracleSDKGenerator",
               comments="API Version: 20181201")
    public final class DatabaseViewAccessEntry
    extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
    A DatabaseViewAccessEntry object is a resource corresponding to a row in view authorization report.

    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 DatabaseViewAccessEntry.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 DatabaseViewAccessEntry.Builder, which maintain a set of all explicitly set fields called DatabaseViewAccessEntry.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).

    • Constructor Detail

      • DatabaseViewAccessEntry

        @Deprecated
        @ConstructorProperties({"key","grantee","accessType","tableSchema","tableName","privilegeType","targetId","privilege","privilegeGrantable","grantFromRole","viewSchema","viewName","viewText","columnName","grantor","isAccessConstrainedByDatabaseVault","isAccessConstrainedByVirtualPrivateDatabase","isAccessConstrainedByRedaction","isAccessConstrainedByRealApplicationSecurity","isAccessConstrainedBySqlFirewall"})
        public DatabaseViewAccessEntry​(String key,
                                       String grantee,
                                       AccessType accessType,
                                       String tableSchema,
                                       String tableName,
                                       String privilegeType,
                                       String targetId,
                                       PrivilegeName privilege,
                                       PrivilegeGrantableOption privilegeGrantable,
                                       String grantFromRole,
                                       String viewSchema,
                                       String viewName,
                                       String viewText,
                                       String columnName,
                                       String grantor,
                                       Boolean isAccessConstrainedByDatabaseVault,
                                       Boolean isAccessConstrainedByVirtualPrivateDatabase,
                                       Boolean isAccessConstrainedByRedaction,
                                       Boolean isAccessConstrainedByRealApplicationSecurity,
                                       Boolean isAccessConstrainedBySqlFirewall)
        Deprecated.
    • Method Detail

      • getKey

        public String getKey()
        The unique key that identifies the table access report.

        It is numeric and unique within a security policy report.

        Returns:
        the value
      • getGrantee

        public String getGrantee()
        Grantee is the user who can access the table or view
        Returns:
        the value
      • getAccessType

        public AccessType getAccessType()
        The type of the access the user has on the table, there can be one or more from SELECT, UPDATE, INSERT or DELETE.
        Returns:
        the value
      • getTableSchema

        public String getTableSchema()
        The name of the schema the table belongs to.
        Returns:
        the value
      • getTableName

        public String getTableName()
        The name of the database table the user has access to.
        Returns:
        the value
      • getPrivilegeType

        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.
        Returns:
        the value
      • getTargetId

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

        public PrivilegeName getPrivilege()
        The name of the privilege.
        Returns:
        the value
      • getPrivilegeGrantable

        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

        Returns:
        the value
      • getGrantFromRole

        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.
        Returns:
        the value
      • getViewSchema

        public String getViewSchema()
        The name of the schema.
        Returns:
        the value
      • getViewName

        public String getViewName()
        The name of the view.
        Returns:
        the value
      • getViewText

        public String getViewText()
        Definition of the view.
        Returns:
        the value
      • getColumnName

        public String getColumnName()
        If there are column level privileges on a table or view.
        Returns:
        the value
      • getGrantor

        public String getGrantor()
        The user who granted the privilege.
        Returns:
        the value
      • getIsAccessConstrainedByDatabaseVault

        public Boolean getIsAccessConstrainedByDatabaseVault()
        Indicates whether the table access is constrained via Oracle Database Vault.
        Returns:
        the value
      • getIsAccessConstrainedByVirtualPrivateDatabase

        public Boolean getIsAccessConstrainedByVirtualPrivateDatabase()
        Indicates whether the view access is constrained via Virtual Private Database.
        Returns:
        the value
      • getIsAccessConstrainedByRedaction

        public Boolean getIsAccessConstrainedByRedaction()
        Indicates whether the view access is constrained via Oracle Data Redaction.
        Returns:
        the value
      • getIsAccessConstrainedByRealApplicationSecurity

        public Boolean getIsAccessConstrainedByRealApplicationSecurity()
        Indicates whether the view access is constrained via Real Application Security.
        Returns:
        the value
      • getIsAccessConstrainedBySqlFirewall

        public Boolean getIsAccessConstrainedBySqlFirewall()
        Indicates whether the view access is constrained via Oracle Database SQL Firewall.
        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