java.lang.Object
com.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
| 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
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
DefaultViewService
public DefaultViewService()
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()