za.org.coefficient.modules.task
Class Task

java.lang.Object
  extended by za.org.coefficient.modules.BaseModule
      extended by za.org.coefficient.modules.BaseProjectModule
          extended by za.org.coefficient.modules.task.Task
All Implemented Interfaces:
CoefficientEventPublisher, ModuleLocal

Deprecated. This module has been deprecated, the IssueTracker module now takes its place.

public class Task
extends BaseProjectModule


Field Summary
static java.lang.String ADD
          Deprecated.  
static java.lang.String ADDMSG
          Deprecated.  
static java.lang.String ADMINPAGE
          Deprecated.  
static java.lang.String BUTTON
          Deprecated.  
static java.lang.String CHAMPION
          Deprecated.  
(package private)  java.lang.String[] commandRoles
          Deprecated.  
static java.lang.String COMPLETE
          Deprecated.  
static java.lang.String COMPLETED
          Deprecated.  
static java.lang.String COMPLETEDMSG
          Deprecated.  
static java.lang.String DATEUTIL
          Deprecated.  
 long defSpread
          Deprecated.  
static java.lang.String DELETE
          Deprecated.  
static java.lang.String DESCRIPTION
          Deprecated.  
static java.lang.String EDIT
          Deprecated.  
static java.lang.String EMAIL
          Deprecated.  
static java.lang.String ENDDATE
          Deprecated.  
static java.lang.String ENDDAY
          Deprecated.  
static java.lang.String ENDMONTH
          Deprecated.  
static java.lang.String ENDYEAR
          Deprecated.  
static java.lang.String ENTERFIELDS
          Deprecated.  
static java.lang.String ERROR
          Deprecated.  
static java.lang.String ERRORPAGE
          Deprecated.  
static java.lang.String FINISHED
          Deprecated.  
static java.lang.String HOURS
          Deprecated.  
static java.lang.String ID
          Deprecated.  
(package private)  java.lang.String[] memberRoles
          Deprecated.  
static java.lang.String MEMBERS
          Deprecated.  
static java.lang.String MODULE
          Deprecated.  
static java.lang.String NAME
          Deprecated.  
static java.lang.String NOPROJECT
          Deprecated.  
static java.lang.String OP
          Deprecated.  
static java.lang.String PAGER
          Deprecated.  
static java.lang.String PERSON
          Deprecated.  
static java.lang.String PROJECT
          Deprecated.  
static java.lang.String STARTDATE
          Deprecated.  
static java.lang.String STARTDAY
          Deprecated.  
static java.lang.String STARTMONTH
          Deprecated.  
static java.lang.String STARTYEAR
          Deprecated.  
static java.lang.String STATUS
          Deprecated.  
static java.lang.String SUMMARY
          Deprecated.  
static java.lang.String SUMMARY_PAGE
          Deprecated.  
static java.lang.String TASK
          Deprecated.  
static java.lang.String TASKPAGER
          Deprecated.  
static java.lang.String TASKS
          Deprecated.  
static java.lang.String UPDATE
          Deprecated.  
static java.lang.String USER
          Deprecated.  
 
Constructor Summary
Task()
          Deprecated.  
 
Method Summary
private  java.lang.String baseCommand(CoefficientContext ctx)
          Deprecated. returns null if ok otherwise it returns an error message
 java.lang.String canExecuteForRole(CoefficientContext ctx, java.lang.String methodName, Role usersHighestRole)
          Deprecated. This is a base implementation that will allow all methods to be invoked without regard to roles
 CoefficientContext command(CoefficientContext ctx)
          Deprecated. executed by the project champion.
 CoefficientContext deleteAllForProject(CoefficientContext ctx)
          Deprecated. delete all tasks for this project
 CoefficientContext doInitialWork(CoefficientContext ctx)
          Deprecated.  
private  java.lang.String getEmailAddress(java.util.List members, java.lang.String person)
          Deprecated.  
private  java.util.List getExistingTasks(Project project)
          Deprecated.  
 java.lang.String getFinishDay()
          Deprecated.  
 java.lang.String getFinishMonth()
          Deprecated.  
 java.lang.String getFinishYear()
          Deprecated.  
 java.lang.Long getIdForTaskName(CoefficientContext ctx)
          Deprecated. Workflow evalutation method.
 java.lang.String getMainMethod()
          Deprecated. This method is used to determine which method should be invoked when the module is requested without an operation.
 java.lang.String getModuleDescription()
          Deprecated. This method is used to find the description of the module
 java.lang.String getModuleDisplayName()
          Deprecated. This method is used to find the display name of the module
private  java.lang.String getOp(CoefficientContext ctx)
          Deprecated.  
 java.lang.String getSummaryForProject(CoefficientContext ctx)
          Deprecated.  
private  HibernatePager initPager(CoefficientContext ctx)
          Deprecated.  
