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,
int traceModuleId) |
Modifier and Type | Method and Description |
---|---|
Right |
getRightForObject(DbObject object)
Get the 'grant schema' right of this object.
|
Right |
getRightForRole(Role role)
Get the 'grant role' right of this object.
|
void |
grantRight(DbObject object,
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(DbObject object, Right right)
object
- the object (table or schema)right
- the rightpublic void grantRole(Role role, Right right)
role
- the roleright
- the right to grantpublic Right getRightForObject(DbObject object)
object
- the granted object (table or schema)Copyright © 2017 JBoss by Red Hat. All rights reserved.