Package org.ldaptive.ad.control.util
Class NotificationClient.NotificationItem
- java.lang.Object
-
- org.ldaptive.ad.control.util.NotificationClient.NotificationItem
-
- Enclosing class:
- NotificationClient
public static class NotificationClient.NotificationItem extends Object
Contains data returned when using the notification control.
-
-
Field Summary
Fields Modifier and Type Field Description private LdapEntrysearchEntryEntry contained in this notification item.private ExceptionsearchExceptionException thrown by the search operation.private ResultsearchResultResult contained in this notification item.
-
Constructor Summary
Constructors Constructor Description NotificationItem(Exception exception)Creates a new notification item.NotificationItem(LdapEntry entry)Creates a new notification item.NotificationItem(Result result)Creates a new notification item.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LdapEntrygetEntry()Returns the search entry contained in this item or null if this item does not contain a search entry.ExceptiongetException()Returns the exception contained in this item or null if this item does not contain an exception.ResultgetResult()Returns the response contained in this item or null if this item does not contain a response.booleanisEntry()Returns whether this item represents a search entry.booleanisException()Returns whether this item represents an exception.booleanisResult()Returns whether this item represents a response.StringtoString()
-
-
-
Constructor Detail
-
NotificationItem
public NotificationItem(LdapEntry entry)
Creates a new notification item.- Parameters:
entry- that represents this item
-
NotificationItem
public NotificationItem(Result result)
Creates a new notification item.- Parameters:
result- that represents this item
-
NotificationItem
public NotificationItem(Exception exception)
Creates a new notification item.- Parameters:
exception- that represents this item
-
-
Method Detail
-
isEntry
public boolean isEntry()
Returns whether this item represents a search entry.- Returns:
- whether this item represents a search entry
-
getEntry
public LdapEntry getEntry()
Returns the search entry contained in this item or null if this item does not contain a search entry.- Returns:
- search entry
-
isResult
public boolean isResult()
Returns whether this item represents a response.- Returns:
- whether this item represents a response
-
getResult
public Result getResult()
Returns the response contained in this item or null if this item does not contain a response.- Returns:
- response
-
isException
public boolean isException()
Returns whether this item represents an exception.- Returns:
- whether this item represents an exception
-
getException
public Exception getException()
Returns the exception contained in this item or null if this item does not contain an exception.- Returns:
- exception
-
-