com.trackstudio.secured
Class SecuredTaskBean

java.lang.Object
  extended by com.trackstudio.secured.Secured
      extended by com.trackstudio.secured.AbstractBeanWithUdf
          extended by com.trackstudio.secured.SecuredTaskBean
All Implemented Interfaces:
SecuredTaskBeanInterface, java.lang.Comparable
Direct Known Subclasses:
SecuredTaskBean4Filter, SecuredTaskTriggerBean

public class SecuredTaskBean
extends AbstractBeanWithUdf
implements SecuredTaskBeanInterface

Bean which represents task


Field Summary
protected  boolean allowedByAcl
           
protected  java.lang.Double budget
           
protected  java.util.Calendar closedate
           
protected  java.util.Calendar deadline
           
protected  java.util.ArrayList filteredUdfValues
           
protected  boolean onSight
           
protected  java.util.Calendar submitdate
           
protected  java.util.Calendar updatedate
           
 
Fields inherited from class com.trackstudio.secured.Secured
sc
 
Constructor Summary
  SecuredTaskBean()
           
  SecuredTaskBean(java.lang.String taskid, SessionContext sec)
           
  SecuredTaskBean(TaskCacheItem task, SessionContext sec)
           
protected SecuredTaskBean(TaskCacheItem task, SessionContext sec, boolean hasAccess)
           
 
Method Summary
 boolean canUpdate()
           
 boolean canView()
           
 boolean canViewChildren()
           
 int compareTo(java.lang.Object o)
           
 java.lang.Double getActualBudget()
           
 java.lang.Integer getAllowedChildrenCount()
           
 java.util.Map getAllowedChildrenMap()
           
 java.util.Map getAllowedChildrenWithSubtasksMap()
           
 java.util.ArrayList getAttachments()
           
 java.lang.Double getBudget()
           
 boolean getCanUpdate()
           
 boolean getCanView()
           
protected  java.lang.Boolean getCanViewChildren()
           
 SecuredCategoryBean getCategory()
           
 java.lang.String getCategoryId()
           
 java.util.ArrayList getChildren()
           
 java.lang.Integer getChildrenCount()
           
 java.util.Calendar getClosedate()
           
 java.util.ArrayList getCurrentTaskUDFs()
          Deprecated. А зачем он нужен?
 java.util.Calendar getDeadline()
           
 java.lang.String getDescription()
           
 java.lang.String getEncodeDescription()
          Deprecated.  
 java.lang.String getEncodeName()
          Deprecated. Use getName() and local html encoders, please
 java.lang.String getEncodeShortname()
          Deprecated.  
 java.lang.String getEncodeShortnameInput()
          Deprecated.  
protected  java.util.ArrayList getFilteredUdfValues()
           
 java.util.ArrayList getFilteredUDFValues()
           
 java.util.ArrayList getFilterUDFs()
           
 java.util.ArrayList getFilterUDFValues()
           
 SecuredUserBean getHandler()
           
 SecuredPrstatusBean getHandlerGroup()
           
 java.lang.String getHandlerGroupId()
           
 java.lang.String getHandlerId()
           
 java.util.List getHandlerPrstatuses()
           
 java.util.Collection getHandlerPrstatusesId()
           
 SecuredUserBean getHandlerUser()
           
 java.lang.String getHandlerUserId()
           
 java.lang.String getId()
           
 java.lang.Integer getMessageCount()
           
 java.util.ArrayList getMessages()
           
 java.lang.String getName()
           
 java.lang.String getNumber()
           
 SecuredTaskBean getParent()
           
 java.lang.String getParentId()
           
 SecuredPriorityBean getPriority()
           
 java.lang.String getPriorityId()
           
 java.lang.String getProjectAlias()
           
 SecuredResolutionBean getResolution()
           
 java.lang.String getResolutionId()
           
 java.lang.String getShortname()
           
 TaskBean getSOAP()
           
 SecuredStatusBean getStatus()
           
 java.lang.String getStatusId()
           
 java.util.Calendar getSubmitdate()
           
 SecuredUserBean getSubmitter()
           
 java.lang.String getSubmitterId()
           
 java.util.List getSubmitterPrstatuses()
           
 java.util.Collection getSubmitterPrstatusesId()
           
