gran.cache
Class TaskCacheItem

java.lang.Object
  extended bygran.cache.TaskCacheItem
All Implemented Interfaces:
java.io.Serializable

public class TaskCacheItem
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

Constructor Summary
TaskCacheItem(java.lang.String id)
          Initialize
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.lang.Double getActualBudget()
           
 java.lang.String getActualBudgetFmt(java.lang.String user, java.lang.String type)
           
 java.util.ArrayList getAllowedPrstatuses(java.lang.String userid)
           
 java.util.TreeSet getAllowedUsers()
          Возвращает коллекцию userid, которым есть доступ на эту задачу (иерархический)
 java.util.ArrayList getAttachments()
          Get hash of Attachments
 java.lang.String getBudgetFmt(java.lang.String format)
           
 java.lang.String getBudgetHours()
           
 java.lang.String getBudgetMinutes()
           
 java.util.ArrayList getChildren()
          Get available task children hash
 int getChildrenCount()
           
 java.util.ArrayList getChildrenRecursive()
          Get available task children hash
 java.util.ArrayList getCurrentTaskUDFs()
           
 java.lang.String getDescription()
           
 java.util.HashMap getFilterUDFValues()
           
protected  java.util.ArrayList getHierarchicalUDFs()
           
 java.util.ArrayList getInternalACLCollection()
           
 java.sql.Timestamp getLastUpdateDate()
           
 java.lang.String getLink(java.lang.String prefix, boolean taskView, boolean messageView)
          Get absolute URL of this task
 java.lang.Integer getMessageCount()
           
 java.util.ArrayList getMessages()
          Get collection of messages for this task
 java.lang.String getMessagesLink()
          Get relative URL of specified task (Messages tab)
 gran.cache.TaskRelatedInfo getRelated()
           
static java.util.Comparator getShortNameComparator()
           
 java.lang.String getShortWikiParsedDescription(java.lang.String locale)
           
 java.lang.String getSubtasksLink()
          Get relative URL of specified task (Subtasks tab)
 Task getTask()
           
 java.util.LinkedList getTaskIdChain(java.lang.String fromid)
          Возможно, самый быстрый вариант TaskChain.
 java.util.LinkedList getTaskIdChainDesc(java.lang.String fromid)
           
 java.lang.String getTaskLink()
          Get relative URL of specified task
 java.lang.String getTaskNameCutted()
           
 java.lang.Integer getTotalChildrenCount()
           
 java.util.ArrayList getUDFs()
          Get hash of available (inherited and workflow-based) UDF for task
 java.util.HashMap getUDFValues()
          Get values of UDF
 java.lang.String getUploadLink()
          Get relative URL of specified task (Upload tab)
 java.util.HashMap getVisibleUDFValues()
          Get hash of visible UDF
 java.lang.String getWikiParsedDescription()
           
protected  java.util.ArrayList getWorkflowUDFs()
           
 boolean hasAccess(java.lang.String userid)
          Более быстрый метод узнать, имеет ли доступ юзер на эту задачу
 boolean hasSubtasks()
          return true if task has subtasks
 boolean onSight(java.lang.String userid)
          Возвращает true, если на задачу есть доступ у пользователя, либо если доступ есть на одну из подзадач
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TaskCacheItem

public TaskCacheItem(java.lang.String id)
              throws GranException
Initialize

Method Detail

getTask

public Task getTask()

hasSubtasks

public boolean hasSubtasks()
                    throws GranException
return true if task has subtasks

Throws:
GranException

getMessages

public java.util.ArrayList getMessages()
                                throws GranException
Get collection of messages for this task

Returns:
ArrayList of all messages for this task
Throws:
GranException

getLink

public java.lang.String getLink(java.lang.String prefix,
                                boolean taskView,
                                boolean messageView)
                         throws GranException
Get absolute URL of this task

Parameters:
prefix - - prefix (site URL)
taskView - - task view allowed
messageView - - message view allowed
Returns:
String with hmtl link
Throws:
GranException

getTaskLink

public java.lang.String getTaskLink()
Get relative URL of specified task


getMessagesLink

public java.lang.String getMessagesLink()
Get relative URL of specified task (Messages tab)


getSubtasksLink

public java.lang.String getSubtasksLink()
Get relative URL of specified task (Subtasks tab)


getUploadLink

public java.lang.String getUploadLink()
Get relative URL of specified task (Upload tab)


getUDFs

public java.util.ArrayList getUDFs()
                            throws GranException
Get hash of available (inherited and workflow-based) UDF for task

Throws:
GranException

getWorkflowUDFs

protected java.util.ArrayList getWorkflowUDFs()
                                       throws GranException
Throws:
GranException

getHierarchicalUDFs

protected java.util.ArrayList getHierarchicalUDFs()
                                           throws GranException
Throws:
GranException

getCurrentTaskUDFs

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

getFilterUDFValues

public java.util.HashMap getFilterUDFValues()
                                     throws GranException
Throws:
GranException

getVisibleUDFValues

public java.util.HashMap getVisibleUDFValues()
                                      throws GranException
Get hash of visible UDF

Throws:
GranException

getUDFValues

public java.util.HashMap getUDFValues()
                               throws GranException
Get values of UDF

Throws:
GranException

getChildren

public java.util.ArrayList getChildren()
                                throws GranException
Get available task children hash

Throws:
GranException

getChildrenRecursive

public java.util.ArrayList getChildrenRecursive()
                                         throws GranException
Get available task children hash

Throws:
GranException

getAttachments

public java.util.ArrayList getAttachments()
                                   throws GranException
Get hash of Attachments

Throws:
GranException

getChildrenCount

public int getChildrenCount()
                     throws GranException
Throws:
GranException

getTotalChildrenCount

public java.lang.Integer getTotalChildrenCount()
                                        throws GranException
Throws:
GranException

getLastUpdateDate

public java.sql.Timestamp getLastUpdateDate()
                                     throws GranException
Throws:
GranException

getActualBudget

public java.lang.Double getActualBudget()
                                 throws GranException
Throws:
GranException

getActualBudgetFmt

public java.lang.String getActualBudgetFmt(java.lang.String user,
                                           java.lang.String type)
                                    throws GranException
Throws:
GranException

getTaskNameCutted

public java.lang.String getTaskNameCutted()

getMessageCount

public java.lang.Integer getMessageCount()
                                  throws GranException
Throws:
GranException

getBudgetFmt

public java.lang.String getBudgetFmt(java.lang.String format)
                              throws GranException
Throws:
GranException

getBudgetHours

public java.lang.String getBudgetHours()
                                throws GranException
Throws:
GranException

getRelated

public gran.cache.TaskRelatedInfo getRelated()

getBudgetMinutes

public java.lang.String getBudgetMinutes()
                                  throws GranException
Throws:
GranException

getDescription

public java.lang.String getDescription()
                                throws GranException
Throws:
GranException

getWikiParsedDescription

public java.lang.String getWikiParsedDescription()
                                          throws GranException
Throws:
GranException

getShortWikiParsedDescription

public java.lang.String getShortWikiParsedDescription(java.lang.String locale)
                                               throws GranException
Throws:
GranException

equals

public boolean equals(java.lang.Object o)

getShortNameComparator

public static java.util.Comparator getShortNameComparator()

getTaskIdChain

public java.util.LinkedList getTaskIdChain(java.lang.String fromid)
                                    throws GranException
Возможно, самый быстрый вариант TaskChain. Ищет в памяти, ничего никуда не грузит. Выборка осуществляется поиском по дереву. Если передать null - будут все Ancestors

Parameters:
fromid -
Throws:
GranException

getTaskIdChainDesc

public java.util.LinkedList getTaskIdChainDesc(java.lang.String fromid)
                                        throws GranException
Throws:
GranException

hasAccess

public boolean hasAccess(java.lang.String userid)
                  throws GranException
Более быстрый метод узнать, имеет ли доступ юзер на эту задачу

Parameters:
userid -
Throws:
GranException

getAllowedUsers

public java.util.TreeSet getAllowedUsers()
                                  throws GranException
Возвращает коллекцию userid, которым есть доступ на эту задачу (иерархический)

Throws:
GranException

getInternalACLCollection

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

getAllowedPrstatuses

public java.util.ArrayList getAllowedPrstatuses(java.lang.String userid)
                                         throws GranException
Throws:
GranException

onSight

public boolean onSight(java.lang.String userid)
                throws GranException
Возвращает true, если на задачу есть доступ у пользователя, либо если доступ есть на одну из подзадач

Throws:
GranException


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