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

Quick Search    Search Deep

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

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

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

DefaultViewService

Assigns a default view to each asset according to the following rules:
- A parent only has one default view.
- A thumbnail is always its own default view.
- Low resolution always uses the default view of its parent asset.
- The first thumbnail created (in a multi-thumbnail environment) is the default view of its parent.
- If an asset has a default view already assigned, it will not be reassigned a new one.

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


Field Summary
protected  com.flexstor.flexdbserver.services.ServiceContext context
           
protected  int id
           
static java.lang.String IDENTIFIER
           
protected  com.flexstor.common.importprocessor.ImportData refImportData
           
protected  com.flexstor.common.data.ejb.sequence.SequenceData sequenceData
           
private  java.lang.String sThisService
           
protected  boolean successful
           
protected  java.util.Vector vAssetRecords
           
 
Constructor Summary
DefaultViewService()
           
 
Method Summary
private  long getNewAssetId()
           
 com.flexstor.common.data.ActionResult go()
          The start of the DefaultView Service.
 void initData(com.flexstor.common.data.ActionData actionData)
          A data initialization method called at the beginning of the service.
private  void requestSequenceBulk(int nCount)
           
private  boolean setDefaultView(com.flexstor.common.data.ejb.disguiserecord.DisguiseAssetRecordData defaultViewAsset)
           
 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

sThisService

private java.lang.String sThisService

context

protected com.flexstor.flexdbserver.services.ServiceContext context

id

protected int id

refImportData

protected com.flexstor.common.importprocessor.ImportData refImportData

vAssetRecords

protected java.util.Vector vAssetRecords

successful

protected boolean successful

sequenceData

protected com.flexstor.common.data.ejb.sequence.SequenceData sequenceData
Constructor Detail

DefaultViewService

public DefaultViewService()
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)
A data initialization method called at the beginning of the service. The input argument, ActionData must be cast into its subclass, ImportData in order to extract the service specific data from it.

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

go

public com.flexstor.common.data.ActionResult go()
The start of the DefaultView Service.

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

setDefaultView

private boolean setDefaultView(com.flexstor.common.data.ejb.disguiserecord.DisguiseAssetRecordData defaultViewAsset)

requestSequenceBulk

private void requestSequenceBulk(int nCount)

getNewAssetId

private long getNewAssetId()