public class Privilege extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static long |
serialVersionUID
constant
|
Modifier and Type | Method and Description |
---|---|
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
|
static Set<Privilege> |
getEntityPrivs() |
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) |
static boolean |
isEntity(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() |
public static final long serialVersionUID
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 boolean equals(Object obj)
public Collection<Privilege> getInheritedPrivileges()
public Collection<Privilege> getImpliedPrivileges()
public String getListName()
public Field getField() throws SchemaException
SchemaException
public static Set<Privilege> getInstances(String namesCommaSeparated)
namesCommaSeparated
- public static String stringValue(Set<Privilege> privileges)
privileges
- public static Privilege getInstance(String name, boolean exceptionIfNotFound)
name
- exceptionIfNotFound
- public static Set<Privilege> getAttributeDefPrivs()
public static boolean isAccess(Privilege p)
p
- public static boolean isEntity(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()
Copyright © 2016 Internet2. All rights reserved.