|
Oracle Fusion Middleware Java API for Oracle WebLogic Portal 10g Release 3 (10.3.2) E14255-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
com.bea.netuix.application.notifications.enumerators.AggregatingNotificationUserEnumerator
public class AggregatingNotificationUserEnumerator
Serves to aggregate multiple INotificationUserEnumerator
objects into a single enumerator. Because the enumeration must guarantee that usernames are only returned once, this implementation creates an in-memory collection of all usernames returned from its contained enumerators so as to ensure that duplicate usernames are never passed on. This does limit the use of this implementation to a reasonably-sized set of usernames (the set that would reasonably fit in memory).
Constructor Summary | |
---|---|
AggregatingNotificationUserEnumerator(Collection<INotificationUserEnumerator> enumerators) Constructor where the collection of enumerators to aggregate is specified. |
Method Summary | |
---|---|
void |
close() Releases any resources used by this enumeration. |
String |
getNext() Returns the next username in the enumeration. |
boolean |
hasNext() Used to determine if more usernames are available from this enumeration. |
void |
open() Serves to initialize the enumeration. |
void |
reset() Used to reset the enumeration to the beginning. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AggregatingNotificationUserEnumerator(Collection<INotificationUserEnumerator> enumerators)
enumerators
- the collection of enumerators to aggregate.Method Detail |
---|
public void open() throws NotificationUserEnumerationException
reset
, hasNext
or getNext
methods are made.open
in interface INotificationUserEnumerator
NotificationUserEnumerationException
- if any problems were encountered.public void reset() throws NotificationUserEnumerationException
reset()
has been made.reset
in interface INotificationUserEnumerator
NotificationUserEnumerationException
- if any problems were encountered.public boolean hasNext() throws NotificationUserEnumerationException
hasNext
in interface INotificationUserEnumerator
true
as long as more usernames are available from the enumeration.NotificationUserEnumerationException
- if any problems were encountered.public String getNext() throws NotificationUserEnumerationException
getNext
in interface INotificationUserEnumerator
NotificationUserEnumerationException
- if any problems were encountered.public void close() throws NotificationUserEnumerationException
close
in interface INotificationUserEnumerator
NotificationUserEnumerationException
- if any problems were encountered.
|
Oracle Fusion Middleware Java API for Oracle WebLogic Portal 10g Release 3 (10.3.2) E14255-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2010, Oracle. All rights reserved.