gran.app.adapter.kernel.message
Class BaseMessageAdapter

java.lang.Object
  extended bygran.app.adapter.kernel.message.BaseMessageAdapter
All Implemented Interfaces:
Adapter, KernelAdapter, MessageAdapter

public class BaseMessageAdapter
extends java.lang.Object
implements MessageAdapter


Constructor Summary
BaseMessageAdapter()
           
 
Method Summary
 gran.model.Message addMessageImpl(java.lang.String taskId, java.lang.String userId, java.lang.String mstatus, java.lang.String text, java.lang.String hrs, java.lang.String mns, java.lang.String handler, java.lang.String resolution, java.lang.String priority, java.lang.String deadline, java.lang.String budgetHrs, java.lang.String budgetMns, gran.model.Message result)
          add message (bug-note to system) we create all required records, modify task status and handler
 void deleteMessagesImpl(java.lang.String[] ids)
          removes specified message
 java.lang.String getDescription()
          Get description of adapter as plain text
 java.util.Collection getMessageListImpl(java.lang.String taskid, java.lang.String userid, gran.app.filter.FValue flthm, java.util.Collection result)
          Get list of messages, that pass filter conditions
 boolean init()
          Initialize adapter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseMessageAdapter

public BaseMessageAdapter()
Method Detail

init

public boolean init()
Description copied from interface: Adapter
Initialize adapter. TrackStudio calls this method during startup.

Specified by:
init in interface Adapter
Returns:
true when adapter initialized, false otherwise.

getDescription

public java.lang.String getDescription()
Description copied from interface: Adapter
Get description of adapter as plain text

Specified by:
getDescription in interface Adapter

addMessageImpl

public gran.model.Message addMessageImpl(java.lang.String taskId,
                                         java.lang.String userId,
                                         java.lang.String mstatus,
                                         java.lang.String text,
                                         java.lang.String hrs,
                                         java.lang.String mns,
                                         java.lang.String handler,
                                         java.lang.String resolution,
                                         java.lang.String priority,
                                         java.lang.String deadline,
                                         java.lang.String budgetHrs,
                                         java.lang.String budgetMns,
                                         gran.model.Message result)
                                  throws gran.exception.GranException
Description copied from interface: MessageAdapter
add message (bug-note to system) we create all required records, modify task status and handler

Specified by:
addMessageImpl in interface MessageAdapter
Parameters:
taskId - - current task id
userId - - current user id
mstatus - - message type id
text - - bug-note text
hrs - - hours (>0)
mns - - minutes (>0)
handler - - new handler
resolution - - new resolution (can be null)
Throws:
gran.exception.GranException

deleteMessagesImpl

public void deleteMessagesImpl(java.lang.String[] ids)
                        throws gran.exception.GranException
Description copied from interface: MessageAdapter
removes specified message

Specified by:
deleteMessagesImpl in interface MessageAdapter
Parameters:
ids - - array of message ids
Throws:
gran.exception.GranException

getMessageListImpl

public java.util.Collection getMessageListImpl(java.lang.String taskid,
                                               java.lang.String userid,
                                               gran.app.filter.FValue flthm,
                                               java.util.Collection result)
                                        throws gran.exception.GranException
Description copied from interface: MessageAdapter
Get list of messages, that pass filter conditions

Specified by:
getMessageListImpl in interface MessageAdapter
Throws:
gran.exception.GranException


Copyright © 2002-2003 TrackStudio, Ltd. All Rights Reserved.