protected  TaskCacheItem getTask()
           
 java.lang.String getTaskNameCutted()
           
 java.lang.String getTaskNumber()
           
 java.lang.String getTextDescription()
           
 java.lang.Integer getTotalChildrenCount()
           
 java.util.ArrayList getUDFs()
           
 java.util.ArrayList getUDFs(java.lang.String workflowId)
           
 java.util.HashMap getUDFValues()
           
 java.util.ArrayList<SecuredUDFValueBean> getUDFValuesForNewTask(java.lang.String workflowId)
           
 java.util.ArrayList getUDFValuesList()
           
 java.util.Calendar getUpdatedate()
           
 java.lang.String getWikiParsedDescription()
          Deprecated. Use TaskViewHTML.getDescription, please
 SecuredWorkflowBean getWorkflow()
           
 java.lang.String getWorkflowId()
           
protected  java.util.ArrayList getWorkflowUdfValues()
           
 java.util.ArrayList getWorkflowUDFValues()
           
 boolean hasAttachments()
           
 int hashCode()
           
protected  boolean isAllowedByAcl()
           
 boolean isAllowedByACL()
           
 boolean isOnSight()
           
 
Methods inherited from class com.trackstudio.secured.Secured
compare, equals, getSecure
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

allowedByAcl

protected boolean allowedByAcl

onSight

protected boolean onSight

submitdate

protected java.util.Calendar submitdate

updatedate

protected java.util.Calendar updatedate

closedate

protected java.util.Calendar closedate

budget

protected java.lang.Double budget

deadline

protected java.util.Calendar deadline

filteredUdfValues

protected java.util.ArrayList filteredUdfValues
Constructor Detail

SecuredTaskBean

public SecuredTaskBean()

SecuredTaskBean

public SecuredTaskBean(TaskCacheItem task,
                       SessionContext sec)
                throws GranException
Throws:
GranException

SecuredTaskBean

protected SecuredTaskBean(TaskCacheItem task,
                          SessionContext sec,
                          boolean hasAccess)

SecuredTaskBean

public SecuredTaskBean(java.lang.String taskid,
                       SessionContext sec)
                throws GranException
Throws:
GranException
Method Detail

getCategory

public SecuredCategoryBean getCategory()
                                throws GranException
Specified by:
getCategory in interface SecuredTaskBeanInterface
Throws:
GranException

getStatus

public SecuredStatusBean getStatus()
                            throws GranException
Specified by:
getStatus in interface SecuredTaskBeanInterface
Throws:
GranException

getResolution

public SecuredResolutionBean getResolution()
                                    throws GranException
Specified by:
getResolution in interface SecuredTaskBeanInterface
Throws:
GranException

getPriority

public SecuredPriorityBean getPriority()
                                throws GranException
Specified by:
getPriority in interface SecuredTaskBeanInterface
Throws:
GranException

getSubmitter

public SecuredUserBean getSubmitter()
                             throws GranException
Specified by:
getSubmitter in interface SecuredTaskBeanInterface
Throws:
GranException

getHandlerUser

public SecuredUserBean getHandlerUser()
                               throws GranException
Specified by:
getHandlerUser in interface SecuredTaskBeanInterface
Throws:
GranException

getHandlerGroup

public SecuredPrstatusBean getHandlerGroup()
                                    throws GranException
Specified by:
getHandlerGroup in interface SecuredTaskBeanInterface
Throws:
GranException

getParent

public SecuredTaskBean getParent()
                          throws GranException
Specified by:
getParent in interface SecuredTaskBeanInterface
Throws:
GranException

getWorkflow

public SecuredWorkflowBean getWorkflow()
                                throws GranException
Specified by:
getWorkflow in interface SecuredTaskBeanInterface
Throws:
GranException

getId