private  HibernatePager initPagerSamePage(CoefficientContext ctx)
          Deprecated.  
 boolean isNameUnique(Project project, java.lang.String name)
          Deprecated.  
 boolean isTaskCompleted(CoefficientContext ctx)
          Deprecated. Workflow evalutation method.
 CoefficientContext list(CoefficientContext ctx)
          Deprecated. executed by non project members.
 CoefficientContext member(CoefficientContext ctx)
          Deprecated. limited usage for project members.
private  java.lang.Long nextSequence(java.util.List tasks)
          Deprecated.  
private  void sendmail(CoefficientContext ctx, TaskData task, java.util.List members, java.lang.String to, java.lang.String option)
          Deprecated. send various email messages
 CoefficientContext showSummaryForProject(CoefficientContext ctx)
          Deprecated.  
 
Methods inherited from class za.org.coefficient.modules.BaseModule
createRSSItem, displayUsersData, getCoefficientContext, getModuleName, isProjectRequired, publishEvent, setCoefficientContext, showHelp
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TASKPAGER

public static final java.lang.String TASKPAGER
Deprecated. 
See Also:
Constant Field Values

PAGER

public static final java.lang.String PAGER
Deprecated. 
See Also:
Constant Field Values

ADD

public static final java.lang.String ADD
Deprecated. 
See Also:
Constant Field Values

UPDATE

public static final java.lang.String UPDATE
Deprecated. 
See Also:
Constant Field Values

DELETE

public static final java.lang.String DELETE
Deprecated. 
See Also:
Constant Field Values

EDIT

public static final java.lang.String EDIT
Deprecated. 
See Also:
Constant Field Values

COMPLETE

public static final java.lang.String COMPLETE
Deprecated. 
See Also:
Constant Field Values

ERROR

public static final java.lang.String ERROR
Deprecated. 
See Also:
Constant Field Values

PROJECT

public static final java.lang.String PROJECT
Deprecated. 
See Also:
Constant Field Values

MODULE

public static final java.lang.String MODULE
Deprecated. 
See Also:
Constant Field Values

TASKS

public static final java.lang.String TASKS
Deprecated. 
See Also:
Constant Field Values

TASK

public static final java.lang.String TASK
Deprecated. 
See Also:
Constant Field Values

OP

public static final java.lang.String OP
Deprecated. 
See Also:
Constant Field Values

MEMBERS

public static final java.lang.String MEMBERS
Deprecated. 
See Also:
Constant Field Values

CHAMPION

public static final java.lang.String CHAMPION
Deprecated. 
See Also:
Constant Field Values

EMAIL

public static final java.lang.String EMAIL
Deprecated. 
See Also:
Constant Field Values

USER

public static final java.lang.String USER
Deprecated. 
See Also:
Constant Field Values

COMPLETED

public static final java.lang.String COMPLETED
Deprecated. 
See Also:
Constant Field Values

DATEUTIL

public static final java.lang.String DATEUTIL
Deprecated. 
See Also:
Constant Field Values

BUTTON

public static final java.lang.String BUTTON
Deprecated. 
See Also:
Constant Field Values

NAME

public static final java.lang.String NAME
Deprecated. 
See Also:
Constant Field Values

PERSON

public static final java.lang.String PERSON
Deprecated. 
See Also:
Constant Field Values

DESCRIPTION

public static final java.lang.String DESCRIPTION
Deprecated. 
See Also:
Constant Field Values

HOURS

public static final java.lang.String HOURS
Deprecated. 
See Also:
Constant Field Values

STATUS

public static final java.lang.String STATUS
Deprecated. 
See Also:
Constant Field Values

ID

public static final java.lang.String ID
Deprecated. 
See Also:
Constant Field Values

STARTDATE

public static final java.lang.String STARTDATE
Deprecated. 
See Also:
Constant Field Values

STARTYEAR

public static final java.lang.String STARTYEAR
Deprecated. 
See Also:
Constant Field Values

STARTMONTH

public static final java.lang.String STARTMONTH
Deprecated. 
See Also:
Constant Field Values

STARTDAY

public static final java.lang.String STARTDAY
Deprecated. 
See Also:
Constant Field Values

ENDYEAR

public static final java.lang.String ENDYEAR
Deprecated. 
See Also:
Constant Field Values

ENDMONTH

public static final java.lang.String ENDMONTH
Deprecated. 
See Also:
Constant Field Values

ENDDAY

public static final java.lang.String ENDDAY
Deprecated. 
See Also:
Constant Field Values

ENDDATE

public static final java.lang.String ENDDATE
Deprecated. 
See Also:
Constant Field Values

ERRORPAGE

public static final java.lang.String ERRORPAGE
Deprecated. 
See Also:
Constant Field Values

ADMINPAGE

public static final java.lang.String ADMINPAGE
Deprecated. 
See Also:
Constant Field Values

SUMMARY_PAGE

public static final java.lang.String SUMMARY_PAGE
Deprecated. 
See Also:
Constant Field Values

SUMMARY

public static final java.lang.String SUMMARY
Deprecated. 
See Also:
Constant Field Values

ADDMSG

public static final java.lang.String ADDMSG
Deprecated. 
See Also:
Constant Field Values

COMPLETEDMSG

public static final java.lang.String COMPLETEDMSG
Deprecated. 
See Also:
Constant Field Values

FINISHED

public static final java.lang.String FINISHED
Deprecated. 
See Also:
Constant Field Values

NOPROJECT

public static final java.lang.String NOPROJECT
Deprecated. 
See Also:
Constant Field Values

ENTERFIELDS

public static final java.lang.String ENTERFIELDS
Deprecated. 
See Also:
Constant Field Values

commandRoles

java.lang.String[] commandRoles
Deprecated. 

memberRoles

java.lang.String[] memberRoles
Deprecated. 

defSpread

public final long defSpread
Deprecated. 
See Also:
Constant Field Values
Constructor Detail

Task

public Task()
Deprecated. 
Method Detail

getModuleDisplayName

public java.lang.String getModuleDisplayName()
Deprecated. 
Description copied from interface: ModuleLocal
This method is used to find the display name of the module

Specified by:
getModuleDisplayName in interface ModuleLocal
Specified by:
getModuleDisplayName in class BaseModule
Returns:
the display name of the module

getModuleDescription

public java.lang.String getModuleDescription()
Deprecated. 
Description copied from interface: ModuleLocal
This method is used to find the description of the module

Specified by:
getModuleDescription in interface ModuleLocal
Specified by:
getModuleDescription in class BaseModule
Returns:
the description of the module

getMainMethod

public java.lang.String getMainMethod()
Deprecated. 
Description copied from interface: ModuleLocal
This method is used to determine which method should be invoked when the module is requested without an operation.

Specified by:
getMainMethod in interface ModuleLocal
Specified by:
getMainMethod in class BaseModule
Returns:
name of the method that should be invoked

canExecuteForRole

public java.lang.String canExecuteForRole(CoefficientContext ctx,
                                          java.lang.String methodName,
                                          Role usersHighestRole)
Deprecated. 
Description copied from class: BaseModule
This is a base implementation that will allow all methods to be invoked without regard to roles

Specified by:
canExecuteForRole in interface ModuleLocal
Overrides:
canExecuteForRole in class BaseModule
Returns:
null if we can execute the method an error message if not

getIdForTaskName

public java.lang.Long getIdForTaskName(CoefficientContext ctx)
                                throws java.lang.Exception
Deprecated. 
Workflow evalutation method.

Throws:
java.lang.Exception

isNameUnique

public boolean isNameUnique(Project project,
                            java.lang.String name)
Deprecated. 

isTaskCompleted

public boolean isTaskCompleted(CoefficientContext ctx)
                        throws net.sf.hibernate.HibernateException
Deprecated. 
Workflow evalutation method.

Throws:
net.sf.hibernate.HibernateException

deleteAllForProject

public CoefficientContext deleteAllForProject(CoefficientContext ctx)
Deprecated. 
delete all tasks for this project

Specified by:
deleteAllForProject in class BaseProjectModule

baseCommand

private java.lang.String baseCommand(CoefficientContext ctx)
Deprecated. 
returns null if ok otherwise it returns an error message


getOp

private java.lang.String getOp(CoefficientContext ctx)
Deprecated. 

doInitialWork

public CoefficientContext doInitialWork(CoefficientContext ctx)
Deprecated. 

getSummaryForProject

public java.lang.String getSummaryForProject(CoefficientContext ctx)
                                      throws java.lang.Exception
Deprecated. 
Overrides:
getSummaryForProject in class BaseProjectModule
Throws:
java.lang.Exception

showSummaryForProject

public CoefficientContext showSummaryForProject(CoefficientContext ctx)
                                         throws java.lang.Exception
Deprecated. 
Overrides:
showSummaryForProject in class BaseProjectModule
Throws:
java.lang.Exception

getExistingTasks

private java.util.List getExistingTasks(Project project)
Deprecated. 

nextSequence

private java.lang.Long nextSequence(java.util.List tasks)
Deprecated. 

list

public CoefficientContext list(CoefficientContext ctx)
Deprecated. 
executed by non project members. it merely lists the tasks and does not allow them to edit the information


getEmailAddress

private java.lang.String getEmailAddress(java.util.List members,
                                         java.lang.String person)
Deprecated. 

sendmail

private void sendmail(CoefficientContext ctx,
                      TaskData task,
                      java.util.List members,
                      java.lang.String to,
                      java.lang.String option)
Deprecated. 
send various email messages


command

public CoefficientContext command(CoefficientContext ctx)
Deprecated. 
executed by the project champion. gives full access to the task data


initPager

private HibernatePager initPager(CoefficientContext ctx)
Deprecated. 

initPagerSamePage

private HibernatePager initPagerSamePage(CoefficientContext ctx)
Deprecated. 

member

public CoefficientContext member(CoefficientContext ctx)
Deprecated. 
limited usage for project members. they can only edit and update


getFinishDay

public java.lang.String getFinishDay()
Deprecated. 

getFinishMonth

public java.lang.String getFinishMonth()
Deprecated. 

getFinishYear

public java.lang.String getFinishYear()
Deprecated. 


Copyright CSIR. All Rights Reserved.