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

Quick Search    Search Deep

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

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

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

DefaultThumbnailService

Determines if the thumbnail file actually exists. If it doesn't, retrieves the icon specified in the thumbnail creation configuration (*.cfg) file for the thumbnail file type and updates the asset with the icon file location.

Configurable Properties in roletype_services.config
In/Out Properties for Assets
Attribute IN OUT Default IN Default OUT
ROLE
Highres        
Lowres        
Thumbnail X X    
Layout        
Video        
Audio        
TYPE     ALL  
FLAG
PARENT        
CHLDREN        
ALL        
TEMP_PARENT        
TEMP_CHILDREN        
TEMP_ALL        

Input Data Object

ImportData

Output Data Object

ImportResult

Programmable Properties (passed inside data object)

Global Properties (apply to all assets)

C/NC,Type:Icon path,Icon filename: In the xxx.cfg file, a list of types and the associated icon file. C/NC designates convertable/nonconvertable
Data type: String
Legal values: Any legal types and paths


Field Summary
private  java.lang.String fileSeparator
           
static java.lang.String IDENTIFIER
           
protected  com.flexstor.flexdbserver.importprocessor.ConversionOptions refConversionOptions
           
protected  com.flexstor.common.importprocessor.ImportCtlData refCtlData
           
protected  com.flexstor.common.importprocessor.ImportData refImportData
           
protected  java.lang.String sConfigFile
           
protected  java.lang.String sThisService
           
protected  java.lang.String sThumbLocation
           
protected  java.lang.String sThumbName
           
protected  java.lang.String sThumbPath
           
protected  java.lang.String sThumbServer
           
protected  boolean successful
           
 
Constructor Summary
DefaultThumbnailService()
           
 
Method Summary
protected  boolean checkFileType(java.lang.String sExtension, java.lang.String sType)
           
 com.flexstor.common.data.ActionResult go()
          The start of the Convert Service.
 void initData(com.flexstor.common.data.ActionData actionData)
          A data initialization method called at the beginning of the service.
private  boolean readCfgFile()
           
 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

sThumbLocation

protected java.lang.String sThumbLocation

sThumbServer

protected java.lang.String sThumbServer

sThumbName

protected java.lang.String sThumbName

sThumbPath

protected java.lang.String sThumbPath

sThisService

protected java.lang.String sThisService

sConfigFile

protected java.lang.String sConfigFile

successful

protected boolean successful

refCtlData

protected com.flexstor.common.importprocessor.ImportCtlData refCtlData

refConversionOptions

protected com.flexstor.flexdbserver.importprocessor.ConversionOptions refConversionOptions

refImportData

protected com.flexstor.common.importprocessor.ImportData refImportData

fileSeparator

private java.lang.String fileSeparator
Constructor Detail

DefaultThumbnailService

public DefaultThumbnailService()
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, ConvertData in order to extract the ConvertService 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 Convert Service.

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

readCfgFile

private boolean readCfgFile()

checkFileType

protected boolean checkFileType(java.lang.String sExtension,
                                java.lang.String sType)