|
|||||||||
| Home >> All >> com >> flexstor >> flexdbserver >> services >> [ resourcefork overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.flexstor.flexdbserver.services.resourcefork
Class ResourceForkService

java.lang.Objectcom.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
- extends java.lang.Object
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 volumesNTHost: 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 |
| 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:
setServiceContextin interfacecom.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:
initDatain interfacecom.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:
goin interfacecom.flexstor.flexdbserver.services.Service
getResourceForkInstance
private ResourceFork getResourceForkInstance()
createBadResultObject
private com.flexstor.common.data.ActionResult createBadResultObject()
|
|||||||||
| Home >> All >> com >> flexstor >> flexdbserver >> services >> [ resourcefork overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
com.flexstor.flexdbserver.services.resourcefork.ResourceForkService