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

Quick Search    Search Deep

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

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

public class FileStorageGateway
extends Gateway

To do the update into the database

Version:
3.0

Nested Class Summary
 
Nested classes inherited from class com.flexstor.common.gateway.Gateway
 
Field Summary
private  com.flexstor.ejb.filestorage.persist.FileStoragePersist fileStorage
           
static java.lang.String IDENTIFIER
           
 
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, 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
FileStorageGateway()
           
 
Method Summary
 com.flexstor.common.data.ActionData assetsArchived(com.flexstor.common.data.ActionData storageData)
           
 com.flexstor.common.data.ActionData assetsFileNotFound(com.flexstor.common.data.ActionData storageData)
          Change instances of the asset to File Not Found
 com.flexstor.common.data.ActionData assetsInProcessArchive(com.flexstor.common.data.ActionData storageData)
          Change instances of the asset to In Process to Archive All Files are sent to the DB where they are updated.
 com.flexstor.common.data.ActionData assetsInProcessRestore(com.flexstor.common.data.ActionData storageData, boolean bUpdateDB)
          Change instances of the asset to In Process to Restore bUpdateDB true will update the Database, false will not update the database All assets are returned (to get archiveId's etc...).
 com.flexstor.common.data.ActionData assetsRestored(com.flexstor.common.data.ActionData storageData)
          Change instances of the asset to Restored
 void connect()
          Sends the request for the fileStorage data to the server.
protected  com.flexstor.ejb.EjbObject getBeanObject()
          Returns the instance of the current bean, or null if the bean has not been created.
protected  java.lang.String getHomeName()
          Returns the name of the home interface.
 
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

IDENTIFIER

public static final java.lang.String IDENTIFIER
See Also:
Constant Field Values

fileStorage

private com.flexstor.ejb.filestorage.persist.FileStoragePersist fileStorage
Constructor Detail

FileStorageGateway

public FileStorageGateway()
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
Sends the request for the fileStorage data to the server.


assetsArchived

public com.flexstor.common.data.ActionData assetsArchived(com.flexstor.common.data.ActionData storageData)
                                                   throws com.flexstor.common.gateway.exceptions.TransactionFailedException

assetsRestored

public com.flexstor.common.data.ActionData assetsRestored(com.flexstor.common.data.ActionData storageData)
                                                   throws com.flexstor.common.gateway.exceptions.TransactionFailedException
Change instances of the asset to Restored


assetsInProcessArchive

public com.flexstor.common.data.ActionData assetsInProcessArchive(com.flexstor.common.data.ActionData storageData)
                                                           throws com.flexstor.common.gateway.exceptions.TransactionFailedException
Change instances of the asset to In Process to Archive All Files are sent to the DB where they are updated. Before sending them back, the status field is set.


assetsInProcessRestore

public com.flexstor.common.data.ActionData assetsInProcessRestore(com.flexstor.common.data.ActionData storageData,
                                                                  boolean bUpdateDB)
                                                           throws com.flexstor.common.gateway.exceptions.TransactionFailedException
Change instances of the asset to In Process to Restore bUpdateDB true will update the Database, false will not update the database All assets are returned (to get archiveId's etc...). When restoring to new location database is not updated. But archiveId's are still needed.


assetsFileNotFound

public com.flexstor.common.data.ActionData assetsFileNotFound(com.flexstor.common.data.ActionData storageData)
                                                       throws com.flexstor.common.gateway.exceptions.TransactionFailedException
Change instances of the asset to File Not Found