wt.recent
Class StandardRecentlyVisitedService

java.lang.Object
  extended bywt.services.StandardManager
      extended bywt.recent.StandardRecentlyVisitedService
All Implemented Interfaces:
Manager, NetFactor, RecentlyVisitedService, Serializable

public class StandardRecentlyVisitedService
extends StandardManager
implements RecentlyVisitedService, Serializable

Service implementation for recently accessed objects/containers.

Use the newStandardRecentlyVisitedService static factory method(s), not the StandardRecentlyVisitedService constructor, to construct instances of this class. Instances must be constructed using the static factory(s), in order to ensure proper initialization of the instance.



Supported API: true

Extendable: false

See Also:
Serialized Form

Field Summary
private static String BYPASS_RECENT_SERVICE
           
private static int capacityObjectDefault
           
private static int CHUNK_SIZE
           
private static String CLASS_TYPE_SEPARATOR
           
private static Hashtable classAndType
           
private static String CLASSNAME
           
private static String CONTAINER_ROOT
           
private static boolean EXECUTE_QUEUES
           
private static String LAST_VISITED_CONTAINER_KEY
           
private static String LAST_VISITED_CUSTOMSTACK_KEY
           
private static String LAST_VISITED_OBJECTS_KEY
           
private static String LAST_VISITED_TYPED_CONTAINERS_PREFIX
           
private static boolean loaded
           
private static String OBJECTSTACKSIZE
           
private static String QUEUE_NAME
           
private static String RECENT_LIST_ADDED
           
private static String RECENT_LIST_CONTAINER_NAME
           
private static String RECENT_LIST_CUSTOM_NAME
           
private static RecentUpdateCache recentUpdateCache
           
private static String RESOURCE
           
private static boolean VERBOSE
           
 
Fields inherited from class wt.services.StandardManager
 
Fields inherited from interface wt.services.Manager
MANAGER_SERVICE, STARTUP_AUTOMATIC, STARTUP_MANUAL, STATUS_EMERGENCY_SHUTDOWN, STATUS_EMERGENCY_SHUTTING_DOWN, STATUS_SHUTDOWN, STATUS_SHUTDOWN_ERRORS, STATUS_SHUTDOWN_FAILURE, STATUS_SHUTTING_DOWN, STATUS_STARTED, STATUS_STARTED_ERRORS, STATUS_STARTING_UP, STATUS_STARTUP_FAILURE
 
Constructor Summary
StandardRecentlyVisitedService()
           
 
Method Summary
 void addCustomStackObject(WTObject a, String customStackName)
          Add the given object to the given custom stack as the most recently accessed one.
 Vector addCustomStackObject(WTObject a, String customStackName, boolean returnStack)
          Add the given object to the given custom stack as the most recently accessed one and return the stack.
 void addCustomStackObjectByOid(ObjectIdentifier oid, String customStackName)
          Add the object corresponding to given ObjectIdentifier to the given custom stack as the most recently accessed one.
 Vector addCustomStackObjectByOid(ObjectIdentifier oid, String customStackName, boolean returnStack)
          Add the object corresponding to given ObjectIdentifier to the given custom stack as the most recently accessed one and return the stack.
private  void addMCToDBList(String listName, boolean isContainer)
          This method appends the value string in the method context for the given listname to the value string from database preference entry.
private  void addMethodCtxListener()
           
protected static void addQueueEntry()
           
 void addRecentlyVisitedContainer(WTContainer wtc)
          Add the given container as the most recently accessed one for the corresponding type.
 Vector addRecentlyVisitedContainer(WTContainer wtc, boolean returnStack)
          Add the given container as the most recently accessed one for the corresponding type and return the stack.
 void addRecentlyVisitedContainer(WTContainer wtc, String type)
          Add the given container as the most recently accessed one for the given type.
 void addRecentlyVisitedContainerByOid(ObjectIdentifier oid)
          Add the container corresponding to given ObjectIdentifier as the most recently accessed one for the corresponding type.
 Vector addRecentlyVisitedContainerByOid(ObjectIdentifier oid, boolean returnStack)
          Add the container corresponding to given ObjectIdentifier as the most recently accessed one for the corresponding type and return the stack.
 void addRecentlyVisitedObject(WTObject a)
          Add the given object as the most recently accessed one.
 Vector addRecentlyVisitedObject(WTObject a, boolean returnStack)
          Add the given object as the most recently accessed one and return the stack.
 void addRecentlyVisitedObjectByOid(ObjectIdentifier oid)
          Add the object corresponding to given ObjectIdentifier as the most recently accessed one.
 Vector addRecentlyVisitedObjectByOid(ObjectIdentifier oid, boolean returnStack)
          Add the object corresponding to given ObjectIdentifier as the most recently accessed one and return the stack.
private  void addToRecentDBLists()
          This will update strings stored in MethodContext against the listNames to the corresponding database preference.
private  void addToRecentMCLists(Persistable a, String listName, boolean isContainer)
          This method will add strings to MethodContext.
private static boolean checkExistsQueueEntry()
           
private  ObjectVisitedInfo checkMCTopStack(String prefName)
           
static void cleanupOldestFromList(String message)
           
private  boolean containsIn(RecentUpdate y, ArrayList listObjects)
           
private  Vector filterClassname(Vector recentObjVec, String classname)
           
private  RecentUpdate findInQR(RecentUpdate x, QueryResult qr)
           
private  String[] getBusinessObjectRefs(WTCollection coll)
           
 Boolean getBypassRecentList()
          

Supported API: false
private  String getCacheKey(String listName, String princName)
           
private  String[] getChunkedBORs(String[] BORArray, int n_chunks, int i)
           
 String getConceptualClassname()
          Deprecated.  
private  Persistable getContainerFromOID(ObjectIdentifier oid)
          Get the Container from ObjectIdentifier using the cached containers.
 Vector getCustomStack(String customStackName)
          Gets all the most recently accessed objects currently in the given custom stack preference.
 Vector getCustomStack(String classname, String customStackName)
          Gets all the most recently accessed objects belonging to the classname currently in the given Custom Stack preference.
 Vector getFromDB(String prefName)
          Deprecated.  
private static Timestamp getFutureTime()
          This will run every midnight.
 ObjectVisitedInfo getLastVisitedContainer()
          Returns the most recently accessed container.
 ObjectVisitedInfo getLatestCustomStackObject(String customStackName)
          Returns the most recently accessed object from given Custom Stack.
private  QueryResult getMasterByID(Persistable x)
           
private  Persistable getObjectFromOID(ObjectIdentifier oid)
          Get the Persistable from ObjectIdentifier using Object Reference.
private  QuerySpec getObjectQuerySpec(String[] chunkedBORs, String listName)
           
 ObjectVisitedInfo getRecentlyVisitedContainer(String type)
          Gets the most recently accessed container for given type.
 Vector getRecentlyVisitedContainerStack(String type)
          Gets all the most recently accessed containers for given type.
 int getRecentlyVisitedContainerStackSize(String type)
          Returns the setting for maximum number of conainers as part of stack of recently visited containers of given type.
 ObjectVisitedInfo getRecentlyVisitedObject()
          Returns the most recently accessed object.
 Vector getRecentlyVisitedObjectStack()
          Gets all the most recently accessed objects currently in the preference.
 Vector getRecentlyVisitedObjectStack(String classname)
          Gets all the most recently accessed objects belonging to the classname currently in the preference.
 int getRecentlyVisitedObjectStackSize()
          Returns the setting for maximum number of objects as part of stack of recently visited objects.
private  RecentUpdateCache getRecentUpdateCache()
           
private  QueryResult getRecentUpdateChunk(String[] BORArray)
           
private  QuerySpec getStackQuerySpec(String listName)
           
private  QueryResult getTargetObjectsByID(Persistable x)
           
private  QueryResult getTargetObjectsByID(WTCollection coll)
           
 String getTypeForClass(String cName)
           
private  WTCollection getValidObjects(WTCollection objCollection)
           
private  Vector getVectorOfOVs(QueryResult qr)
           
 Vector listCustomStacks()
          Get all custom stack names as Vector.
