Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.flexstor.common.gateway
Class WorkspaceGateway  view WorkspaceGateway download WorkspaceGateway.java

java.lang.Object
  extended bycom.flexstor.common.gateway.Gateway
      extended bycom.flexstor.common.gateway.WorkspaceGateway
All Implemented Interfaces:
com.flexstor.common.constants.EjbHomeInterfacesI

public class WorkspaceGateway
extends Gateway

Gateway to interact with the WorkspaceBean


Nested Class Summary
 
Nested classes inherited from class com.flexstor.common.gateway.Gateway
 
Field Summary
private  com.flexstor.ejb.versioncontrol.workspace.Workspace ws
           
 
Fields inherited from class com.flexstor.common.gateway.Gateway
bInitialized, bLoadObjects, bSaveObjects, engine, util
 
Fields inherited from interface com.flexstor.common.constants.EjbHomeInterfacesI
ADDRESS_HOME, APPLICATION_HOME, ASSET_PATH_HOME, ASSET_ROLE_LIST_HOME, ASSETS_COPY_SOURCE_HOME, ASSETS_IN_PROCESS_HOME, BUCKET_PERSIST_HOME, CART_HOME, CHECK_IN_CHECK_OUT_HOME, CHECKIN_HOME, CHECKOUT_HOME, CONTEXT_HOME, DELETE_HOME, DISGUISE_BUCKET_PERSIST_HOME, DISGUISE_FIELD_PERSIST_HOME, DISGUISE_HOME, DISPLAY_BUCKET_PERSIST_HOME, DISPLAY_FIELD_PERSIST_HOME, DISPLAY_HOME, DISPLAY_LAYOUT_PERSIST_HOME, EDIT_PERSIST_HOME, EMAIL_PERSIST_HOME, FIELD_PERSIST_HOME, FILE_STORAGE_HOME, FTP_PERSIST_HOME, GROUP_HOME, GROUP_PERSIST_HOME, IDENTIFIER, IMPORT_RECORD_HOME, IMPORT_SETTING_HOME, INSERT_HOME, LOOKUP_HOME, LOOKUPLIST_HOME, MACHINE_HOME, PICTURE_GALLERY_TEMPLATE_HOME, PING_HOME, PRIV_ASSET_HOME, PRIVILEGE_PERSIST_HOME, PROPERTY_PERSIST_HOME, REPORT_TEMPLATE_HOME, ROLE_HOME, SAVED_SEARCH_HOME, SEARCH_HOME, SEARCH_RESULT_HOME, SEND_SETTING_HOME, SEQUENCE_HOME, SERVER_LIST_HOME, SETTINGS_HOME, TRANSACTION_LOG_HOME, UPDATE_HOME, USER_HOME, USER_PERSIST_HOME, VIR_DEVICE_HOME, WHERE_PERSIST_HOME, WORKSPACE_HOME
 
Constructor Summary
WorkspaceGateway()
           
 
Method Summary
 void addRecords(com.flexstor.common.data.ActionData data)
          Updates the workspace by adding the records after copying the files to the workspace in the filesystem.
 java.util.Map areVersionsCurrent(java.util.List recordIds)
          Checks records to determine whether its version in the workspace is synchronized with the most current version in the repository.
 void connect()
           
protected  com.flexstor.ejb.EjbObject getBeanObject()
          Returns the instance of the current bean, or null if the bean has not been created.
 java.util.Map getCurrentVersions(java.util.List assetIds)
          Returns an AssetRecordData object for each asset id specified in the argument.
 com.flexstor.common.data.AssetRecordData getDefaultViewAsset(com.flexstor.common.data.AssetRecordData record)
           
protected  java.lang.String getHomeName()
          Returns the name of the home interface.
 void updateRecords(com.flexstor.common.data.ActionData data)
          Updates the records in the workspace to reflect the new state of the asset (synchronized with the repository)
 
Methods inherited from class com.flexstor.common.gateway.Gateway
beginHeartbeats, buildException, buildException, canLoadObject, canSaveObject, dispose, EBJObjectToString, enableDebugging, getHome, isInitalized, retrieveObject, shutdown, storeObject, storeObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ws

private com.flexstor.ejb.versioncontrol.workspace.Workspace ws
Constructor Detail

WorkspaceGateway

public WorkspaceGateway()
Method Detail

getHomeName

protected java.lang.String getHomeName()
Description copied from class: Gateway
Returns the name of the home interface.

Specified by:
getHomeName in class Gateway

getBeanObject

protected com.flexstor.ejb.EjbObject getBeanObject()
Description copied from class: Gateway
Returns the instance of the current bean, or null if the bean has not been created.

Specified by:
getBeanObject in class Gateway

connect

public void connect()
             throws com.flexstor.common.gateway.exceptions.TransactionFailedException

addRecords

public void addRecords(com.flexstor.common.data.ActionData data)
                throws com.flexstor.common.gateway.exceptions.TransactionFailedException
Updates the workspace by adding the records after copying the files to the workspace in the filesystem.


updateRecords

public void updateRecords(com.flexstor.common.data.ActionData data)
                   throws com.flexstor.common.gateway.exceptions.TransactionFailedException
Updates the records in the workspace to reflect the new state of the asset (synchronized with the repository)


getDefaultViewAsset

public com.flexstor.common.data.AssetRecordData getDefaultViewAsset(com.flexstor.common.data.AssetRecordData record)
                                                             throws com.flexstor.common.gateway.exceptions.TransactionFailedException

areVersionsCurrent

public java.util.Map areVersionsCurrent(java.util.List recordIds)
                                 throws com.flexstor.common.gateway.exceptions.TransactionFailedException
Checks records to determine whether its version in the workspace is synchronized with the most current version in the repository.


getCurrentVersions

public java.util.Map getCurrentVersions(java.util.List assetIds)
                                 throws com.flexstor.common.gateway.exceptions.TransactionFailedException
Returns an AssetRecordData object for each asset id specified in the argument.