Esri Geoportal Server
1.0

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

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<User>
                      extended by com.esri.gpt.framework.security.principal.Users
All Implemented Interfaces:
Serializable, Cloneable, Comparator<User>, Map<String,User>

public class Users
extends SecurityPrincipals<User>
implements Comparator<User>

Defines a User 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
Users()
          Default constructor.
 
Method Summary
 int compare(User o1, User o2)
          Compares 2 users for sorting purposes.
 void sort()
          Sorts a collection of users 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
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

Users

public Users()
Default constructor.

Method Detail

compare

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

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

sort

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


Esri Geoportal Server
1.0

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