◆ addFromElementChildren()
void org.turro.elephant.impl.security.RoleAttribute.addFromElementChildren |
( |
List< Element > |
children | ) |
|
Definition at line 52 of file RoleAttribute.java.
53 for(Element el : children) {
54 RoleValue rv =
get(el.getAttributeValue(
"name"));
56 rv.loadFrom(
new RoleValue(el.getAttributeValue(
"value").split(
" *, *")));
58 put(el.getAttributeValue(
"name"),
59 new RoleValue(el.getAttributeValue(
"value").split(
" *, *")));
◆ isInRole()
boolean org.turro.elephant.impl.security.RoleAttribute.isInRole |
( |
String |
role | ) |
|
Definition at line 32 of file RoleAttribute.java.
33 String[] roles = role.split(
"\\s*\\|\\s*");
34 for(String r : roles) {
35 if(checkRole(r))
return true;
◆ loadFromElementChildren()
static RoleAttribute org.turro.elephant.impl.security.RoleAttribute.loadFromElementChildren |
( |
List< Element > |
children | ) |
|
|
static |
Definition at line 64 of file RoleAttribute.java.
65 RoleAttribute ra =
new RoleAttribute();
67 for(Element el : children) {
68 ra.put(el.getAttributeValue(
"name"),
69 new RoleValue(el.getAttributeValue(
"value").split(
" *, *")));
The documentation for this class was generated from the following file: