|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.h2.engine.DbObjectBase
org.h2.engine.RightOwner
public abstract class RightOwner
A right owner (sometimes called principal).
Field Summary |
---|
Fields inherited from class org.h2.engine.DbObjectBase |
---|
comment, database, trace |
Fields inherited from interface org.h2.engine.DbObject |
---|
AGGREGATE, COMMENT, CONSTANT, CONSTRAINT, FUNCTION_ALIAS, INDEX, RIGHT, ROLE, SCHEMA, SEQUENCE, SETTING, TABLE_OR_VIEW, TRIGGER, USER, USER_DATATYPE |
Constructor Summary | |
---|---|
protected |
RightOwner(Database database,
int id,
java.lang.String name,
java.lang.String traceModule)
|
Method Summary | |
---|---|
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. |
void |
revokeRight(Table table)
Revoke the right for the given table. |
void |
revokeRole(Role role)
Remove the right for the given role. |
Methods inherited from class org.h2.engine.DbObjectBase |
---|
checkRename, getChildren, getComment, getCreateSQL, getCreateSQLForCopy, getDatabase, getDropSQL, getId, getModificationId, getName, getSQL, getType, initDbObjectBase, invalidate, isTemporary, removeChildrenAndResources, rename, setComment, setModified, setObjectName, setTemporary, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected RightOwner(Database database, int id, java.lang.String name, java.lang.String traceModule)
Method Detail |
---|
public boolean isRoleGranted(Role grantedRole)
grantedRole
- the role
public void grantRight(Table table, Right right)
table
- the tableright
- the rightpublic void revokeRight(Table table)
table
- the tablepublic void grantRole(Role role, Right right)
role
- the roleright
- the right to grantpublic void revokeRole(Role role)
role
- the role to revoke
SQLException
- if the right has not been grantedpublic Right getRightForTable(Table table)
table
- the granted table
public Right getRightForRole(Role role)
role
- the granted role
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |