| Modifier | Constructor and Description |
|---|---|
protected |
RightOwner(Database database,
int id,
java.lang.String name,
int traceModuleId) |
| Modifier and Type | Method and Description |
|---|---|
void |
checkOwnsNoSchemas()
Check that this right owner does not own any schema.
|
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.
|
void |
rename(java.lang.String newName)
Rename the object.
|
void |
revokeTemporaryRightsOnRoles()
Remove all the temporary rights granted on roles
|
checkRename, getChildren, getComment, getCreateSQL, getCreateSQLForCopy, getCreateSQLForMeta, getDatabase, getDropSQL, getId, getModificationId, getName, getSQL, getSQL, getType, invalidate, isTemporary, isValid, removeChildrenAndResources, setComment, setModified, setObjectName, setTemporary, toStringprotected RightOwner(Database database, int id, java.lang.String name, int traceModuleId)
public void rename(java.lang.String newName)
DbObjectpublic 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 void revokeTemporaryRightsOnRoles()
public Right getRightForObject(DbObject object)
object - the granted object (table or schema)public Right getRightForRole(Role role)
role - the granted rolepublic final void checkOwnsNoSchemas()
org.h2.message.DbException - if this right owner owns a schema