public abstract class RightOwner extends DbObjectBase
comment, database, trace
AGGREGATE, COMMENT, CONSTANT, CONSTRAINT, FUNCTION_ALIAS, INDEX, RIGHT, ROLE, SCHEMA, SEQUENCE, SETTING, TABLE_OR_VIEW, TRIGGER, USER, USER_DATATYPE
Modifier | Constructor and Description |
---|---|
protected |
RightOwner(Database database,
int id,
String name,
String traceModule) |
Modifier and Type | Method and Description |
---|---|
Right |
getRightForRole(Role role)
Get the 'grant role' right of this object.
|
Right |
getRightForTable(Table table)
Get the 'grant table' right of this object.
|
void |
grantRight(Table table,
Right right)
Grant a right for the given table.
|
void |
grantRole(Role role,
Right right)
Grant a role to this object.
|
boolean |
isRoleGranted(Role grantedRole)
Check if a role has been granted for this right owner.
|
checkRename, getChildren, getComment, getCreateSQL, getDatabase, getDropSQL, getId, getModificationId, getName, getSQL, initDbObjectBase, invalidate, isTemporary, removeChildrenAndResources, rename, setComment, setModified, setObjectName, setTemporary, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getCreateSQLForCopy, getType
public boolean isRoleGranted(Role grantedRole)
grantedRole
- the rolepublic void grantRight(Table table, Right right)
table
- the tableright
- the rightpublic void grantRole(Role role, Right right)
role
- the roleright
- the right to grantpublic Right getRightForTable(Table table)
table
- the granted tableCopyright © 2012 JBoss by Red Hat. All Rights Reserved.