| Modifier and Type | Field and Description |
|---|---|
| private HashMap | grantedRights
The map of granted rights. |
| private HashMap | grantedRoles
The map of granted roles. |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public final void | |
| public Right | Returns: the right or null if the right has not been grantedthe granted object (table or schema) object)Get the 'grant schema' right of this object. |
| public Right | Returns: the right or null if the right has not been grantedthe granted role role)Get the 'grant role' right of this object. |
| public void | grantRight(DbObject
the object (table or schema) object, Right the right right)Grant a right for the given table. |
| public void | |
| public boolean | Returns: true if the role has been grantedthe role grantedRole)Check if a role has been granted for this right owner. |
| pack-priv final boolean | Returns: true if the right was already grantedthe schema to check, or schema)null to check for ALTER ANY
SCHEMA right onlyChecks if a schema owner right is already granted to this object or to objects that were granted to this object. |
| pack-priv final boolean | Returns: true if the right was already grantedthe table to check table, int the right mask to check rightMask)Checks if a right is already granted to this object or to objects that were granted to this object. |
| public void | |
| pack-priv void | |
| pack-priv void | |
| public void |
| grantedRights | back to summary |
|---|---|
| private HashMap<DbObject, Right> grantedRights The map of granted rights. | |
| grantedRoles | back to summary |
|---|---|
| private HashMap<Role, Right> grantedRoles The map of granted roles. | |
| RightOwner | back to summary |
|---|---|
| protected RightOwner(Database database, int id, String name, int traceModuleId) | |
| checkOwnsNoSchemas | back to summary |
|---|---|
| public final void checkOwnsNoSchemas() Check that this right owner does not own any schema. An exception is thrown if it owns one or more schemas.
| |
| getRightForObject | back to summary |
|---|---|
| public Right getRightForObject(DbObject object) Get the 'grant schema' right of this object. | |
| getRightForRole | back to summary |
|---|---|
| public Right getRightForRole(Role role) Get the 'grant role' right of this object. | |
| grantRight | back to summary |
|---|---|
| public void grantRight(DbObject object, Right right) Grant a right for the given table. Only one right object per table is supported. | |
| grantRole | back to summary |
|---|---|
| public void grantRole(Role role, Right right) Grant a role to this object. | |
| isRoleGranted | back to summary |
|---|---|
| public boolean isRoleGranted(Role grantedRole) Check if a role has been granted for this right owner.
| |
| isSchemaRightGrantedRecursive | back to summary |
|---|---|
| pack-priv final boolean isSchemaRightGrantedRecursive(Schema schema) Checks if a schema owner right is already granted to this object or to objects that were granted to this object. The ALTER ANY SCHEMA right gives rights to all schemas.
| |
| isTableRightGrantedRecursive | back to summary |
|---|---|
| pack-priv final boolean isTableRightGrantedRecursive(Table table, int rightMask) Checks if a right is already granted to this object or to objects that were granted to this object. The rights of schemas will be valid for every each table in the related schema. The ALTER ANY SCHEMA right gives all rights to all tables.
| |
| rename | back to summary |
|---|---|
| public void rename(String newName) Overrides org. Doc from org. Rename the object. | |
| revokeRight | back to summary |
|---|---|
| pack-priv void revokeRight(DbObject object) Revoke the right for the given object (table or schema).
| |
| revokeRole | back to summary |
|---|---|
| pack-priv void revokeRole(Role role) Remove the right for the given role.
| |
| revokeTemporaryRightsOnRoles | back to summary |
|---|---|
| public void revokeTemporaryRightsOnRoles() Remove all the temporary rights granted on roles | |