org.hsqldb.rights
Class Right
- java.lang.Object
-
- org.hsqldb.rights.Right
-
public final class Right extends java.lang.ObjectRepresents the set of rights on a database object- Since:
- 1.9.0
-
-
Field Summary
Fields Modifier and Type Field and Description static OrderedHashSetemptySetstatic RightfullRightsstatic RightnoRightsstatic java.lang.String[]privilegeNamesstatic int[]privilegeTypes
-
Constructor Summary
Constructors Constructor and Description Right()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidadd(Right right)Supports column level GRANTbooleancanAccess(int privilegeType)Supports column level rightsbooleancanAccess(Table table, int[] columnMap)booleancanAccessFully(int privilegeType)booleancanAcesssNonSelect()booleancontains(Right right)Rightduplicate()OrderedHashSetgetColumnsForPrivilege(Table table, int type)RightgetGrantableRights()GranteegetGrantee()GranteegetGrantor()booleanisEmpty()supports column level GRANT / REVOKEbooleanisFull()voidremove(SchemaObject object, Right right)supports column level REVOKEvoidset(int type, OrderedHashSet set)voidsetColumns(Table table)
-
-
-
Field Detail
-
emptySet
public static final OrderedHashSet emptySet
-
fullRights
public static final Right fullRights
-
noRights
public static final Right noRights
-
privilegeNames
public static final java.lang.String[] privilegeNames
-
privilegeTypes
public static final int[] privilegeTypes
-
-
Method Detail
-
isFull
public boolean isFull()
-
getGrantor
public Grantee getGrantor()
-
getGrantee
public Grantee getGrantee()
-
getGrantableRights
public Right getGrantableRights()
-
duplicate
public Right duplicate()
-
add
public void add(Right right)
Supports column level GRANT
-
remove
public void remove(SchemaObject object, Right right)
supports column level REVOKE
-
isEmpty
public boolean isEmpty()
supports column level GRANT / REVOKE
-
contains
public boolean contains(Right right)
-
getColumnsForPrivilege
public OrderedHashSet getColumnsForPrivilege(Table table, int type)
-
canAccessFully
public boolean canAccessFully(int privilegeType)
-
canAcesssNonSelect
public boolean canAcesssNonSelect()
-
canAccess
public boolean canAccess(int privilegeType)
Supports column level rights
-
canAccess
public boolean canAccess(Table table, int[] columnMap)
-
setColumns
public void setColumns(Table table)
-
set
public void set(int type, OrderedHashSet set)
-
-
DataMelt 3.0 © DataMelt by jWork.ORG