private static void loadContainerTypes()
          load names of container types each of which has recently visited list of the corresponding container type.
private  WTPreferences myPrefsGet(boolean onlyUserCtx)
          Get the preference context for the given user to read preference values.
private  WTPreferences myPrefsPut()
          Get the preference context for the given user to edit preference values.
static StandardRecentlyVisitedService newStandardRecentlyVisitedService()
          Default factory for the class.
protected  void performStartupProcess()
          Dummy method to be overridden by subclasses.
private  void pushObjectsFromMC(Vector listObjects, String prefName)
           
private  void removeFromRecentList(Persistable x)
           
private  void removeFromRecentList(WTCollection coll)
           
private  void renameRecentUpdate(Persistable x)
           
 void setBypassRecentList(Boolean bypass)
          

Supported API: false
 void setLastVisitedContainer(WTContainer wtc)
          Sets the given container as the most recently accessed container.
 void setRecentlyVisitedContainerStackSize(int i, String type)
          Sets the maximum number of containers as part of stack of recently visited containers for given type.
 void setRecentlyVisitedObjectStackSize(int i)
          Sets the maximum number of objects as part of stack of recently visited objects.
private  Vector sizedVector(Vector recentObjVec)
           
private  Vector stackAfterAddObject(Object a, boolean isContainer, String stackName)
           
private  void updateCache(RecentUpdate ru)
           
 
Methods inherited from class wt.services.StandardManager
emergencyShutdown, emergencyShutdownComplete, emergencyShuttingDown, getClassInfo, getManagerService, getManagerStatus, getName, getStartupType, init, initialize, initialize, isStarted, newStandardManager, newStandardManager, performEmergencyShutdownProcess, performShutdownProcess, registerEvents, setManagerService, shutdown, shutdownFailure, shutdownSuccess, shuttingDown, started, startedErrors, startingUp, startup, startupFailure, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

VERBOSE

private static boolean VERBOSE

loaded

private static boolean loaded

classAndType

private static final Hashtable classAndType

CONTAINER_ROOT

private static final String CONTAINER_ROOT
See Also:
Constant Field Values

LAST_VISITED_CONTAINER_KEY

private static final String LAST_VISITED_CONTAINER_KEY
See Also:
Constant Field Values

LAST_VISITED_TYPED_CONTAINERS_PREFIX

private static final String LAST_VISITED_TYPED_CONTAINERS_PREFIX
See Also:
Constant Field Values

LAST_VISITED_OBJECTS_KEY

private static final String LAST_VISITED_OBJECTS_KEY
See Also:
Constant Field Values

LAST_VISITED_CUSTOMSTACK_KEY

private static final String LAST_VISITED_CUSTOMSTACK_KEY
See Also:
Constant Field Values

OBJECTSTACKSIZE

private static final String OBJECTSTACKSIZE
See Also:
Constant Field Values

CLASS_TYPE_SEPARATOR

private static final String CLASS_TYPE_SEPARATOR
See Also:
Constant Field Values

BYPASS_RECENT_SERVICE

private static final String BYPASS_RECENT_SERVICE
See Also:
Constant Field Values

RECENT_LIST_CUSTOM_NAME

private static final String RECENT_LIST_CUSTOM_NAME
See Also:
Constant Field Values

RECENT_LIST_CONTAINER_NAME

private static final String RECENT_LIST_CONTAINER_NAME
See Also:
Constant Field Values

RECENT_LIST_ADDED

private static final String RECENT_LIST_ADDED
See Also:
Constant Field Values

recentUpdateCache

private static RecentUpdateCache recentUpdateCache

EXECUTE_QUEUES

private static boolean EXECUTE_QUEUES

CHUNK_SIZE

private static final int CHUNK_SIZE

QUEUE_NAME

private static final String QUEUE_NAME
See Also:
Constant Field Values

capacityObjectDefault

private static int capacityObjectDefault
Constructor Detail

StandardRecentlyVisitedService

public StandardRecentlyVisitedService()
Method Detail

getConceptualClassname

public String getConceptualClassname()
Deprecated.  

Returns the conceptual (modeled) name for the class.

Supported API: false

