java.lang.Object
com.flexstor.flexdbserver.services.asset.MilService
- All Implemented Interfaces:
- com.flexstor.flexdbserver.services.Service
- public class MilService
- extends java.lang.Object
- implements com.flexstor.flexdbserver.services.Service
MilService
The MilService provides functionality for creating assets and attaching metadata from
a data file which is in a specific format. These data files, which may list several
assets, are called Mil files. This was done for a specific customer and may not
be of general use. If creating assets and populating metadata fields is desired, consider
the XMLActionDataService.
Configurable Properties in services.config
None
Configurable Properties in hotdirectory control file
makeXMilTemp
Legal values: N or Y
This is used to inform the service if the Mil file itself should be set to TEMP.
The default is to not set it to TEMP.
HighresExtension, ThumbnailExtension
These are the default extensions to append to the basename of the asset. If not
specified, the defaults of .tif and .jpg are used.
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 |
| CHLDREN | * | * |   |   |
| ALL | * | * |   |   |
| TEMP_PARENT | * | * |   |   |
| TEMP_CHILDREN | * | * |   |   |
| TEMP_ALL | * | * |   |   |
*The normal output from the service is an Import Data Object that contains several
elements. Each element consists of a high resolution parent and a thumbnail child.
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
context
protected com.flexstor.flexdbserver.services.ServiceContext context
refImportData
private com.flexstor.common.importprocessor.ImportData refImportData
myServDisgExtend
private com.flexstor.ejb.disguise.persist.ServerDisguiseExtendData myServDisgExtend
refDisguiseRecord
private com.flexstor.common.data.ejb.disguiserecord.DisguiseRecordData refDisguiseRecord
allBucketExtend
private com.flexstor.ejb.bucket.persist.ServerBucketExtendData[] allBucketExtend
seqGateway
private com.flexstor.common.gateway.SequenceGateway seqGateway
sDisguise
private static java.lang.String sDisguise
sLevelEntries
private static java.lang.String[] sLevelEntries
sLevelBucket
private static java.lang.String[] sLevelBucket
sLevelField
private static java.lang.String[] sLevelField
totalLevels
private static int totalLevels
servername
private static java.lang.String servername
receivedDate
private static java.util.Date receivedDate
ctlUserId
private static java.lang.String ctlUserId
sHighresExtension
private static java.lang.String sHighresExtension
sThumbnailExtension
private static java.lang.String sThumbnailExtension
shouldMakeMilTemp
protected boolean shouldMakeMilTemp
successful
protected boolean successful
MilService
public MilService()
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
parseMilFile
private int parseMilFile(java.lang.String milFilePath)
throws java.lang.Exception
parseIndexData
protected boolean parseIndexData(java.lang.String[] sRegions)
processMilLine
private boolean processMilLine(java.lang.String[] sRegions,
java.util.Vector vIndexData)
insertDocNumber
protected com.flexstor.common.data.ejb.disguiserecord.DisguiseBucketRecordData insertDocNumber(com.flexstor.common.data.ejb.disguiserecord.DisguiseBucketRecordData refBucket,
java.lang.String sDocumentNumber)
beefyStuff
protected com.flexstor.common.data.ejb.disguiserecord.DisguiseBucketRecordData beefyStuff(com.flexstor.common.data.ejb.disguiserecord.DisguiseBucketRecordData refBucket,
java.util.Vector vIndexData,
int startLevel,
int endLevel)
findBucketId
com.flexstor.ejb.bucket.persist.ServerBucketExtendData findBucketId(int typeToSearchFor)
- Return the BucketExtendData of the element level bucket
findNormalBucket
com.flexstor.ejb.bucket.persist.ServerBucketExtendData findNormalBucket(java.lang.String sBucketLabel)
- Return the BucketExtendData of the bucket matching a given label
getSequence
private long getSequence()
getBucketLabel
protected java.lang.String getBucketLabel(java.lang.String sTemp)
getFieldLabel
protected java.lang.String getFieldLabel(java.lang.String sTemp)
checkForExisting
protected com.flexstor.common.data.ejb.disguiserecord.DisguiseBucketRecordData checkForExisting(com.flexstor.common.data.ejb.disguiserecord.DisguiseBucketRecordData refBucket,
com.flexstor.common.data.ejb.disguiserecord.DisguiseBucketRecordData tmpBucket)