|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.BobCo.postit.BCPostItNotebook
This is an example server task providing the tracking of the reminder notes that are attached to managed objects/groups. In this example, ....
Field Summary |
---|
Fields inherited from interface com.BobCo.postit.BCPostItConstants |
---|
CREATE_POST_IT_NOTE_CMD, GET_POST_IT_NOTE_TEXT_CMD, GET_POST_ITS_FOR_OBJECT_CMD, POST_IT_SERVER, RC_INVALID_PARAMETER, RC_OKAY, RC_UNSUPPORTED_CMD, REMOVE_POST_IT_NOTE_CMD, RETRIEVE_POST_IT_LIST_CMD |
Constructor Summary | |
---|---|
BCPostItNotebook()
Constructor for the Reminder Notes Server Task |
Method Summary | |
---|---|
boolean |
CommandReceived(com.tivoli.twg.libs.ServiceNode sn,
com.tivoli.twg.libs.Command cmd)
Command received callback. |
int |
createPostItNote(java.lang.String noteText,
com.tivoli.twg.libs.LongValueSet moids)
Create a post it note for the objects specified. |
com.tivoli.twg.libs.IntValueSet |
getAllNotesForObject(long oid)
Get the list of notes attached to a specific object id. |
long[] |
getAllObjectsWithNotesAttached()
Get the list of all object ids that have notes attached to them. |
static BCPostItNotebook |
getPostItServerTask()
This method returns the postit service node defined in the server. |
com.tivoli.twg.libs.ServiceNode |
getPostItServiceNode()
This method returns the postit service node defined in the server. |
void |
handleCreatePostItRequest(com.tivoli.twg.libs.Command cmd)
Command handler for create post it note command |
void |
handleGetPostItListRequest(com.tivoli.twg.libs.Command cmd)
Command handler for retrieving the list of all object ids with notes attached. |
void |
handleGetPostItNotesForObjectRequest(com.tivoli.twg.libs.Command cmd)
Command handler for retrieving the list of all object ids with notes attached. |
void |
handleGetPostItNoteTextRequest(com.tivoli.twg.libs.Command cmd)
Command handler for retrieving the text for a specific post it note. |
void |
handleRemovePostItRequest(com.tivoli.twg.libs.Command cmd)
Command handler for remove post it note command |
void |
removePostItNote(int noteID,
com.tivoli.twg.libs.LongValueSet moids)
Remove the post it note from the specified systems. |
void |
run()
|
boolean |
serverActivate(com.tivoli.twg.engine.TWGTask task)
This method is called first so that the server task can perform any initialization prior to run() getting called. |
void |
serverDeactivate()
This method is called when the server needs to deactivate this server task. |
int |
subtaskActivate(com.tivoli.twg.engine.TWGTaskActivation act)
This method is called when a subtask activation has been received from the console for this task. |
void |
subtaskDeactivate(com.tivoli.twg.engine.TWGTaskActivation act)
This method is called when a subtask deactivation has been received from the console for this task. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public BCPostItNotebook()
Method Detail |
public boolean serverActivate(com.tivoli.twg.engine.TWGTask task)
serverActivate
in interface com.tivoli.twg.engine.TWGTaskServer
public void serverDeactivate()
serverDeactivate
in interface com.tivoli.twg.engine.TWGTaskServer
public int subtaskActivate(com.tivoli.twg.engine.TWGTaskActivation act)
subtaskActivate
in interface com.tivoli.twg.engine.TWGTaskServer
act
- the TWGTaskActivation object for the subtask being activated.
public void subtaskDeactivate(com.tivoli.twg.engine.TWGTaskActivation act)
subtaskDeactivate
in interface com.tivoli.twg.engine.TWGTaskServer
public void run()
run
in interface java.lang.Runnable
public boolean CommandReceived(com.tivoli.twg.libs.ServiceNode sn, com.tivoli.twg.libs.Command cmd)
CommandReceived
in interface com.tivoli.twg.libs.CommandReceivedListener
sn
- - ServiceNode instance which received Commandcmd
- - Instance of Command received
public com.tivoli.twg.libs.ServiceNode getPostItServiceNode()
public static BCPostItNotebook getPostItServerTask()
public long[] getAllObjectsWithNotesAttached()
public com.tivoli.twg.libs.IntValueSet getAllNotesForObject(long oid)
public int createPostItNote(java.lang.String noteText, com.tivoli.twg.libs.LongValueSet moids)
noteText
- The text of the note attached to the objects.moids
- The managed object ids of the systems the note is attached to.public void removePostItNote(int noteID, com.tivoli.twg.libs.LongValueSet moids)
noteID
- The id of the note to remove from the objects.moids
- The object ids of the systems the note is removed from.public void handleCreatePostItRequest(com.tivoli.twg.libs.Command cmd)
cmd
- - command requestedpublic void handleRemovePostItRequest(com.tivoli.twg.libs.Command cmd)
cmd
- - command requestedpublic void handleGetPostItListRequest(com.tivoli.twg.libs.Command cmd)
cmd
- - command requestedpublic void handleGetPostItNotesForObjectRequest(com.tivoli.twg.libs.Command cmd)
cmd
- - command requestedpublic void handleGetPostItNoteTextRequest(com.tivoli.twg.libs.Command cmd)
cmd
- - command requested
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |