|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjpl.mipl.mdms.FileService.komodo.ui.savannah.subscription.handler.AbstractSubscriptionHandler
public abstract class AbstractSubscriptionHandler
Purpose:
Default implementation of the methods of the SubscriptionHandler.
Subclasses must implement the handleEvent() method.
Copyright 2005, California Institute of Technology. ALL RIGHTS RESERVED. U.S. Government Sponsorship acknowledge. 2005.
============================================================================ Modification History : ---------------------- Date Who What ---------------------------------------------------------------------------- mm/dd/2005 Nick Initial Release ============================================================================
| Field Summary | |
|---|---|
protected String |
_classname
Class name of this handler |
protected Client |
_client
|
protected String |
_id
Id of this handler |
protected SavannahModel |
_model
|
protected String |
_name
Name of this handler |
| Fields inherited from interface jpl.mipl.mdms.FileService.komodo.ui.savannah.subscription.handler.SubscriptionHandler |
|---|
ATTR_CLASS, ATTR_DESC, ATTR_NAME, ATTR_VERSION, ELEMENT_HANDLER_NAME, ELEMENT_PROPERTIES_NAME, ELEMENT_PROPERTY_NAME, PROPERTY_KEYWORD, PROPERTY_VALUE |
| Constructor Summary | |
|---|---|
AbstractSubscriptionHandler()
|
|
| Method Summary | |
|---|---|
void |
destroy()
|
String |
getClassname()
Returns the description of this handler |
String |
getId()
Returns the id of this handler |
String |
getName()
Returns the name of this handler |
abstract void |
handleEvent(int taskType,
List results)
Handle method performs operation of the handler. |
void |
initialize(HandlerInfo info)
Initializes handler from contents of a DOM element. |
void |
setAppModel(SavannahModel model)
Sets the reference to the client object associated with this handler. |
void |
setClient(Client client)
Sets the reference to the client object associated with this handler. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected Client _client
protected SavannahModel _model
protected String _name
protected String _id
protected String _classname
| Constructor Detail |
|---|
public AbstractSubscriptionHandler()
| Method Detail |
|---|
public abstract void handleEvent(int taskType,
List results)
handleEvent in interface SubscriptionHandlertaskType - Type of task, one of
SubscriptionConstants.TASK_{SUBSCRIPTION,NOTIFICATION}results - List of Result objects
public void initialize(HandlerInfo info)
throws Exception
SubscriptionHandler
initialize in interface SubscriptionHandlerException - if element is null is does not contain required
attributes.public String getName()
getName in interface SubscriptionHandlerpublic String getId()
getId in interface SubscriptionHandlerpublic String getClassname()
getClassname in interface SubscriptionHandlerpublic void setClient(Client client)
SubscriptionHandler
setClient in interface SubscriptionHandlerclient - Current client objectpublic void setAppModel(SavannahModel model)
SubscriptionHandler
setAppModel in interface SubscriptionHandlerpublic String toString()
toString in class Objectpublic void destroy()
destroy in interface SubscriptionHandler
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||