Specified by:
getConceptualClassname in interface NetFactor
Overrides:
getConceptualClassname in class StandardManager
Returns:
String

performStartupProcess

protected void performStartupProcess()
                              throws ManagerException
Dummy method to be overridden by subclasses. Subclasses should override this method and provide startup processing.

Supported API: false

Overrides:
performStartupProcess in class StandardManager
Throws:
ManagerException

newStandardRecentlyVisitedService

public static StandardRecentlyVisitedService newStandardRecentlyVisitedService()
                                                                        throws WTException
Default factory for the class.

Supported API: false

Returns:
StandardRecentlyVisitedService
Throws:
WTException

addRecentlyVisitedContainer

public void addRecentlyVisitedContainer(WTContainer wtc)
                                 throws WTException
Add the given container as the most recently accessed one for the corresponding type.

Supported API: true

Specified by:
addRecentlyVisitedContainer in interface RecentlyVisitedService
Parameters:
wtc -
Throws:
WTException

addRecentlyVisitedContainer

public void addRecentlyVisitedContainer(WTContainer wtc,
                                        String type)
                                 throws WTException
Add the given container as the most recently accessed one for the given type.

Supported API: true

Specified by:
addRecentlyVisitedContainer in interface RecentlyVisitedService
Parameters:
wtc -
type -
Throws:
WTException

addRecentlyVisitedObject

public void addRecentlyVisitedObject(WTObject a)
                              throws WTException
Add the given object as the most recently accessed one.

Supported API: true

Specified by:
addRecentlyVisitedObject in interface RecentlyVisitedService
Parameters:
a -
Throws:
WTException

getLastVisitedContainer

public ObjectVisitedInfo getLastVisitedContainer()
                                          throws WTException
Returns the most recently accessed container.

Supported API: true

Specified by:
getLastVisitedContainer in interface RecentlyVisitedService
Returns:
ObjectVisitedInfo
Throws:
WTException

getRecentlyVisitedContainer

public ObjectVisitedInfo getRecentlyVisitedContainer(String type)
                                              throws WTException
Gets the most recently accessed container for given type.

Supported API: true

Specified by:
getRecentlyVisitedContainer in interface RecentlyVisitedService
Parameters:
type -
Returns:
ObjectVisitedInfo
Throws:
WTException

getRecentlyVisitedContainerStack

public Vector getRecentlyVisitedContainerStack(String type)
                                        throws WTException
Gets all the most recently accessed containers for given type. The first object in the returned Vector would be the latest accessed container & so on.

Supported API: true

Specified by:
getRecentlyVisitedContainerStack in interface RecentlyVisitedService
Parameters:
type -
Returns:
Vector
Throws:
WTException

getRecentlyVisitedObject

public ObjectVisitedInfo getRecentlyVisitedObject()
                                           throws WTException
Returns the most recently accessed object.

Supported API: true

Specified by:
getRecentlyVisitedObject in interface RecentlyVisitedService
Returns:
ObjectVisitedInfo
Throws:
WTException

getRecentlyVisitedObjectStack

public Vector getRecentlyVisitedObjectStack()
                                     throws WTException
Gets all the most recently accessed objects currently in the preference. The first object in the returned Vector would be the most recently accessed object & so on.

Supported API: true

Specified by:
getRecentlyVisitedObjectStack in interface RecentlyVisitedService
Returns:
Vector
Throws:
WTException

setLastVisitedContainer

public void setLastVisitedContainer(WTContainer wtc)
                             throws WTException
Sets the given container as the most recently accessed container.

Supported API: true

Specified by:
setLastVisitedContainer in interface RecentlyVisitedService
Parameters:
wtc -
Throws:
WTException

setRecentlyVisitedContainerStackSize

public void setRecentlyVisitedContainerStackSize(int i,
                                                 String type)
                                          throws WTException
Sets the maximum number of containers as part of stack of recently visited containers for given type.

Supported API: true

Specified by:
setRecentlyVisitedContainerStackSize in interface RecentlyVisitedService
Parameters:
i -
type -
Throws:
WTException

setRecentlyVisitedObjectStackSize

public void setRecentlyVisitedObjectStackSize(int i)
                                       throws WTException