public java.lang.String getId()
Specified by:
getId in interface SecuredTaskBeanInterface
Specified by:
getId in class Secured

getName

public java.lang.String getName()
Specified by:
getName in interface SecuredTaskBeanInterface

getWikiParsedDescription

public java.lang.String getWikiParsedDescription()
                                          throws GranException
Deprecated. Use TaskViewHTML.getDescription, please

Specified by:
getWikiParsedDescription in interface SecuredTaskBeanInterface
Returns:
Task Description, parsed by Wiki
Throws:
GranException

getEncodeName

public java.lang.String getEncodeName()
Deprecated. Use getName() and local html encoders, please

Specified by:
getEncodeName in interface SecuredTaskBeanInterface
Returns:
Encoded task name

getShortname

public java.lang.String getShortname()
Specified by:
getShortname in interface SecuredTaskBeanInterface

getEncodeShortname

public java.lang.String getEncodeShortname()
Deprecated. 

Specified by:
getEncodeShortname in interface SecuredTaskBeanInterface
Returns:
Encoded shortname

getEncodeShortnameInput

public java.lang.String getEncodeShortnameInput()
Deprecated. 

Specified by:
getEncodeShortnameInput in interface SecuredTaskBeanInterface
Returns:
Encoded short name

getEncodeDescription

public java.lang.String getEncodeDescription()
                                      throws GranException
Deprecated. 

Specified by:
getEncodeDescription in interface SecuredTaskBeanInterface
Returns:
Encoded description
Throws:
GranException

getSubmitdate

public java.util.Calendar getSubmitdate()
                                 throws GranException
Specified by:
getSubmitdate in interface SecuredTaskBeanInterface
Throws:
GranException

getUpdatedate

public java.util.Calendar getUpdatedate()
                                 throws GranException
Specified by:
getUpdatedate in interface SecuredTaskBeanInterface
Throws:
GranException

getClosedate

public java.util.Calendar getClosedate()
                                throws GranException
Specified by:
getClosedate in interface SecuredTaskBeanInterface
Throws:
GranException

getDescription

public java.lang.String getDescription()
                                throws GranException
Specified by:
getDescription in interface SecuredTaskBeanInterface
Throws:
GranException

getTextDescription

public java.lang.String getTextDescription()
                                    throws GranException
Specified by:
getTextDescription in interface SecuredTaskBeanInterface
Throws:
GranException

getBudget

public java.lang.Double getBudget()
                           throws GranException
Specified by:
getBudget in interface SecuredTaskBeanInterface
Throws:
GranException

getActualBudget

public java.lang.Double getActualBudget()
                                 throws GranException
Specified by:
getActualBudget in interface SecuredTaskBeanInterface
Throws:
GranException

getDeadline

public java.util.Calendar getDeadline()
                               throws GranException
Specified by:
getDeadline in interface SecuredTaskBeanInterface
Throws:
GranException

getNumber

public java.lang.String getNumber()
Specified by:
getNumber in interface SecuredTaskBeanInterface

compareTo

public int compareTo(java.lang.Object o)
Specified by:
compareTo in interface SecuredTaskBeanInterface
Specified by:
compareTo in interface java.lang.Comparable
Specified by:
compareTo in class Secured

getMessageCount

public java.lang.Integer getMessageCount()
                                  throws GranException
Specified by:
getMessageCount in interface SecuredTaskBeanInterface
Throws:
GranException

getChildrenCount

public java.lang.Integer getChildrenCount()
                                   throws GranException
Specified by:
getChildrenCount in interface SecuredTaskBeanInterface
Throws:
GranException

canViewChildren

public boolean canViewChildren()
                        throws GranException
Throws:
GranException

getChildren

public java.util.ArrayList getChildren()
                                throws GranException
Specified by:
getChildren in interface SecuredTaskBeanInterface
Throws:
GranException

getMessages

public java.util.ArrayList getMessages()
                                throws GranException
Specified by:
getMessages in interface SecuredTaskBeanInterface
Throws:
GranException

