wt.fv
Interface FvService


public interface FvService

The FvService service presents an interface (accessible also in the client) to the functions provided in the server by the StandardFvService.

Supported API: true

Extendable: false


Method Summary
 wt.fv.FvFolder addFolder(wt.fv.FvVault vault, wt.fv.FvFolder folder)
          Add a folder to a given vault.
 wt.fv.FvHost addHostToSite(wt.intersvrcom.Site site, wt.fv.FvHost host)
          Adds the given host to the give site.
 wt.fv.Vault addVaultToSite(wt.intersvrcom.Site site, wt.fv.Vault vault)
          Adds the given vault to the given site.
 Vector getAllRevaultableItems(wt.fv.Vault vault, Vector queryInfo, int pageSize)
          Get all revaultable items from the given vault with streamId is at least "startingStreamId".
 wt.fv.FvMount mountFolder(wt.fv.FvHost host, wt.fv.FileFolder folder, String path, boolean local)
          Mounts a folder to a given host.
 void unmountFolder(wt.fv.FvHost host, wt.fv.FileFolder folder)
          Unmount the specified folder from a given host.
 

Method Detail

addFolder

wt.fv.FvFolder addFolder(wt.fv.FvVault vault,
                         wt.fv.FvFolder folder)
                         throws WTException
Add a folder to a given vault. The specified folder's number will define an order in which the folder is going to be used in a vault.

Specifying a number that already exists for a given vault results in shifting vaults to make a room for a new one.

Specifying -1 results in adding a folder to the end of the list.

Supported API: true

Parameters:
vault -
folder -
Returns:
FvFolder
Throws:
WTException

mountFolder

wt.fv.FvMount mountFolder(wt.fv.FvHost host,
                          wt.fv.FileFolder folder,
                          String path,
                          boolean local)
                          throws WTPropertyVetoException,
                                 WTException
Mounts a folder to a given host. A folder can be mounted as local to no more than one host.

Supported API: true

Parameters:
host -
folder -
path -
local -
Returns:
FvMount
Throws:
WTPropertyVetoException
WTException

unmountFolder

void unmountFolder(wt.fv.FvHost host,
                   wt.fv.FileFolder folder)
                   throws WTException
Unmount the specified folder from a given host.

Supported API: true

Parameters:
host -
folder -
Throws:
WTException

addHostToSite

wt.fv.FvHost addHostToSite(wt.intersvrcom.Site site,
                           wt.fv.FvHost host)
                           throws WTException
Adds the given host to the give site.

Supported API: true

Parameters:
site -
host -
Returns:
FvHost
Throws:
WTException

addVaultToSite

wt.fv.Vault addVaultToSite(wt.intersvrcom.Site site,
                           wt.fv.Vault vault)
                           throws WTException
Adds the given vault to the given site.

Supported API: true

Parameters:
site -
vault -
Returns:
Vault
Throws:
WTException

getAllRevaultableItems

Vector getAllRevaultableItems(wt.fv.Vault vault,
                              Vector queryInfo,
                              int pageSize)
                              throws WTException,
                                     WTPropertyVetoException
Get all revaultable items from the given vault with streamId is at least "startingStreamId". The "pageSize" is the maximum number of items to be sent to client per RMI request, which is configurable at client's side.

Supported API: true

Parameters:
vault -
queryInfo - The information about the query information passed and updated between client and server. The first entry is Long, representing only the Streamed objects whose streamId is at least this number for the content holder class as in the last element of the Vector.
pageSize -
Returns:
Vector
Throws:
WTException
WTPropertyVetoException