Sets the maximum number of objects as part of stack of recently visited objects.

Supported API: true

Specified by:
setRecentlyVisitedObjectStackSize in interface RecentlyVisitedService
Parameters:
i -
Throws:
WTException

getRecentlyVisitedContainerStackSize

public int getRecentlyVisitedContainerStackSize(String type)
                                         throws WTException
Returns the setting for maximum number of conainers as part of stack of recently visited containers of given type.

Supported API: true

Specified by:
getRecentlyVisitedContainerStackSize in interface RecentlyVisitedService
Parameters:
type -
Returns:
int
Throws:
WTException

getRecentlyVisitedObjectStackSize

public int getRecentlyVisitedObjectStackSize()
                                      throws WTException
Returns the setting for maximum number of objects as part of stack of recently visited objects.

Supported API: true

Specified by:
getRecentlyVisitedObjectStackSize in interface RecentlyVisitedService
Returns:
int
Throws:
WTException

addCustomStackObject

public void addCustomStackObject(WTObject a,
                                 String customStackName)
                          throws WTException
Add the given object to the given custom stack as the most recently accessed one.

Supported API: false

Specified by:
addCustomStackObject in interface RecentlyVisitedService
Parameters:
a -
customStackName -
Throws:
WTException

getLatestCustomStackObject

public ObjectVisitedInfo getLatestCustomStackObject(String customStackName)
                                             throws WTException
Returns the most recently accessed object from given Custom Stack.

Supported API: false

Specified by:
getLatestCustomStackObject in interface RecentlyVisitedService
Parameters:
customStackName -
Returns:
ObjectVisitedInfo
Throws:
WTException

getCustomStack

public Vector getCustomStack(String customStackName)
                      throws WTException
Gets all the most recently accessed objects currently in the given custom stack preference. The first object in the returned Vector would be the most recently accessed object & so on.

Supported API: false

Specified by:
getCustomStack in interface RecentlyVisitedService
Parameters:
customStackName -
Returns:
Vector
Throws:
WTException

listCustomStacks

public Vector listCustomStacks()
                        throws WTException
Get all custom stack names as Vector.

Supported API: false

Specified by:
listCustomStacks in interface RecentlyVisitedService
Returns:
Vector
Throws:
WTException

getCustomStack

public Vector getCustomStack(String classname,
                             String customStackName)
                      throws WTException
Gets all the most recently accessed objects belonging to the classname currently in the given Custom Stack preference. The first object in the returned Vector would be the most recently accessed object & so on.

Supported API: false

Specified by:
getCustomStack in interface RecentlyVisitedService
Parameters:
classname -
customStackName -
Returns:
Vector
Throws:
WTException

getRecentlyVisitedObjectStack

public Vector getRecentlyVisitedObjectStack(String classname)
                                     throws WTException
Gets all the most recently accessed objects belonging to the classname currently in the preference. The first object in the returned Vector would be the most recently accessed object & so on.

Supported API: false

Specified by:
getRecentlyVisitedObjectStack in interface RecentlyVisitedService
Parameters:
classname -
Returns:
Vector
Throws:
WTException

setBypassRecentList

public void setBypassRecentList(Boolean bypass)
                         throws WTException


Supported API: false

Specified by:
setBypassRecentList in interface RecentlyVisitedService
Parameters:
bypass -
Throws:
WTException

getBypassRecentList

public Boolean getBypassRecentList()
                            throws WTException


Supported API: false

Specified by:
getBypassRecentList in interface RecentlyVisitedService
Returns:
Boolean
Throws:
WTException

addRecentlyVisitedObjectByOid

public void addRecentlyVisitedObjectByOid(ObjectIdentifier oid)
                                   throws WTException
Add the object corresponding to given ObjectIdentifier as the most recently accessed one.

Supported API: true

Specified by:
addRecentlyVisitedObjectByOid in interface RecentlyVisitedService
Parameters:
oid -
Throws:
WTException

addRecentlyVisitedContainerByOid

public void addRecentlyVisitedContainerByOid(ObjectIdentifier oid)
                                      throws WTException
