wt.recent
Class RecentlyVisitedServiceFwd

java.lang.Object
  extended bywt.recent.RecentlyVisitedServiceFwd
All Implemented Interfaces:
RecentlyVisitedService, RemoteAccess, Serializable

public class RecentlyVisitedServiceFwd
extends Object
implements RemoteAccess, RecentlyVisitedService, Serializable

Service for accessing recently visited objects.

Supported API: false

Extendable: false

See Also:
Serialized Form

Field Summary
private static String CLASSNAME
           
private static String FC_RESOURCE
           
(package private) static boolean SERVER
           
 
Fields inherited from interface wt.method.RemoteAccess
versionID
 
Constructor Summary
RecentlyVisitedServiceFwd()
           
 
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.
 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.
 Boolean getBypassRecentList()
          

Supported API: false
 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.  
 ObjectVisitedInfo getLastVisitedContainer()
          Returns the most recently accessed container.
 ObjectVisitedInfo getLatestCustomStackObject(String customStackName)
          Returns the most recently accessed object from given Custom Stack.
private static Manager getManager()
           
 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.
 Vector listCustomStacks()
          Get all custom stack names as Vector.
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SERVER

static final boolean SERVER

FC_RESOURCE

private static final String FC_RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME
Constructor Detail

RecentlyVisitedServiceFwd

public RecentlyVisitedServiceFwd()
Method Detail

getManager

private static Manager getManager()
                           throws WTException
Returns:
Manager
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: false

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: false

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: false

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

getLastVisitedContainer

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

Supported API: false

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: false

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: false

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: false

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: false

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: false

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: false

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: false

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: false

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: false

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: false

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: false

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