|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openanzo.server.repository.structures.PrivilegeSet
public class PrivilegeSet
Data structure and convenience methods for handling the privileges used in Anzo.
| Constructor Summary | |
|---|---|
PrivilegeSet()
Create a new set of Privileges |
|
PrivilegeSet(AclRdbWrapper.SelectUserHasAccessResult results)
Create a new set of Privileges from the results of a SelectUserHasAccess query |
|
| Method Summary | |
|---|---|
boolean |
hasAnyPrivilege()
Return true if this set contains the any privilege |
boolean |
hasPrivilege(Privilege privilege)
Return true if this set contains the privilege |
void |
setPrivilege(Privilege privilege,
boolean value)
Set privilege in the set |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PrivilegeSet()
public PrivilegeSet(AclRdbWrapper.SelectUserHasAccessResult results)
throws AnzoException
results - results of a SelectUserHasAccess query
AnzoException| Method Detail |
|---|
public boolean hasPrivilege(Privilege privilege)
throws AnzoException
privilege - privilege to check
AnzoExceptionpublic boolean hasAnyPrivilege()
public void setPrivilege(Privilege privilege,
boolean value)
throws AnzoException
privilege - privilege to setvalue - value of privilege
AnzoException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||