Add the container corresponding to given ObjectIdentifier as the most recently accessed one for the corresponding type.

Supported API: true

Specified by:
addRecentlyVisitedContainerByOid in interface RecentlyVisitedService
Parameters:
oid -
Throws:
WTException

addCustomStackObjectByOid

public void addCustomStackObjectByOid(ObjectIdentifier oid,
                                      String customStackName)
                               throws WTException
Add the object corresponding to given ObjectIdentifier to the given custom stack as the most recently accessed one.

Supported API: false

Specified by:
addCustomStackObjectByOid in interface RecentlyVisitedService
Parameters:
oid -
customStackName -
Throws:
WTException

addRecentlyVisitedObjectByOid

public Vector addRecentlyVisitedObjectByOid(ObjectIdentifier oid,
                                            boolean returnStack)
                                     throws WTException
Add the object corresponding to given ObjectIdentifier as the most recently accessed one and return the stack.

Supported API: false

Specified by:
addRecentlyVisitedObjectByOid in interface RecentlyVisitedService
Parameters:
oid -
returnStack -
Returns:
Vector
Throws:
WTException

addRecentlyVisitedContainer

public Vector addRecentlyVisitedContainer(WTContainer wtc,
                                          boolean returnStack)
                                   throws WTException
Add the given container as the most recently accessed one for the corresponding type and return the stack.

Supported API: false

Specified by:
addRecentlyVisitedContainer in interface RecentlyVisitedService
Parameters:
wtc -
returnStack -
Returns:
Vector
Throws:
WTException

addCustomStackObjectByOid

public Vector addCustomStackObjectByOid(ObjectIdentifier oid,
                                        String customStackName,
                                        boolean returnStack)
                                 throws WTException
Add the object corresponding to given ObjectIdentifier to the given custom stack as the most recently accessed one and return the stack.

Supported API: false

Specified by:
addCustomStackObjectByOid in interface RecentlyVisitedService
Parameters:
oid -
customStackName -
returnStack -
Returns:
Vector
Throws:
WTException

addRecentlyVisitedContainerByOid

public Vector addRecentlyVisitedContainerByOid(ObjectIdentifier oid,
                                               boolean returnStack)
                                        throws WTException
Add the container corresponding to given ObjectIdentifier as the most recently accessed one for the corresponding type and return the stack.

Supported API: false

Specified by:
addRecentlyVisitedContainerByOid in interface RecentlyVisitedService
Parameters:
oid -
returnStack -
Returns:
Vector
Throws:
WTException

addRecentlyVisitedObject

public Vector addRecentlyVisitedObject(WTObject a,
                                       boolean returnStack)
                                throws WTException
Add the given object as the most recently accessed one and return the stack.

Supported API: false

Specified by:
addRecentlyVisitedObject in interface RecentlyVisitedService
Parameters:
a -
returnStack -
Returns:
Vector
Throws:
WTException

addCustomStackObject

public Vector addCustomStackObject(WTObject a,
                                   String customStackName,
                                   boolean returnStack)
                            throws WTException
Add the given object to the given custom stack as the most recently accessed one and return the stack.

Supported API: false

Specified by:
addCustomStackObject in interface RecentlyVisitedService
Parameters:
a -
customStackName -
returnStack -
Returns:
Vector
Throws:
WTException

getFromDB

public Vector getFromDB(String prefName)
                 throws WTException
Deprecated.  



Supported API: false

Specified by:
getFromDB in interface RecentlyVisitedService
Parameters:
prefName -
Returns:
Vector
Throws:
WTException

stackAfterAddObject

private Vector stackAfterAddObject(Object a,
                                   boolean isContainer,
                                   String stackName)
                            throws WTException
Throws:
WTException

pushObjectsFromMC

private void pushObjectsFromMC(Vector listObjects,
                               String prefName)
                        throws WTException
Throws:
WTException

checkMCTopStack

private ObjectVisitedInfo checkMCTopStack(String prefName)
                                   throws WTException
Throws:
WTException

myPrefsGet

private WTPreferences myPrefsGet(boolean onlyUserCtx)
                          throws WTException
Get the preference context for the given user to read preference values.

Throws:
WTException

