com.trackstudio.secured
Class SecuredTaskBean
java.lang.Object
com.trackstudio.secured.Secured
com.trackstudio.secured.AbstractBeanWithUdf
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
| Fields inherited from class com.trackstudio.secured.Secured |
sc |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
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
description
protected java.lang.String description
budget
protected java.lang.Long budget
actualBudget
protected java.lang.Long actualBudget
deadline
protected java.util.Calendar deadline
totalChildrenCount
protected java.lang.Integer totalChildrenCount
allowedChildrenCount
protected java.lang.Integer allowedChildrenCount
filteredUdfValues
protected java.util.ArrayList<SecuredUDFValueBean> filteredUdfValues
SecuredTaskBean
public SecuredTaskBean()
SecuredTaskBean
public SecuredTaskBean(TaskRelatedInfo task,
SessionContext sec)
throws GranException
- Throws:
GranException
SecuredTaskBean
protected SecuredTaskBean(TaskRelatedInfo task,
SessionContext sec,
boolean hasAccess)
SecuredTaskBean
public SecuredTaskBean(java.lang.String taskId,
SessionContext sec)
throws GranException
- Throws:
GranException
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
getShortname
public java.lang.String getShortname()
- Specified by:
getShortname in interface SecuredTaskBeanInterface
getEncodeShortname
public java.lang.String getEncodeShortname()
- Deprecated.
- Returns:
- Encoded shortname
getEncodeShortnameInput
public java.lang.String getEncodeShortnameInput()
- Deprecated.
- Returns:
- Encoded short name
getEncodeDescription
public java.lang.String getEncodeDescription()
throws GranException
- Deprecated.
- Returns:
- Encoded description
- Throws:
GranException - при небходимости
getSubmitdate
public java.util.Calendar getSubmitdate()
throws GranException
- Specified by:
getSubmitdate in interface SecuredTaskBeanInterface
- Throws:
GranException
getSubmitdateAsString
public java.lang.String getSubmitdateAsString()
throws GranException
- Throws:
GranException
getUpdatedate
public java.util.Calendar getUpdatedate()
throws GranException
- Specified by:
getUpdatedate in interface SecuredTaskBeanInterface
- Throws:
GranException
getUpdatedateAsString
public java.lang.String getUpdatedateAsString()
throws GranException
- Throws:
GranException
getClosedate
public java.util.Calendar getClosedate()
throws GranException
- Specified by:
getClosedate in interface SecuredTaskBeanInterface
- Throws:
GranException
getClosedateAsString
public java.lang.String getClosedateAsString()
throws GranException
- 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.Long getBudget()
throws GranException
- Specified by:
getBudget in interface SecuredTaskBeanInterface
- Throws:
GranException
getActualBudget
public java.lang.Long 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
getDeadlineAsString
public java.lang.String getDeadlineAsString()
throws GranException
- 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<SecuredTaskBean> getChildren()
throws GranException
- Specified by:
getChildren in interface SecuredTaskBeanInterface
- Throws:
GranException
getMessages
public java.util.ArrayList<SecuredMessageBean> getMessages()
throws GranException
- Specified by:
getMessages in interface SecuredTaskBeanInterface
- Throws:
GranException
getMessagesIds
public java.util.ArrayList<java.lang.String> getMessagesIds()
throws GranException
- 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<java.lang.String,SecuredUDFValueBean> getUdfValues()
throws GranException
- Throws:
GranException
getUDFValues
public java.util.HashMap<java.lang.String,SecuredUDFValueBean> getUDFValues()
throws GranException
- Specified by:
getUDFValues in interface SecuredTaskBeanInterface- Specified by:
getUDFValues in class AbstractBeanWithUdf
- Throws:
GranException
getUDFValuesList
public java.util.ArrayList<SecuredUDFValueBean> getUDFValuesList()
throws GranException
- Specified by:
getUDFValuesList in interface SecuredTaskBeanInterface- Specified by:
getUDFValuesList in class AbstractBeanWithUdf
- Throws:
GranException
getUdfValuesList
public java.util.ArrayList<SecuredUDFValueBean> getUdfValuesList()
throws GranException
- Throws:
GranException
getFilterUDFs
public java.util.ArrayList<SecuredUDFBean> getFilterUDFs()
throws GranException
- Throws:
GranException
getFilteredUDFValues
public java.util.ArrayList<SecuredUDFValueBean> getFilteredUDFValues()
throws GranException
- Specified by:
getFilteredUDFValues in interface SecuredTaskBeanInterface- Specified by:
getFilteredUDFValues in class AbstractBeanWithUdf
- Throws:
GranException
getWorkflowUDFValues
public java.util.ArrayList<SecuredUDFValueBean> getWorkflowUDFValues()
throws GranException
- Specified by:
getWorkflowUDFValues in interface SecuredTaskBeanInterface
- Throws:
GranException
getUDFs
public java.util.ArrayList<SecuredUDFBean> getUDFs()
throws GranException
- Specified by:
getUDFs in interface SecuredTaskBeanInterface
- Throws:
GranException
getUDFs
public java.util.ArrayList<SecuredUDFBean> getUDFs(java.lang.String workflowId)
throws GranException
- Specified by:
getUDFs in interface SecuredTaskBeanInterface
- Throws:
GranException
canDelete
public boolean canDelete()
throws GranException
- Throws:
GranException
getCanDelete
public boolean getCanDelete()
throws GranException
- Throws:
GranException
getFilterUDFValues
public java.util.ArrayList<SecuredUDFValueBean> 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<SecuredAttachmentBean> 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<java.lang.String> getHandlerPrstatuses()
throws GranException
- Specified by:
getHandlerPrstatuses in interface SecuredTaskBeanInterface
- Throws:
GranException
getSubmitterPrstatuses
public java.util.List<java.lang.String> getSubmitterPrstatuses()
throws GranException
- Specified by:
getSubmitterPrstatuses in interface SecuredTaskBeanInterface
- Throws:
GranException
hashCode
public int hashCode()
- Overrides:
hashCode in class Secured
canView
public boolean canView()
throws GranException
- Specified by:
canView in class Secured
- Throws:
GranException
canManage
public boolean canManage()
throws GranException
- Description copied from class:
Secured
- Проверяет доступ к бину. Новый улучшеный метод. Нужно проверять доступ как по ACL, так и по Roles
- Specified by:
canManage in class Secured
- Returns:
- TRUE - доступ есть, FALSE - нет
- 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<java.lang.String> getHandlerPrstatusesId()
throws GranException
- Specified by:
getHandlerPrstatusesId in interface SecuredTaskBeanInterface
- Throws:
GranException
getSubmitterPrstatusesId
public java.util.Collection<java.lang.String> 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
isOnSight
public boolean isOnSight()
- Specified by:
isOnSight in interface SecuredTaskBeanInterface
getAllowedChildrenMap
public java.util.Map<java.lang.String,java.lang.Boolean> getAllowedChildrenMap()
throws GranException
- Specified by:
getAllowedChildrenMap in interface SecuredTaskBeanInterface
- Throws:
GranException
getAllowedChildrenWithSubtasksMap
public java.util.Map<java.lang.String,java.lang.Boolean> 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 TaskRelatedInfo getTask()
isAllowedByACL
public boolean isAllowedByACL()
- Specified by:
isAllowedByACL in class Secured
getCanViewChildren
protected java.lang.Boolean getCanViewChildren()
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
getFilteredUdfValues
protected java.util.ArrayList getFilteredUdfValues()
getWorkflowUdfValues
protected java.util.ArrayList<SecuredUDFValueBean> getWorkflowUdfValues()
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals in class Secured
getBudgetFormat
public java.lang.String getBudgetFormat()
throws GranException
- Throws:
GranException
getAncestors
public java.util.ArrayList<SecuredTaskBean> getAncestors()
throws GranException
- Throws:
GranException
isOverdue
public boolean isOverdue()
throws GranException
- Throws:
GranException
getBudgetAsString
public java.lang.String getBudgetAsString()
throws GranException
- Throws:
GranException
getActualBudgetAsString
public java.lang.String getActualBudgetAsString()
throws GranException
- Throws:
GranException
getProjectChildrenNotFinal
public java.util.List<SecuredTaskBean> getProjectChildrenNotFinal(SessionContext sc,
java.lang.String taskId)
Copyright © 2002-2009 TrackStudio, Ltd. All Rights Reserved.