Interface StewardshipActionEventInterface
- All Known Implementing Classes:
StewardshipActionEventClient
,StewardshipActionOutTopicClientConnector
public interface StewardshipActionEventInterface
StewardshipActionEventInterface defines how a client gets access to the
events produced by the Stewardship Action OMAS
-
Method Summary
Modifier and TypeMethodDescriptionvoid
registerListener
(String userId, StewardshipActionEventListener listener) Register a listener object that will be passed each of the events published by the Stewardship Action OMAS.
-
Method Details
-
registerListener
void registerListener(String userId, StewardshipActionEventListener listener) throws InvalidParameterException, ConnectionCheckedException, ConnectorCheckedException, PropertyServerException, UserNotAuthorizedException Register a listener object that will be passed each of the events published by the Stewardship Action OMAS.- Parameters:
userId
- calling userlistener
- listener object- Throws:
InvalidParameterException
- one of the parameters is null or invalid.ConnectionCheckedException
- there are errors in the configuration of the connection which is preventing the creation of a connector.ConnectorCheckedException
- there are errors in the initialization of the connector.PropertyServerException
- there is a problem retrieving information from the property server(s).UserNotAuthorizedException
- the requesting user is not authorized to issue this request.
-