public abstract class RightOwner extends DbObjectBase
comment, database, traceAGGREGATE, COMMENT, CONSTANT, CONSTRAINT, FUNCTION_ALIAS, INDEX, RIGHT, ROLE, SCHEMA, SEQUENCE, SETTING, SYNONYM, TABLE_OR_VIEW, TRIGGER, USER, USER_DATATYPE| Modifier | Constructor and Description |
|---|---|
protected |
RightOwner(Database database,
int id,
java.lang.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, isValid, removeChildrenAndResources, rename, setComment, setModified, setObjectName, setTemporary, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetCreateSQLForCopy, getTypeprotected RightOwner(Database database, int id, java.lang.String name, int traceModuleId)
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)