|
Copyright © 2000, 2008, Oracle and/or its affiliates. All rights reserved. | ||||||||
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.CollectionNotificationUserEnumerator
public class CollectionNotificationUserEnumerator
Used to enumerate a list of usernames to the NotificationManager when sending notifications to a reasonably-sized (not too large to fit in memory) set of users.
Constructor Summary | |
---|---|
CollectionNotificationUserEnumerator(Collection<String> usernames)
Constructor where the collection of usernames to enumerate 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 CollectionNotificationUserEnumerator(Collection<String> usernames)
usernames
- the collection of usernames to enumerate.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.
|
Copyright © 2000, 2008, Oracle and/or its affiliates. All rights reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |