java.lang.Object
com.flexstor.flexdbserver.services.asset.ActionDataCreateService
- All Implemented Interfaces:
- com.flexstor.flexdbserver.services.Service
- public class ActionDataCreateService
- extends java.lang.Object
- implements com.flexstor.flexdbserver.services.Service
ActionDataCreateService
Creates a ActionData object from an existent ImportData.
Configurable Properties in roletype_services.config
In/Out Properties for Assets
| Attribute |
IN | OUT | Default IN | Default OUT |
| ROLE |
  |   | ALL |   |
| Highres | X |   |   |   |
| Lowres | X |   |   |   |
| Thumbnail | X |   |   |   |
| Layout | X |   |   |   |
| Video | X |   |   |   |
| Audio | X |   |   |   |
| TYPE |
X |   | ALL |   |
| FLAG |
| PARENT | X |   | X |   |
| CHLDREN | X |   |   |   |
| ALL | X |   |   |   |
| TEMP_PARENT | X |   |   |   |
| TEMP_CHILDREN | X |   |   |   |
| TEMP_ALL | X |   |   |   |
Input Data Object
com.flexstor.common.importprocessor.ImportData
Output Data Object
com.flexstor.common.importprocessor.ImportResult: call getData() to retrieve ActionData
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IDENTIFIER
public static final java.lang.String IDENTIFIER
- See Also:
- Constant Field Values
context
protected com.flexstor.flexdbserver.services.ServiceContext context
id
protected int id
importData
private com.flexstor.common.importprocessor.ImportData importData
sThisService
private java.lang.String sThisService
nDisguiseId
private int nDisguiseId
sRoleIn
private java.lang.String sRoleIn
sTypeIn
private java.lang.String sTypeIn
sFlagIn
private java.lang.String sFlagIn
ActionDataCreateService
public ActionDataCreateService()
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
parseBuckets
private void parseBuckets(com.flexstor.common.data.ejb.disguiserecord.DisguiseBucketRecordData[] saBuckets,
java.util.Vector vAssets,
java.util.Vector vTraversalItems)
parseElements
private void parseElements(com.flexstor.common.data.ejb.disguiserecord.DisguiseElementRecordData[] saElements,
java.util.Vector vAssets,
java.util.Vector vTraversalItems)
parseAsset
private void parseAsset(com.flexstor.common.data.ejb.disguiserecord.DisguiseAssetRecordData asset,
java.util.Vector vAssets,
java.util.Vector vTraversalItems)
createRecord
private com.flexstor.common.data.AssetRecordData createRecord(com.flexstor.common.data.ejb.disguiserecord.DisguiseAssetRecordData asset,
java.util.Vector vTraversalInfo)
setInfo
private void setInfo(com.flexstor.common.data.AssetRecordData record,
com.flexstor.common.data.ejb.disguiserecord.DisguiseAssetRecordData asset)