Package com.uc4.communication
Class DefaultNotificationListener
- java.lang.Object
-
- com.uc4.communication.DefaultNotificationListener
-
- All Implemented Interfaces:
INotificationListener
public class DefaultNotificationListener extends java.lang.Object implements INotificationListener
Default Implementation of theINotificationListener
interface. Subclasses can be created if only a few methods of theINotificationListener
are needed. The advantage of creating a sub class is that the code which uses the UC4 Application Interface does not need to be changed whenever a new method is added to theINotificationListener
interface.
-
-
Constructor Summary
Constructors Constructor Description DefaultNotificationListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
activationMessages(int runNumner, UC4ObjectName task, TranslatedMessage[] messages)
This method is called if there is an activation protocol for a task.void
activityListChanged()
This method is called if the activity list changed.void
asyncMessage(AsyncMessage message)
This method is called if a new message is available.void
handleIOException(java.io.IOException e)
This method is called if there was an I/O-error.void
highestCallOperatorChanged()
This method is called if a notification was added or removed for the current user.void
processingStarted()
This method is called after the client state has changed to active.void
processingStopped()
This method is called after the client state has changed to stop.void
promptInputRequired(int runID)
This method is called if prompt values are required in order to a execute an object.void
read(Form form)
This method is called when activating an object which requires user input.void
treeChanged()
This method is called if the tree structure in UC4 has changed.
-
-
-
Method Detail
-
asyncMessage
public void asyncMessage(AsyncMessage message)
Description copied from interface:INotificationListener
This method is called if a new message is available.- Specified by:
asyncMessage
in interfaceINotificationListener
- Parameters:
message
- Message
-
read
public void read(Form form)
Description copied from interface:INotificationListener
This method is called when activating an object which requires user input. See also:READ
in the UC4 documentation.The request
SubmitForm
can be used to send the values to the Server and continue with the activation of the object.CancelForm
can be used to cancel the pending form. This also cancels the action of the object.- Specified by:
read
in interfaceINotificationListener
- Parameters:
form
-Form
form
-
treeChanged
public void treeChanged()
Description copied from interface:INotificationListener
This method is called if the tree structure in UC4 has changed.- Specified by:
treeChanged
in interfaceINotificationListener
-
activityListChanged
public void activityListChanged()
Description copied from interface:INotificationListener
This method is called if the activity list changed.- Specified by:
activityListChanged
in interfaceINotificationListener
-
highestCallOperatorChanged
public void highestCallOperatorChanged()
Description copied from interface:INotificationListener
This method is called if a notification was added or removed for the current user.- Specified by:
highestCallOperatorChanged
in interfaceINotificationListener
-
processingStopped
public void processingStopped()
Description copied from interface:INotificationListener
This method is called after the client state has changed to stop.- Specified by:
processingStopped
in interfaceINotificationListener
-
processingStarted
public void processingStarted()
Description copied from interface:INotificationListener
This method is called after the client state has changed to active.- Specified by:
processingStarted
in interfaceINotificationListener
-
activationMessages
public void activationMessages(int runNumner, UC4ObjectName task, TranslatedMessage[] messages)
Description copied from interface:INotificationListener
This method is called if there is an activation protocol for a task.- Specified by:
activationMessages
in interfaceINotificationListener
- Parameters:
runNumner
- RUN# of the tasktask
- Name of the taskmessages
- Array containing the messages
-
promptInputRequired
public void promptInputRequired(int runID)
Description copied from interface:INotificationListener
This method is called if prompt values are required in order to a execute an object.- Specified by:
promptInputRequired
in interfaceINotificationListener
- Parameters:
runID
- Run ID of the Object.
-
handleIOException
public void handleIOException(java.io.IOException e)
Description copied from interface:INotificationListener
This method is called if there was an I/O-error.- Specified by:
handleIOException
in interfaceINotificationListener
- Parameters:
e
- Exception describing the error
-
-