getTotalChildrenCount

public java.lang.Integer getTotalChildrenCount()
                                        throws GranException
Specified by:
getTotalChildrenCount in interface SecuredTaskBeanInterface
Throws:
GranException

getAllowedChildrenCount

public java.lang.Integer getAllowedChildrenCount()
                                          throws GranException
Specified by:
getAllowedChildrenCount in interface SecuredTaskBeanInterface
Throws:
GranException

getTaskNumber

public java.lang.String getTaskNumber()
Specified by:
getTaskNumber in interface SecuredTaskBeanInterface

getUDFValuesForNewTask

public java.util.ArrayList<SecuredUDFValueBean> getUDFValuesForNewTask(java.lang.String workflowId)
                                                                throws GranException
Specified by:
getUDFValuesForNewTask in interface SecuredTaskBeanInterface
Throws:
GranException

getUDFValues

public java.util.HashMap getUDFValues()
                               throws GranException
Specified by:
getUDFValues in interface SecuredTaskBeanInterface
Specified by:
getUDFValues in class AbstractBeanWithUdf
Throws:
GranException

getUDFValuesList

public java.util.ArrayList getUDFValuesList()
                                     throws GranException
Specified by:
getUDFValuesList in interface SecuredTaskBeanInterface
Specified by:
getUDFValuesList in class AbstractBeanWithUdf
Throws:
GranException

getFilterUDFs

public java.util.ArrayList getFilterUDFs()
                                  throws GranException
Throws:
GranException

getFilteredUDFValues

public java.util.ArrayList getFilteredUDFValues()
                                         throws GranException
Specified by:
getFilteredUDFValues in interface SecuredTaskBeanInterface
Specified by:
getFilteredUDFValues in class AbstractBeanWithUdf
Throws:
GranException

getWorkflowUDFValues

public java.util.ArrayList getWorkflowUDFValues()
                                         throws GranException
Specified by:
getWorkflowUDFValues in interface SecuredTaskBeanInterface
Throws:
GranException

getCurrentTaskUDFs

public java.util.ArrayList getCurrentTaskUDFs()
                                       throws GranException
Deprecated. А зачем он нужен?

Specified by:
getCurrentTaskUDFs in interface SecuredTaskBeanInterface
Returns:
Throws:
GranException

getUDFs

public java.util.ArrayList getUDFs()
                            throws GranException
Specified by:
getUDFs in interface SecuredTaskBeanInterface
Throws:
GranException

getUDFs

public java.util.ArrayList getUDFs(java.lang.String workflowId)
                            throws GranException
Specified by:
getUDFs in interface SecuredTaskBeanInterface
Throws:
GranException

getFilterUDFValues

public java.util.ArrayList getFilterUDFValues()
                                       throws GranException
Specified by:
getFilterUDFValues in interface SecuredTaskBeanInterface
Throws:
GranException

getTaskNameCutted

public java.lang.String getTaskNameCutted()
Specified by:
getTaskNameCutted in interface SecuredTaskBeanInterface

getProjectAlias

public java.lang.String getProjectAlias()
                                 throws GranException
Specified by:
getProjectAlias in interface SecuredTaskBeanInterface
Throws:
GranException

getAttachments

public java.util.ArrayList getAttachments()
                                   throws GranException
Specified by:
getAttachments in interface SecuredTaskBeanInterface
Throws:
GranException

hasAttachments

public boolean hasAttachments()
                       throws GranException
Specified by:
hasAttachments in interface SecuredTaskBeanInterface
Throws:
GranException

getHandlerPrstatuses

public java.util.List getHandlerPrstatuses()
                                    throws GranException
Specified by:
getHandlerPrstatuses in interface SecuredTaskBeanInterface
Throws:
GranException

getSubmitterPrstatuses

public java.util.List getSubmitterPrstatuses()
                                      throws GranException
Specified by:
getSubmitterPrstatuses in interface SecuredTaskBeanInterface
Throws:
GranException

hashCode

public int hashCode()
Overrides:
hashCode in class Secured