myPrefsPut

private WTPreferences myPrefsPut()
                          throws WTException
Get the preference context for the given user to edit preference values.

Throws:
WTException

loadContainerTypes

private static void loadContainerTypes()
                                throws WTException
load names of container types each of which has recently visited list of the corresponding container type.

Throws:
WTException

getValidObjects

private WTCollection getValidObjects(WTCollection objCollection)
                              throws WTException
Throws:
WTException

getTypeForClass

public String getTypeForClass(String cName)

addMethodCtxListener

private void addMethodCtxListener()

addToRecentMCLists

private void addToRecentMCLists(Persistable a,
                                String listName,
                                boolean isContainer)
This method will add strings to MethodContext. The values would later be updated to database when Method context unregisters.


addToRecentDBLists

private void addToRecentDBLists()
                         throws WTException
This will update strings stored in MethodContext against the listNames to the corresponding database preference.

Throws:
WTException

addMCToDBList

private void addMCToDBList(String listName,
                           boolean isContainer)
                    throws WTException
This method appends the value string in the method context for the given listname to the value string from database preference entry.

Throws:
WTException

containsIn

private boolean containsIn(RecentUpdate y,
                           ArrayList listObjects)

getObjectFromOID

private Persistable getObjectFromOID(ObjectIdentifier oid)
                              throws WTException
Get the Persistable from ObjectIdentifier using Object Reference. This would query from database.

Throws:
WTException

getContainerFromOID

private Persistable getContainerFromOID(ObjectIdentifier oid)
                                 throws WTException
Get the Container from ObjectIdentifier using the cached containers.

Throws:
WTException

getStackQuerySpec

private QuerySpec getStackQuerySpec(String listName)
                             throws WTException
Throws:
WTException

getVectorOfOVs

private Vector getVectorOfOVs(QueryResult qr)
                       throws WTException
Throws:
WTException

getObjectQuerySpec

private QuerySpec getObjectQuerySpec(String[] chunkedBORs,
                                     String listName)
                              throws WTException
Throws:
WTException

getRecentUpdateCache

private RecentUpdateCache getRecentUpdateCache()

findInQR

private RecentUpdate findInQR(RecentUpdate x,
                              QueryResult qr)

getMasterByID

private QueryResult getMasterByID(Persistable x)
                           throws WTException
Throws:
WTException

getTargetObjectsByID

private QueryResult getTargetObjectsByID(Persistable x)
                                  throws WTException
Throws:
WTException

renameRecentUpdate

private void renameRecentUpdate(Persistable x)
                         throws WTException
Throws:
WTException

removeFromRecentList

private void removeFromRecentList(Persistable x)
                           throws WTException
Throws:
WTException

removeFromRecentList

private void removeFromRecentList(WTCollection coll)
                           throws WTException
Throws:
WTException

updateCache

private void updateCache(RecentUpdate ru)
                  throws WTException
Throws:
WTException

getTargetObjectsByID

private QueryResult getTargetObjectsByID(WTCollection coll)
                                  throws WTException
Throws:
WTException

getChunkedBORs

private String[] getChunkedBORs(String[] BORArray,
                                int n_chunks,
                                int i)

getBusinessObjectRefs

private String[] getBusinessObjectRefs(WTCollection coll)
                                throws WTException
Throws:
WTException

getRecentUpdateChunk

private QueryResult getRecentUpdateChunk(String[] BORArray)
                                  throws WTException
Throws:
WTException

getCacheKey

private String getCacheKey(String listName,
                           String princName)

filterClassname

private Vector filterClassname(Vector recentObjVec,
                               String classname)

sizedVector

private Vector sizedVector(Vector recentObjVec)
                    throws WTException
Throws:
WTException

addQueueEntry

protected static void addQueueEntry()
                             throws WTException
Throws:
WTException

getFutureTime

private static Timestamp getFutureTime()
This will run every midnight.


checkExistsQueueEntry

private static boolean checkExistsQueueEntry()
                                      throws WTException
Throws:
WTException

cleanupOldestFromList

public static void cleanupOldestFromList(String message)
                                  throws WTException
Throws:
WTException