|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.turbine.util.security.SecuritySet
This class represents a set of Security Entities. It makes it easy to build a UI. It wraps a TreeSet object to enforce that only relevant methods are available. TreeSet's contain only unique Objects (no duplicates).
Field Summary | |
protected java.util.Map |
idMap
Map for "id" -> "security object" |
protected java.util.Map |
nameMap
Map for "name" -> "security object" |
Constructor Summary | |
SecuritySet()
Constructs an empty Set |
Method Summary | |
void |
clear()
Removes all Objects from this Set. |
boolean |
contains(java.lang.String groupName)
Deprecated. Use containsName(groupName) instead. |
boolean |
containsId(int id)
Searches if an Object with a given Id is in the Set |
boolean |
containsName(java.lang.String name)
Searches if an Object with a given name is in the Set |
java.util.Iterator |
elements()
Deprecated. Use iterator() instead. |
java.util.Set |
getIds()
Returns a set of Id values in this Object. |
java.util.Set |
getNames()
Returns a set of Names in this Object. |
java.util.Set |
getSet()
Returns a set of security objects in this object. |
java.util.Iterator |
iterator()
Returns an Iterator for Objects in this Set. |
int |
size()
Returns size (cardinality) of this set. |
java.lang.String |
toString()
list of role names in this set |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected java.util.Map nameMap
protected java.util.Map idMap
Constructor Detail |
public SecuritySet()
Method Detail |
public java.util.Set getSet()
public java.util.Set getNames()
public java.util.Set getIds()
public void clear()
public boolean contains(java.lang.String groupName)
public boolean containsName(java.lang.String name)
public boolean containsId(int id)
id
- Id of the Security Object.
public java.util.Iterator iterator()
public java.util.Iterator elements()
public int size()
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |