gran.cache
Class TaskCacheManager

java.lang.Object
  extended bygran.cache.TaskCacheManager
All Implemented Interfaces:
NotificationReceiver

public class TaskCacheManager
extends java.lang.Object
implements NotificationReceiver


Field Summary
static java.lang.String invalidateAcl
           
static java.lang.String invalidateAttachments
           
static java.lang.String invalidateMessageWhenChangeWorkflow
           
static java.lang.String invalidateTaskUDF
           
static java.lang.String invalidateTaskUDFWhenChange
           
static java.lang.String invalidateTaskUDFWhenRemoveScript
           
static java.lang.String invalidateTaskWhenInsert
           
static java.lang.String invalidateTaskWhenMove
           
static java.lang.String invalidateTaskWhenRemove
           
static java.lang.String invalidateTaskWhenUpdate
           
static java.lang.String invalidateWhenChangeMessages
           
static java.lang.String invalidateWhenChangeWorkflow
           
static java.lang.String invalidateWhenIndex
           
 
Method Summary
 java.lang.String drawBudgetIndicator(java.lang.String sessionId, java.lang.Double budget, java.lang.Double actualBudget)
           
 TaskCacheItem find(java.lang.String id)
          Get TaskCacheItem from cache.
 TaskCacheItem findByNumber(java.lang.String num)
           
static TaskCacheManager getInstance()
           
 java.util.List getUsedUsersIdList(java.lang.String taskId)
          returns a list of user IDs, who has any access to any of this task descendents
 void invalidate()
          Deprecated. Do not use, please
 void invalidateAcl(java.lang.String id)
           
 void invalidateAttachments(java.lang.String taskid)
           
 void invalidateMessageWhenChangeWorkflow()
           
 void invalidateUDF()
          Invalidate UDF-related elements of cache.
 void invalidateUDF(java.lang.String id)
           
 void invalidateUDFWhenChange()
           
 void invalidateUDFWhenChange(java.lang.String id)
           
 void invalidateWhenChangeMessages(java.lang.String id)
           
 void invalidateWhenChangeWorkflow()
           
 void invalidateWhenIndex(java.lang.String id)
           
 void invalidateWhenInsert(java.lang.String id)
           
 void invalidateWhenMove(java.lang.String taskid, java.lang.String from, java.lang.String to)
           
 void invalidateWhenRemove(java.lang.String id)
           
 void invalidateWhenRemoveScript()
          Invalidate UDF-related elements of cache.
 void invalidateWhenUpdate(java.lang.String id)
           
 void receive(CacheNotification nf)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

invalidateTaskWhenMove

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

invalidateAttachments

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

invalidateTaskWhenInsert

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

invalidateTaskUDFWhenRemoveScript

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

invalidateTaskWhenRemove

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

invalidateWhenIndex

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

invalidateWhenChangeWorkflow

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

invalidateMessageWhenChangeWorkflow

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

invalidateTaskWhenUpdate

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

invalidateWhenChangeMessages

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

invalidateAcl

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

invalidateTaskUDF

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

invalidateTaskUDFWhenChange

public static final java.lang.String invalidateTaskUDFWhenChange
See Also:
Constant Field Values
Method Detail

getInstance

public static TaskCacheManager getInstance()
                                    throws GranException
Throws:
GranException

find

public TaskCacheItem find(java.lang.String id)
                   throws GranException
Get TaskCacheItem from cache. If specified task does not exists in cache - load it

Throws:
GranException

findByNumber

public TaskCacheItem findByNumber(java.lang.String num)
                           throws GranException,
                                  TaskNotFoundException
Throws:
GranException
TaskNotFoundException

invalidate

public void invalidate()
                throws GranException
Deprecated. Do not use, please

Invalidate all elements of cache.

Throws:
GranException

invalidateUDF

public void invalidateUDF()
                   throws GranException
Invalidate UDF-related elements of cache.

Throws:
GranException

invalidateWhenRemoveScript

public void invalidateWhenRemoveScript()
                                throws GranException
Invalidate UDF-related elements of cache.

Throws:
GranException

invalidateUDF

public void invalidateUDF(java.lang.String id)
                   throws GranException
Throws:
GranException

invalidateUDFWhenChange

public void invalidateUDFWhenChange()
                             throws GranException
Throws:
GranException

invalidateUDFWhenChange

public void invalidateUDFWhenChange(java.lang.String id)
                             throws GranException
Throws:
GranException

invalidateWhenRemove

public void invalidateWhenRemove(java.lang.String id)
                          throws GranException
Throws:
GranException

invalidateWhenIndex

public void invalidateWhenIndex(java.lang.String id)
                         throws GranException
Throws:
GranException

invalidateWhenChangeWorkflow

public void invalidateWhenChangeWorkflow()
                                  throws GranException
Throws:
GranException

invalidateMessageWhenChangeWorkflow

public void invalidateMessageWhenChangeWorkflow()
                                         throws GranException
Throws:
GranException

drawBudgetIndicator

public java.lang.String drawBudgetIndicator(java.lang.String sessionId,
                                            java.lang.Double budget,
                                            java.lang.Double actualBudget)
                                     throws GranException
Throws:
GranException

invalidateWhenUpdate

public void invalidateWhenUpdate(java.lang.String id)
                          throws GranException
Throws:
GranException

invalidateWhenMove

public void invalidateWhenMove(java.lang.String taskid,
                               java.lang.String from,
                               java.lang.String to)
                        throws GranException
Throws:
GranException

invalidateAttachments

public void invalidateAttachments(java.lang.String taskid)
                           throws GranException
Throws:
GranException

invalidateWhenInsert

public void invalidateWhenInsert(java.lang.String id)
                          throws GranException
Throws:
GranException

receive

public void receive(CacheNotification nf)
             throws GranException
Specified by:
receive in interface NotificationReceiver
Throws:
GranException

invalidateWhenChangeMessages

public void invalidateWhenChangeMessages(java.lang.String id)
                                  throws GranException
Throws:
GranException

invalidateAcl

public void invalidateAcl(java.lang.String id)
                   throws GranException
Throws:
GranException

getUsedUsersIdList

public java.util.List getUsedUsersIdList(java.lang.String taskId)
returns a list of user IDs, who has any access to any of this task descendents



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