canUpdate

public boolean canUpdate()
                  throws GranException
Specified by:
canUpdate in interface SecuredTaskBeanInterface
Specified by:
canUpdate in class Secured
Throws:
GranException

getCanUpdate

public boolean getCanUpdate()
                     throws GranException
Specified by:
getCanUpdate in interface SecuredTaskBeanInterface
Overrides:
getCanUpdate in class Secured
Throws:
GranException

canView

public boolean canView()
                throws GranException
Specified by:
canView in interface SecuredTaskBeanInterface
Specified by:
canView in class Secured
Throws:
GranException

getCanView

public boolean getCanView()
                   throws GranException
Specified by:
getCanView in interface SecuredTaskBeanInterface
Throws:
GranException

getSOAP

public TaskBean getSOAP()
                 throws GranException
Throws:
GranException

getCategoryId

public java.lang.String getCategoryId()
Specified by:
getCategoryId in interface SecuredTaskBeanInterface

getStatusId

public java.lang.String getStatusId()
Specified by:
getStatusId in interface SecuredTaskBeanInterface

getResolutionId

public java.lang.String getResolutionId()
                                 throws GranException
Specified by:
getResolutionId in interface SecuredTaskBeanInterface
Throws:
GranException

getPriorityId

public java.lang.String getPriorityId()
                               throws GranException
Specified by:
getPriorityId in interface SecuredTaskBeanInterface
Throws:
GranException

getSubmitterId

public java.lang.String getSubmitterId()
Specified by:
getSubmitterId in interface SecuredTaskBeanInterface

getHandlerUserId

public java.lang.String getHandlerUserId()
Specified by:
getHandlerUserId in interface SecuredTaskBeanInterface

getHandlerGroupId

public java.lang.String getHandlerGroupId()
Specified by:
getHandlerGroupId in interface SecuredTaskBeanInterface

getHandlerPrstatusesId

public java.util.Collection getHandlerPrstatusesId()
                                            throws GranException
Specified by:
getHandlerPrstatusesId in interface SecuredTaskBeanInterface
Throws:
GranException

getSubmitterPrstatusesId

public java.util.Collection getSubmitterPrstatusesId()
                                              throws GranException
Specified by:
getSubmitterPrstatusesId in interface SecuredTaskBeanInterface
Throws:
GranException

getParentId

public java.lang.String getParentId()
Specified by:
getParentId in interface SecuredTaskBeanInterface

getWorkflowId

public java.lang.String getWorkflowId()
Specified by:
getWorkflowId in interface SecuredTaskBeanInterface

isAllowedByACL

public boolean isAllowedByACL()
Specified by:
isAllowedByACL in interface SecuredTaskBeanInterface

isOnSight

public boolean isOnSight()
Specified by:
isOnSight in interface SecuredTaskBeanInterface

getAllowedChildrenMap

public java.util.Map getAllowedChildrenMap()
                                    throws GranException
Specified by:
getAllowedChildrenMap in interface SecuredTaskBeanInterface
Throws:
GranException

getAllowedChildrenWithSubtasksMap

public java.util.Map getAllowedChildrenWithSubtasksMap()
                                                throws GranException
Specified by:
getAllowedChildrenWithSubtasksMap in interface SecuredTaskBeanInterface
Throws:
GranException

getHandler

public SecuredUserBean getHandler()
                           throws GranException
Specified by:
getHandler in interface SecuredTaskBeanInterface
Throws:
GranException

getHandlerId

public java.lang.String getHandlerId()
                              throws GranException
Specified by:
getHandlerId in interface SecuredTaskBeanInterface
Throws:
GranException

getTask

protected TaskCacheItem getTask()

isAllowedByAcl

protected boolean isAllowedByAcl()

getCanViewChildren

protected java.lang.Boolean getCanViewChildren()

getFilteredUdfValues

protected java.util.ArrayList getFilteredUdfValues()

getWorkflowUdfValues

protected java.util.ArrayList getWorkflowUdfValues()


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