Esri Geoportal Server
1.0

com.esri.gpt.framework.security.principal
Class Groups

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap<K,V>
          extended by java.util.LinkedHashMap<String,T>
              extended by com.esri.gpt.framework.collection.CaseInsensitiveMap<T>
                  extended by com.esri.gpt.framework.security.principal.SecurityPrincipals<Group>
                      extended by com.esri.gpt.framework.security.principal.Groups
All Implemented Interfaces:
Serializable, Cloneable, Comparator<Group>, Map<String,Group>

public class Groups
extends SecurityPrincipals<Group>
implements Comparator<Group>

Defines a Group collection.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Constructor Summary
Groups()
          Default constructor.
 
Method Summary
 int compare(Group o1, Group o2)
          Compares 2 groups for sorting purposes.
 void sort()
          Sorts a collection of groups by display name.
 
Methods inherited from class com.esri.gpt.framework.security.principal.SecurityPrincipals
add
 
Methods inherited from class com.esri.gpt.framework.collection.CaseInsensitiveMap
containsKey, get, getAllowEmptyKey, put, toString
 
Methods inherited from class java.util.LinkedHashMap
clear, containsValue, removeEldestEntry
 
Methods inherited from class java.util.HashMap
clone, entrySet, isEmpty, keySet, putAll, remove, size, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 
Methods inherited from interface java.util.Map
entrySet, equals, hashCode, isEmpty, keySet, putAll, remove, size, values
 

Constructor Detail

Groups

public Groups()
Default constructor.

Method Detail

compare

public int compare(Group o1,
                   Group o2)
Compares 2 groups for sorting purposes.
The comparison is based upon the display name.

Specified by:
compare in interface Comparator<Group>
Parameters:
o1 - first group to compare
o2 - second group to compare

sort

public void sort()
Sorts a collection of groups by display name.


Esri Geoportal Server
1.0

Copyright 2011 Environmental Systems Research Institute. All rights reserved. Use is subject to license terms.