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

Quick Search    Search Deep

com.flexstor.flexdbserver.services.resourcefork
Class ResourceForkService  view ResourceForkService download ResourceForkService.java

java.lang.Object
  extended bycom.flexstor.flexdbserver.services.resourcefork.ResourceForkService
All Implemented Interfaces:
com.flexstor.common.constants.ActionPropertiesI, com.flexstor.common.constants.RsrcForkConstantsI, com.flexstor.flexdbserver.services.Service

public class ResourceForkService
extends java.lang.Object
implements com.flexstor.flexdbserver.services.Service, com.flexstor.common.constants.RsrcForkConstantsI, com.flexstor.common.constants.ActionPropertiesI

ResourceForkService

Converts Macintosh files stored in either UNIX or NT file systems to MacBinary format and vice versa. This service supports files stored using the following AppleTalk vendors and software: Helios, IPT, Xinet, and DAVE.

Configurable Properties in services.config

NTVolumes: Specifies Windows NTFS volumes where assets reside. These volumes need to be mapped to the server running the FLEXSTOR.db application server; the mount point should be named after the volume name assigned in NT. More than one volume is accepted (optional; only required if files reside in NT volume and AppleTalk Vendor is DAVE).
Legal values: A comma or space delimited list of NT volumes

NTHost: The IP address of the NT host where files are located (optional; only required if files reside in NT volume and AppleTalk vendor is DAVE).
Legal values: Valid IP address

NTPort: Port number where Remote Asset Server is running in NT machine (optional; only required if files reside in NT volume and AppleTalk Vendor is DAVE; defaults to 1099).
Legal values: Valid port number

appletalk_installpath: Installation directory for AppleTalk software (required for Helios, IPT, and Xinet).
Legal values: Full path

appletalk_converterpath: Path to conversion utilities (required for Helios and Xinet).
Legal values: Full path (not including name of utilities)

Input Data Object

com.flexstor.common.data.ActionData

Output Data Object

com.flexstor.common.data.ActionResult

Programmable Properties (passed inside data object)

Global Properties (apply to all assets)
RsrcForkAction: The action to be performed by this ResourceForkService.
Data type: Integer
Legal values: COMBINE_FORKS, COPY_FORKS, MOVE_FORKS, SEPARATE_FORKS, DELETE_FORKS defined in com.flexstor.common.constants.RsrcForkConstantsI

DestinationLocation: Location where output files will be placed. This property will only be used if DestinationLocation is not defined as a specific property.
Data type: String
Legal values: Full path to destination directory

DeleteDirectory: Attempts to delete original directory after action is performed. Directory will be deleted only if DeleteOriginal is set to true and no more files remained inside directory (optional; defaults to false).
Data type: Boolean
Legal values: true or false

DeleteOriginal: Delete original file after action is performed (optional; defaults to false).
Data type: Boolean
Legal values: true or false

AddToAssetsInProcess: By default, if an action is going to place files in the original hot directories, the ResourceForkService adds the files to the ASSET_INPROCESS table so they don't get imported. If a previous service or process is doing so already, this option can be disabled from the ResourceForkService (defaults to true).
Data type: Boolean
Legal values: true or false

Specific Properties (apply to each individual asset)

DestinationLocation: Location where the record will be placed; if not specified it will use the DestinationLocation property defined in the Global section (if defined); otherwise, the action will fail.
Data type: String
Legal values: Full path to destination directory


Field Summary
private  boolean bUsingNoneRsrc
           
protected  com.flexstor.flexdbserver.services.ServiceContext context
           
protected  java.lang.String fileSeparator
           
static java.lang.String FORK
           
private  com.flexstor.common.data.ActionData forkData
           
private  java.util.Hashtable htProperties
           
protected  int id
           
static java.lang.String IDENTIFIER
           
private  int nAction
           
private  ResourceFork noneResourceFork
           
private  int nServerAppleTalkVendor
           
private  java.lang.String sAppServer
           
private  java.lang.String sDefaultDestination
           
private  java.lang.String sThisService
           
private  ResourceFork tempResourceFork
           
private  java.util.Vector vBadRecords
           
private  java.util.Vector vRecords
           
 
Fields inherited from interface com.flexstor.common.constants.RsrcForkConstantsI
COMBINE_FORKS, COPY_FORKS, DAVE, DELETE_FORKS, HELIOS, IPT, MACBINARY_EXT, MOVE_FORKS, NONE, SEPARATE_FORKS, XINET
 
