|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.workflow.SortedEnumByPrincipal
An enumeration that returns objects in sorted order.
Supported API: true
Supported API: true
Nested Class Summary | |
(package private) static class |
SortedEnumByPrincipal.SortEntry
|
(package private) static class |
SortedEnumByPrincipal.SortPredicate
|
Field Summary | |
static int |
ASCENDING
|
private int |
count
|
static int |
DESCENDING
|
private static long |
serialVersionUID
|
private Object[] |
sorted
|
private static String |
versionID
|
Constructor Summary | |
SortedEnumByPrincipal(Enumeration source,
boolean byFullName,
int order)
Construct a sorted Enumeration containing
the WTPrincipals of another Enumeration . |
|
SortedEnumByPrincipal(Enumeration source,
CollationKeyFactory key_factory)
Construct a sorted Enumeration containing
the elements of another Enumeration . |
|
SortedEnumByPrincipal(Enumeration source,
CollationKeyFactory key_factory,
int order)
Construct a sorted Enumeration containing
the elements of another Enumeration . |
Method Summary | |
boolean |
hasMoreElements()
Supported API: true |
Object |
nextElement()
Supported API: true |
int |
size()
Return the number of elements remaining in the enumeration. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String versionID
private static final long serialVersionUID
public static final int ASCENDING
public static final int DESCENDING
private Object[] sorted
private int count
Constructor Detail |
public SortedEnumByPrincipal(Enumeration source, CollationKeyFactory key_factory)
Enumeration
containing
the elements of another Enumeration
.
Elements are sorted into ascending order.
source
- source Enumeration
public SortedEnumByPrincipal(Enumeration source, CollationKeyFactory key_factory, int order)
Enumeration
containing
the elements of another Enumeration
.
source
- source Enumeration
order
- sort order (ASCENDING or DECENDING)public SortedEnumByPrincipal(Enumeration source, boolean byFullName, int order)
Enumeration
containing
the WTPrincipals of another Enumeration
.
source
- source Enumeration
byFullName
- boolean to collate by FullName
instead of Name attribute. If the elements are
WTUsers, true will sort by FullName, else by
web server id. If the elements are WTGroups,
the sort will be by GroupName regardless.order
- sort order (ASCENDING or DECENDING)Method Detail |
public boolean hasMoreElements()
hasMoreElements
in interface Enumeration
public Object nextElement()
nextElement
in interface Enumeration
public int size()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |