RightOwner
A right owner (sometimes called principal).
Methods |
Right |
getRightForObject(DbObject object)
Get the 'grant schema' right of this object.
|
Right |
getRightForObject(DbObject object)
Get the 'grant schema' right of this object.
Parameters:
object - the granted object (table or schema)
Returns:
the right or null if the right has not been granted
|
Right |
getRightForRole(Role role)
Get the 'grant role' right of this object.
|
Right |
getRightForRole(Role role)
Get the 'grant role' right of this object.
Parameters:
role - the granted role
Returns:
the right or null if the right has not been granted
|
void |
grantRight(DbObject object, Right right)
Grant a right for the given table.
|
void |
grantRight(DbObject object, Right right)
Grant a right for the given table. Only one right object per table is
supported.
Parameters:
object - the object (table or schema)
right - the right
|
void |
grantRole(Role role, Right right)
Grant a role to this object.
|
void |
grantRole(Role role, Right right)
Grant a role to this object.
Parameters:
role - the role
right - the right to grant
|
boolean |
isRoleGranted(Role grantedRole)
Check if a role has been granted for this right owner.
|
boolean |
isRoleGranted(Role grantedRole)
Check if a role has been granted for this right owner.
Parameters:
grantedRole - the role
Returns:
true if the role has been granted
|
|