|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.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 java.util.Set<Privilege> |
convertFieldsToPrivileges(java.util.Collection<Field> fields)
convert a list to a privilege for any type of privilege |
static java.util.Set<Privilege> |
convertNamesToPrivileges(java.util.Collection<java.lang.String> privilegeNames)
convert a list of privilege names or field names to a privilege for any type of privilege |
static java.util.Collection<Field> |
convertPrivilegesToFields(java.util.Collection<Privilege> privileges)
convert a collection of privileges to a collection of fields |
boolean |
equals(java.lang.Object obj)
string equals |
static java.util.Set<Privilege> |
getAccessPrivs()
|
static java.util.Set<Privilege> |
getAttributeDefPrivs()
get attribute def privs |
Field |
getField()
return the list name |
java.util.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 |
java.util.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(java.lang.String name)
|
static Privilege |
getInstance(java.lang.String name,
boolean exceptionIfNotFound)
|
static java.util.Set<Privilege> |
getInstances(java.lang.String namesCommaSeparated)
|
java.lang.String |
getListName()
return the list name |
java.lang.String |
getName()
|
static java.util.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(java.lang.String list,
boolean exceptionOnNotFound)
convert a list to a privilege for any type of privilege |
static java.lang.String |
stringValue(java.util.Set<Privilege> privileges)
convert privileges to string comma separated |
java.lang.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(java.lang.String list, boolean exceptionOnNotFound)
list
-
public static java.util.Set<Privilege> convertFieldsToPrivileges(java.util.Collection<Field> fields)
fields
-
public static java.util.Set<Privilege> convertNamesToPrivileges(java.util.Collection<java.lang.String> privilegeNames)
privilegeNames
-
public static java.util.Collection<Field> convertPrivilegesToFields(java.util.Collection<Privilege> privileges)
privileges
-
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.util.Collection<Privilege> getInheritedPrivileges()
public java.util.Collection<Privilege> getImpliedPrivileges()
public java.lang.String getListName()
public Field getField() throws SchemaException
SchemaException
public static java.util.Set<Privilege> getAccessPrivs()
public static java.util.Set<Privilege> getInstances(java.lang.String namesCommaSeparated)
namesCommaSeparated
-
public static java.lang.String stringValue(java.util.Set<Privilege> privileges)
privileges
-
public static Privilege getInstance(java.lang.String name)
name
-
public static Privilege getInstance(java.lang.String name, boolean exceptionIfNotFound)
name
- exceptionIfNotFound
-
public static java.util.Set<Privilege> getNamingPrivs()
public static java.util.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 java.lang.String getName()
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |