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

Quick Search    Search Deep

com.flexstor.flexdbserver.services.asset.destination
Class MappedStructure  view MappedStructure download MappedStructure.java

java.lang.Object
  extended bycom.flexstor.flexdbserver.services.asset.destination.MappedStructure

public class MappedStructure
extends java.lang.Object


Field Summary
private  java.util.ArrayList alBuckets
          Keep bucket ids in order of appearance in [mapfolders] section.
private  boolean bDoExactMatch
           
private  boolean bUseDBValuesOnly
          If true, ignore values in the data object and only use those in the database to set the destination path
private static int DATABASE_VALUES
           
private static int DATAOBJECT_VALUES
           
private  com.flexstor.ejb.disguise.persist.ServerDisguiseExtendData disguise
           
private  java.lang.String fileSeparator
           
private  java.util.Hashtable htBucketIds
          Holds a list of Bucket record ids grouped by bucket structure id.
private  java.util.Hashtable htFields
          Holds a list of field ids present for each bucket in the [mapfolders] section.
private  java.util.Hashtable htValuesPerBucket
          Holds a list of field values per bucket.
private  java.util.Hashtable htValuesPerRecord
          Holds a list of field values per bucket record id.
static java.lang.String IDENTIFIER
           
private  java.lang.String sCtlFileName
           
private  java.lang.String sDestination
           
private  java.lang.String sThisService
           
private static int VALUES_MISMATCH
           
 
Constructor Summary
MappedStructure()
           
 
Method Summary
private  void constructPath(com.flexstor.common.data.ejb.disguiserecord.DisguiseAssetRecordData asset, java.util.ArrayList alSubFolders)
           
private  java.lang.String createPaths(java.util.Vector vAssetsIn, com.flexstor.common.data.ejb.disguiserecord.DisguiseRecordData disguiseRecord)
           
private  java.lang.String getBucketAndFieldsInfo(java.util.TreeMap tmLevels)
           
private  com.flexstor.common.data.ejb.search.MultiValueData[] getValuesFromBucket(com.flexstor.common.data.ejb.disguiserecord.DisguiseBucketRecordData bucket, java.util.ArrayList alFieldIds)
           
private  int pickValues(com.flexstor.common.data.ejb.search.MultiValueData[] dbValues, com.flexstor.common.data.ejb.search.MultiValueData[] objectValues)
           
private  java.lang.String retrieveFieldValues()
           
private  java.lang.String retrieveRecordIdsForBuckets(java.util.Vector vAssetsIn, com.flexstor.common.data.ejb.disguiserecord.DisguiseRecordData disguiseRecord)
           
 com.flexstor.common.importprocessor.ImportResult setPaths(com.flexstor.common.importprocessor.ImportData importData, java.util.Hashtable htProperties)
           
 
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

VALUES_MISMATCH

private static final int VALUES_MISMATCH
See Also:
Constant Field Values

DATABASE_VALUES

private static final int DATABASE_VALUES
See Also:
Constant Field Values

DATAOBJECT_VALUES

private static final int DATAOBJECT_VALUES
See Also:
Constant Field Values

sThisService

private java.lang.String sThisService

fileSeparator

private java.lang.String fileSeparator

sDestination

private java.lang.String sDestination

sCtlFileName

private java.lang.String sCtlFileName

bDoExactMatch

private boolean bDoExactMatch

disguise

private com.flexstor.ejb.disguise.persist.ServerDisguiseExtendData disguise

alBuckets

private java.util.ArrayList alBuckets
Keep bucket ids in order of appearance in [mapfolders] section. Note that a bucket can appear in two or more consecutive levels; however this object only keeps the order of appearance once. This object is needed when comparing the traversal path of an asset with the buckets defined in the [mapfolders] section.


htFields

private java.util.Hashtable htFields
Holds a list of field ids present for each bucket in the [mapfolders] section. key = bucket structure id; value = ArrayList of field ids Used for retrieving field values when calling the retrieval bean. ArrayList is also used to construct path.


htBucketIds

private java.util.Hashtable htBucketIds
Holds a list of Bucket record ids grouped by bucket structure id. key = bucket structure id; value = ArrayList of record ids Used for retrieving field values when calling the retrieval bean.


htValuesPerRecord

private java.util.Hashtable htValuesPerRecord
Holds a list of field values per bucket record id. key = bucket record id; value = MultivalueFieldData[] Used when creating the path for each asset.


htValuesPerBucket

private java.util.Hashtable htValuesPerBucket
Holds a list of field values per bucket. (No bucket id) key = bucket (DisguiseBucketRecordData object); value = MultivalueFieldData[] Used when creating the path for each asset.


bUseDBValuesOnly

private boolean bUseDBValuesOnly
If true, ignore values in the data object and only use those in the database to set the destination path

Constructor Detail

MappedStructure

public MappedStructure()
Method Detail

setPaths

public com.flexstor.common.importprocessor.ImportResult setPaths(com.flexstor.common.importprocessor.ImportData importData,
                                                                 java.util.Hashtable htProperties)

getBucketAndFieldsInfo

private java.lang.String getBucketAndFieldsInfo(java.util.TreeMap tmLevels)

retrieveRecordIdsForBuckets

private java.lang.String retrieveRecordIdsForBuckets(java.util.Vector vAssetsIn,
                                                     com.flexstor.common.data.ejb.disguiserecord.DisguiseRecordData disguiseRecord)

retrieveFieldValues

private java.lang.String retrieveFieldValues()

createPaths

private java.lang.String createPaths(java.util.Vector vAssetsIn,
                                     com.flexstor.common.data.ejb.disguiserecord.DisguiseRecordData disguiseRecord)

getValuesFromBucket

private com.flexstor.common.data.ejb.search.MultiValueData[] getValuesFromBucket(com.flexstor.common.data.ejb.disguiserecord.DisguiseBucketRecordData bucket,
                                                                                 java.util.ArrayList alFieldIds)

pickValues

private int pickValues(com.flexstor.common.data.ejb.search.MultiValueData[] dbValues,
                       com.flexstor.common.data.ejb.search.MultiValueData[] objectValues)

constructPath

private void constructPath(com.flexstor.common.data.ejb.disguiserecord.DisguiseAssetRecordData asset,
                           java.util.ArrayList alSubFolders)