wt.fv.uploadtocache
Class UploadToCacheServiceFwd

java.lang.Object
  extended bywt.fv.uploadtocache.UploadToCacheServiceFwd
All Implemented Interfaces:
RemoteAccess, Serializable, UploadToCacheService

public class UploadToCacheServiceFwd
extends Object
implements RemoteAccess, UploadToCacheService, Serializable



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
UploadToCacheServiceFwd()
           
 
Method Summary
 void clientUpdateContent(String docNumber, String fileName, CachedContentDescriptor cachedContDescr)
          This method is intended for test purposes only.
 Vector findBackupFileList(String holderId)
          Find a list of files related to Content Cache Server needed to backup for the specified ContentHolder with the ID "holderId".
 Vector findBackupFileListForSite(String siteName)
          Find a list of files related to Content Cache Server needed to backup for the specified site.
 CacheDescriptor getCacheDescriptor(int number_of_files)
          

Supported API: false
 CacheDescriptor getCacheDescriptor(int number_of_files, boolean useMasterCache)
          Get CacheDescriptor for the specified number of files for upload to preferred site.
private static Manager getManager()
           
 
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

UploadToCacheServiceFwd

public UploadToCacheServiceFwd()
Method Detail

getManager

private static Manager getManager()
                           throws WTException
Returns:
Manager
Throws:
WTException

getCacheDescriptor

public CacheDescriptor getCacheDescriptor(int number_of_files)
                                   throws WTException


Supported API: false

Specified by:
getCacheDescriptor in interface UploadToCacheService
Parameters:
number_of_files -
Returns:
CacheDescriptor
Throws:
WTException

clientUpdateContent

public void clientUpdateContent(String docNumber,
                                String fileName,
                                CachedContentDescriptor cachedContDescr)
                         throws WTException,
                                PropertyVetoException
This method is intended for test purposes only. It intends to add new cached content to WTDocument located by docNumber.

Supported API: false

Specified by:
clientUpdateContent in interface UploadToCacheService
Parameters:
docNumber -
fileName -
cachedContDescr -
Throws:
WTException
PropertyVetoException

findBackupFileListForSite

public Vector findBackupFileListForSite(String siteName)
                                 throws WTException
Find a list of files related to Content Cache Server needed to backup for the specified site.

Supported API: false

Specified by:
findBackupFileListForSite in interface UploadToCacheService
Parameters:
siteName -
Returns:
Vector
Throws:
WTException

findBackupFileList

public Vector findBackupFileList(String holderId)
                          throws WTException
Find a list of files related to Content Cache Server needed to backup for the specified ContentHolder with the ID "holderId".

Supported API: false

Specified by:
findBackupFileList in interface UploadToCacheService
Parameters:
holderId -
Returns:
Vector
Throws:
WTException

getCacheDescriptor

public CacheDescriptor getCacheDescriptor(int number_of_files,
                                          boolean useMasterCache)
                                   throws WTException
Get CacheDescriptor for the specified number of files for upload to preferred site. If preferred site is not set for user or preferred site does not have a Content Cache designated Vault then CacheDescriptor for upload to local master content cache is returned if useMasterCache is true else null is returned.

Supported API: false

Specified by:
getCacheDescriptor in interface UploadToCacheService
Parameters:
number_of_files -
useMasterCache -
Returns:
CacheDescriptor
Throws:
WTException