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

Quick Search    Search Deep

com.flexstor.flexdbserver.services.asset
Class ActionDataCreateService  view ActionDataCreateService download ActionDataCreateService.java

java.lang.Object
  extended bycom.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


Field Summary
protected  com.flexstor.flexdbserver.services.ServiceContext context
           
protected  int id
           
static java.lang.String IDENTIFIER
           
private  com.flexstor.common.importprocessor.ImportData importData
           
private  int nDisguiseId
           
private  java.lang.String sFlagIn
           
private  java.lang.String sRoleIn
           
private  java.lang.String sThisService
           
private  java.lang.String sTypeIn
           
 
Constructor Summary
ActionDataCreateService()
           
 
Method Summary
private  com.flexstor.common.data.AssetRecordData createRecord(com.flexstor.common.data.ejb.disguiserecord.DisguiseAssetRecordData asset, java.util.Vector vTraversalInfo)
           
 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.
private  void parseAsset(com.flexstor.common.data.ejb.disguiserecord.DisguiseAssetRecordData asset, java.util.Vector vAssets, java.util.Vector vTraversalItems)
           
private  void parseBuckets(com.flexstor.common.data.ejb.disguiserecord.DisguiseBucketRecordData[] saBuckets, java.util.Vector vAssets, java.util.Vector vTraversalItems)
           
private  void parseElements(com.flexstor.common.data.ejb.disguiserecord.DisguiseElementRecordData[] saElements, java.util.Vector vAssets, java.util.Vector vTraversalItems)
           
private  void setInfo(com.flexstor.common.data.AssetRecordData record, com.flexstor.common.data.ejb.disguiserecord.DisguiseAssetRecordData asset)
           
 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

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
Constructor Detail

ActionDataCreateService

public ActionDataCreateService()
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

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)