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

Quick Search    Search Deep

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

java.lang.Object
  extended bycom.flexstor.flexdbserver.services.asset.SwapParentPDFService
All Implemented Interfaces:
com.flexstor.flexdbserver.services.Service

public class SwapParentPDFService
extends java.lang.Object
implements com.flexstor.flexdbserver.services.Service

SwapParentPDFService

Swaps to the location (directory) of a parent and child. The intent is to have a parent and child change places. We assume that both the parent and the child have the same file name and are on the same server. The parent file name must also end in .pdf or .PDF. The parent must have only one child asset of the specified type and that child asset must be a Temp asset. If these conditions are met, then the location and role are swapped.

Configurable Properties in services.config

None

Configurable Properties in roletype_services.config
In/Out Properties for Assets
Attribute IN OUT Default IN Default OUT
ROLE     ALL ALL
Highres X X    
Lowres X X    
Thumbnail X X    
Layout X X    
Video X X    
Audio X X    
TYPE X X ALL* ALL*
FLAG
PARENT X* X* X X
CHLDREN * *    
ALL * *    
TEMP_PARENT * *    
TEMP_CHILDREN * *    
TEMP_ALL X* X*    
*The type for input should be Adobe Acrobat PDF. The flag should be set to parent and that parent should have a temp child. Other types and flags may work, but are not recommended or endorsed.

Types allowed for input: Adobe Acrobat PDF
Types allowed for output: Adobe Acrobat PDF

Input Data Object

com.flexstor.common.importprocessor.ImportData

Output Data Object

com.flexstor.common.importprocessor.ImportResult


Field Summary
protected  com.flexstor.flexdbserver.services.ServiceContext context
           
static java.lang.String IDENTIFIER
           
private  com.flexstor.common.data.ejb.disguiserecord.DisguiseRecordData refDisguiseRecord
           
private  com.flexstor.common.importprocessor.ImportData refImportData
           
protected  boolean successful
           
 
Constructor Summary
SwapParentPDFService()
           
 
Method Summary
(package private)  void BGPDebug(java.lang.String sSomeString)
           
 com.flexstor.common.data.ActionResult go()
          Start of the Service
 void initData(com.flexstor.common.data.ActionData actionData)
          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

refImportData

private com.flexstor.common.importprocessor.ImportData refImportData

refDisguiseRecord

private com.flexstor.common.data.ejb.disguiserecord.DisguiseRecordData refDisguiseRecord

context

protected com.flexstor.flexdbserver.services.ServiceContext context

successful

protected boolean successful
Constructor Detail

SwapParentPDFService

public SwapParentPDFService()
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)
Data initialization method called at the beginning of the service.

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

go

public com.flexstor.common.data.ActionResult go()
Start of the Service

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

BGPDebug

void BGPDebug(java.lang.String sSomeString)