RightOwner
A right owner (sometimes called principal).
Methods |
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
|
Right |
getRightForTable(Table table)
Get the 'grant table' right of this object.
|
Right |
getRightForTable(Table table)
Get the 'grant table' right of this object.
Parameters:
table - the granted table
Returns:
the right or null if the right has not been granted
|
void |
grantRight(Table table, Right right)
Grant a right for the given table.
|
void |
grantRight(Table table, Right right)
Grant a right for the given table. Only one right object per table is
supported.
Parameters:
table - the table
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
|
|