java.lang.Cloneable
, Dependable
, Provider
public class PermDescriptor extends PermissionsDescriptor implements Provider
Modifier and Type | Field | Description |
---|---|---|
static java.lang.String |
AGGREGATE_TYPE |
|
private boolean |
grantable |
|
private java.lang.String |
objectType |
|
private java.lang.String |
permission |
|
private UUID |
permObjectId |
|
static java.lang.String |
SEQUENCE_TYPE |
|
static java.lang.String |
UDT_TYPE |
|
static java.lang.String |
USAGE_PRIV |
ACTIVATION, ALIAS, COLUMNS_IN_TABLE, COLUMNS_PERMISSION, CONGLOMERATE, CONSTRAINT, DEFAULT, FILE, HEAP, INDEX, PERM, PREPARED_STATEMENT, ROLE_GRANT, ROUTINE_PERMISSION, SCHEMA, SEQUENCE, STORED_PREPARED_STATEMENT, TABLE, TABLE_PERMISSION, TRIGGER, VIEW
oid
Constructor | Description |
---|---|
PermDescriptor(DataDictionary dd,
UUID permUUID) |
|
PermDescriptor(DataDictionary dataDictionary,
UUID permUUID,
java.lang.String objectType,
UUID permObjectId,
java.lang.String permission,
java.lang.String grantor,
java.lang.String grantee,
boolean isGrantable) |
Constructor
|
Modifier and Type | Method | Description |
---|---|---|
boolean |
checkOwner(java.lang.String authorizationId) |
This method checks if the passed authorization id is same as the owner
of the object on which this permission is defined.
|
boolean |
equals(java.lang.Object other) |
|
int |
getCatalogNumber() |
|
java.lang.String |
getClassType() |
Get the provider's type.
|
DependableFinder |
getDependableFinder() |
Get an object which can be written to disk and which,
when read from disk, will find or reconstruct this in-memory
Dependable.
|
java.lang.String |
getObjectName() |
Return the name of this Provider.
|
java.lang.String |
getObjectType() |
|
java.lang.String |
getPermission() |
|
UUID |
getPermObjectId() |
|
static PrivilegedSQLObject |
getProtectedObject(DataDictionary dd,
UUID objectID,
java.lang.String objectType) |
Get the protected object.
|
int |
hashCode() |
|
boolean |
isGrantable() |
|
java.lang.String |
toString() |
getObjectID, isPersistent
finalize, getClass, notify, notifyAll, wait, wait, wait
clone, getGrantee, getGrantor, getObjectID, getUUID, isPersistent, keyEquals, keyHashCode, setGrantee, setUUID
getColumnDependableFinder, getDataDictionary, getDependableFinder, getDescriptorName, getDescriptorType, setDataDictionary
public static final java.lang.String SEQUENCE_TYPE
public static final java.lang.String UDT_TYPE
public static final java.lang.String AGGREGATE_TYPE
public static final java.lang.String USAGE_PRIV
private java.lang.String objectType
private UUID permObjectId
private java.lang.String permission
private boolean grantable
public PermDescriptor(DataDictionary dataDictionary, UUID permUUID, java.lang.String objectType, UUID permObjectId, java.lang.String permission, java.lang.String grantor, java.lang.String grantee, boolean isGrantable)
dataDictionary
- data dictionarypermUUID
- unique identification in time and space of this perm descriptorobjectType
- E.g., SEQUENCE_TYPEpermObjectId
- Unique id of the object being protectedpermission
- E.g., USAGE_PRIVgrantor
- Authorization id which confers the privilegegrantee
- Authorization id which receives the privilegeisGrantable
- True if the privilege can be granted onwardspublic PermDescriptor(DataDictionary dd, UUID permUUID) throws StandardException
StandardException
public java.lang.String getObjectType()
public UUID getPermObjectId()
public java.lang.String getPermission()
public boolean isGrantable()
public int getCatalogNumber()
getCatalogNumber
in class PermissionsDescriptor
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean checkOwner(java.lang.String authorizationId) throws StandardException
PermissionsDescriptor
checkOwner
in class PermissionsDescriptor
StandardException
PermissionsDescriptor.checkOwner(java.lang.String)
public static PrivilegedSQLObject getProtectedObject(DataDictionary dd, UUID objectID, java.lang.String objectType) throws StandardException
dd
- MetadataobjectID
- Unique handle on the protected objectobjectType
- Type of the objectStandardException
public java.lang.String getObjectName()
getObjectName
in interface Dependable
public java.lang.String getClassType()
getClassType
in interface Dependable
public DependableFinder getDependableFinder()
Dependable
getDependableFinder
in interface Dependable
Dependable.getDependableFinder()
Apache Derby V10.14 Internals - Copyright © 2004,2018 The Apache Software Foundation. All Rights Reserved.