Fields inherited from interface com.flexstor.common.constants.ActionPropertiesI
ACTION, ADD_TO_ASSETS_INPROCESS, APPLETALK_VENDOR, ARCHIVE_ID, BADFILES_HASHTABLE, BADRECORDS_VECTOR, CALLBACK_OBJECT, CHECKEDOUT_PATH, CHECKIN_DATETIME, CLASSIFIED, CONFIRM_TEXT, CONFIRMATION_DATA, CONVERSION_MODE, CONVERSION_TARGET, CONVERT_CONFIG_FILE, CUST_ID, CUSTOMIZED_PROCESS, DEFAULT_VIEW_ASSET, DEFAULT_VIEW_ASSET_ID, DELETE_DIRECTORY, DELETE_EMPTY_BUCKETS, DELETE_ORIGINAL, DESCRIPTION, DESTINATION_FILENAME, DESTINATION_LOCATION, DESTINATION_SERVER, DISK_SPACE_REQUIRED, DO_LOGIN, DUP_ARCHIVE_ID, EMAIL_ADDRESS, EMAIL_CC, EMAIL_MESSAGE, EMAIL_RETRY_COUNT, EMAIL_SENDER, EMAIL_SUBJECT, ERROR_HASHTABLE, FILE_GROUPID, FILE_LIST, FILE_PERMISSIONS, FILE_USERID, FILENAME, FILES_INPROGRESS, FILESIZE, FLEX_ARCH_ERROR, FTP_CREATE_DIRS, FTP_HOST_NAME, FTP_PASSWORD, FTP_REMOTE_DIR, FTP_TRANSFER_MODE, FTP_USER_NAME, GOODFILES_HASHTABLE, HELD_RECORDS, HOT_DIRECTORY, IS_FLAT_MODE, IS_LOCATION_IN_SERVER, IS_OVERWRITE, KEEP_LOWRES, KEEP_MACBINARIES, KEEP_RESOURCEFORK, LOCATION, LOWRESEXTRACT_TARGET, MACBINARY_FORMAT, MANUAL_DATA, MESSAGE_STRING, MODIFICATION_DATE, ORIGINAL_FILENAME, ORIGINAL_LOCATION, ORIGINAL_SERVER, PRESERVE_NAME, REGENERATE_THUMBNAIL, RESOLVE_LOOKUPS, RESOLVED_LOCATION, RESOURCEFORK_ACTION, RESTORE_LOCATION, RESTORE_ORIGINAL, RESTORE_SESSIONS, RESULT_STATUS, ROLE_ID, RSRC_ARCHIVE_ID, RSRC_DUP_ARCHIVE_ID, RSRC_FILE_LIST, SEND_ORIGINAL, SEND_SERVICE_TYPE, SERVER, SERVICE_DATE, SOURCE_FILENAME, SOURCE_FILESIZE, SOURCE_LOCATION, SOURCE_RECORD, SOURCE_SERVER, STEP_NUMBER, SYSTEM_USER_ID, SYSTEM_USER_PASSWORD, THREAD_GROUP_NAME, TPI_ERROR, UPDATE_STATUS, URL_STRING, USE_CONVERT_SERVICE, USE_EXTRACT_SERVICE, USE_ZIP_SERVICE, USER_ID, VECTOR_HOLDER, VERSION_FILENAME, VERSION_FILESIZE, VERSION_LOCATION, VERSION_NUMBER, VERSION_NUMBER_PREVIOUS, VERSION_SERVER, VOLUME_PATH, ZIP_FILENAME, ZIP_FILEPATH, ZIP_LOCATION
 
Constructor Summary
ResourceForkService()
           
 
Method Summary
private  com.flexstor.common.data.ActionResult createBadResultObject()
           
private  ResourceFork getResourceForkInstance()
           
 com.flexstor.common.data.ActionResult go()
          This methods carries the load of the business logic for the service.
 void initData(com.flexstor.common.data.ActionData actionData)
          A data initialization method called at the beginning of the service.
 void setServiceContext(com.flexstor.flexdbserver.services.ServiceContext context)
          Calls before the service is initialized (before initData is called) to pass information about the environment in which the service is running.
 
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

FORK

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

forkData

private com.flexstor.common.data.ActionData forkData

vRecords

private java.util.Vector vRecords

vBadRecords

private java.util.Vector vBadRecords

sAppServer

private java.lang.String sAppServer

sThisService

private java.lang.String sThisService

sDefaultDestination

private java.lang.String sDefaultDestination

nAction

private int nAction

nServerAppleTalkVendor

private int nServerAppleTalkVendor

htProperties

private java.util.Hashtable htProperties

noneResourceFork

private ResourceFork noneResourceFork

tempResourceFork

private ResourceFork tempResourceFork

bUsingNoneRsrc

private boolean bUsingNoneRsrc

context

protected com.flexstor.flexdbserver.services.ServiceContext context

id

protected int id

fileSeparator

protected java.lang.String fileSeparator
Constructor Detail

ResourceForkService

public ResourceForkService()
Method Detail

setServiceContext

public void setServiceContext(com.flexstor.flexdbserver.services.ServiceContext context)
Calls before the service is initialized (before initData is called) to pass information about the environment in which the service is running. This environment consists of information about the properties set for the service in one of these files (services.config, roletype_services.config, or *.ctl), plus methods to access other information such as an instance of the service broker to invoke other services, the transaction id for the service, file separator character and local path for the installation directory and configuration directory.

Specified by:
setServiceContext in interface com.flexstor.flexdbserver.services.Service

initData

public void initData(com.flexstor.common.data.ActionData actionData)
Description copied from interface: com.flexstor.flexdbserver.services.Service
A data initialization method called at the beginning of the service. Not business logic, relevant to the functionality of the service, should be added here, other than initializing some variables, etc.

Specified by:
initData in interface com.flexstor.flexdbserver.services.Service

go

public com.flexstor.common.data.ActionResult go()
Description copied from interface: com.flexstor.flexdbserver.services.Service
This methods carries the load of the business logic for the service.

Specified by:
go in interface com.flexstor.flexdbserver.services.Service

getResourceForkInstance

private ResourceFork getResourceForkInstance()

createBadResultObject

private com.flexstor.common.data.ActionResult createBadResultObject()