|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.internet2.middleware.grouper.privs.Privilege
public class Privilege
Privilege schema specification. Access the constants for Groups from AccessPrivilege and Stems from NamingPrivilege.
Field Summary | |
---|---|
static long |
serialVersionUID
constant |
Method Summary | |
---|---|
static Set<Privilege> |
convertFieldsToPrivileges(Collection<Field> fields)
convert a list to a privilege for any type of privilege |
static Set<Privilege> |
convertNamesToPrivileges(Collection<String> privilegeNames)
convert a list of privilege names or field names to a privilege for any type of privilege |
static Collection<Field> |
convertPrivilegesToFields(Collection<Privilege> privileges)
convert a collection of privileges to a collection of fields |
boolean |
equals(Object obj)
string equals |
static Set<Privilege> |
getAccessPrivs()
|
static Set<Privilege> |
getAttributeDefPrivs()
get attribute def privs |
Field |
getField()
return the list name |
Collection<Privilege> |
getImpliedPrivileges()
get the privilege that this privilege implied (including this privilege for instance if the privilege is UPDATE, then return UPDATE and ADMIN |
Collection<Privilege> |
getInheritedPrivileges()
get the inherited privileges for this privilege (including this privilege for instance if the privilege is UPDATE, then return UPDATE and ADMIN |
static Privilege |
getInstance(String name)
|
static Privilege |
getInstance(String name,
boolean exceptionIfNotFound)
|
static Set<Privilege> |
getInstances(String namesCommaSeparated)
|
String |
getListName()
return the list name |
String |
getName()
|
static Set<Privilege> |
getNamingPrivs()
get stem (naming) privs |
int |
hashCode()
generate hash code |
boolean |
isAccess()
see if privilege involves group |
static boolean |
isAccess(Privilege p)
|
boolean |
isAttributeDef()
see if privilege involves attribute def |
static boolean |
isAttributeDef(Privilege p)
|
boolean |
isNaming()
see if privilege involves stem |
static boolean |
isNaming(Privilege p)
|
static Privilege |
listToPriv(String list,
boolean exceptionOnNotFound)
convert a list to a privilege for any type of privilege |
static String |
stringValue(Set<Privilege> privileges)
convert privileges to string comma separated |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final long serialVersionUID
Method Detail |
---|
public boolean isAccess()
public boolean isNaming()
public boolean isAttributeDef()
public static Privilege listToPriv(String list, boolean exceptionOnNotFound)
list
-
public static Set<Privilege> convertFieldsToPrivileges(Collection<Field> fields)
fields
-
public static Set<Privilege> convertNamesToPrivileges(Collection<String> privilegeNames)
privilegeNames
-
public static Collection<Field> convertPrivilegesToFields(Collection<Privilege> privileges)
privileges
-
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
public Collection<Privilege> getInheritedPrivileges()
public Collection<Privilege> getImpliedPrivileges()
public String getListName()
public Field getField() throws SchemaException
SchemaException
public static Set<Privilege> getAccessPrivs()
public static Set<Privilege> getInstances(String namesCommaSeparated)
namesCommaSeparated
-
public static String stringValue(Set<Privilege> privileges)
privileges
-
public static Privilege getInstance(String name)
name
-
public static Privilege getInstance(String name, boolean exceptionIfNotFound)
name
- exceptionIfNotFound
-
public static Set<Privilege> getNamingPrivs()
public static Set<Privilege> getAttributeDefPrivs()
public static boolean isAccess(Privilege p)
p
-
public static boolean isNaming(Privilege p)
p
-
public static boolean isAttributeDef(Privilege p)
p
-
public String getName()
public String toString()
toString
in class Object
Object.toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |