Package org.ldaptive.ad.control.util
Class NotificationClient.NotificationItem
java.lang.Object
org.ldaptive.ad.control.util.NotificationClient.NotificationItem
- Enclosing class:
NotificationClient
Contains data returned when using the notification control.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionNotificationItem
(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
Modifier and TypeMethodDescriptiongetEntry()
Returns the search entry contained in this item or null if this item does not contain a search entry.Returns the exception contained in this item or null if this item does not contain an exception.Returns the response contained in this item or null if this item does not contain a response.boolean
isEntry()
Returns whether this item represents a search entry.boolean
Returns whether this item represents an exception.boolean
isResult()
Returns whether this item represents a response.toString()
-
Field Details
-
searchEntry
Entry contained in this notification item. -
searchResult
Result contained in this notification item. -
searchException
Exception thrown by the search operation.
-
-
Constructor Details
-
NotificationItem
Creates a new notification item.- Parameters:
entry
- that represents this item
-
NotificationItem
Creates a new notification item.- Parameters:
result
- that represents this item
-
NotificationItem
Creates a new notification item.- Parameters:
exception
- that represents this item
-
-
Method Details
-
isEntry
public boolean isEntry()Returns whether this item represents a search entry.- Returns:
- whether this item represents a search entry
-
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
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
Returns the exception contained in this item or null if this item does not contain an exception.- Returns:
- exception
-
toString
-