public class DataElementUtils extends Object
Modifier and Type | Field and Description |
---|---|
static UUID |
CellSecondExGuid |
static UUID |
RootExGuid |
static UUID |
SchemaGuid |
Constructor and Description |
---|
DataElementUtils() |
Modifier and Type | Method and Description |
---|---|
static boolean |
analyzeStorageIndexDataElement(List<DataElement> dataElements,
ExGuid storageIndexExGuid,
AtomicReference<ExGuid> manifestMappingGuid,
AtomicReference<HashMap<CellID,ExGuid>> cellIDMappings,
AtomicReference<HashMap<ExGuid,ExGuid>> revisionIDMappings)
This method is used to analyze the storage index data element to get all the mappings.
|
static List<DataElement> |
buildDataElements(byte[] fileContent,
AtomicReference<ExGuid> storageIndexExGuid)
This method is used to build a list of data elements to represent a file.
|
static DataElement |
createCellMainifestDataElement(ExGuid revisionId,
Map<CellID,ExGuid> cellIDMapping)
This method is used to create the cell manifest data element.
|
static List<DataElement> |
createObjectGroupDataElement(byte[] fileContent,
AtomicReference<ExGuid> rootNodeExGuid,
List<ExGuid> objectDataExGuidList)
This method is used to create object group data/blob element list.
|
static DataElement |
createRevisionManifestDataElement(ExGuid rootObjectExGuid,
ExGuid baseRevisionID,
List<ExGuid> refferenceObjectDataExGuidList,
Map<ExGuid,ExGuid> revisionMapping,
AtomicReference<ExGuid> currentRevisionID)
This method is used to create the revision manifest data element.
|
static DataElement |
createStorageIndexDataElement(ExGuid manifestExGuid,
Map<CellID,ExGuid> cellIDMappings,
Map<ExGuid,ExGuid> revisionIDMappings)
This method is used to create the storage index data element.
|
static DataElement |
createStorageManifestDataElement(Map<CellID,ExGuid> cellIDMapping)
This method is used to create the storage manifest data element.
|
static CellManifestDataElementData |
getCellManifestDataElementData(List<DataElement> dataElements,
StorageManifestDataElementData manifestDataElementData,
HashMap<CellID,ExGuid> cellIDMappings)
This method is used to get cell manifest data element from a list of data element.
|
static List<ObjectGroupDataElementData> |
getDataObjectDataElementData(List<DataElement> dataElements,
ExGuid storageIndexExGuid,
AtomicReference<ExGuid> rootExGuid)
This method is used to get the list of object group data element from a list of data element.
|
static List<ObjectGroupDataElementData> |
getDataObjectDataElementData(List<DataElement> dataElements,
RevisionManifestDataElementData revisionData,
AtomicReference<ExGuid> rootExGuid)
This method is used to get a list of object group data element from a list of data element.
|
static RevisionManifestDataElementData |
getRevisionManifestDataElementData(List<DataElement> dataElements,
CellManifestDataElementData cellData,
HashMap<ExGuid,ExGuid> revisionIDMappings)
This method is used to get revision manifest data element from a list of data element.
|
static StorageManifestDataElementData |
getStorageManifestDataElementData(List<DataElement> dataElements,
ExGuid manifestMapping)
This method is used to get storage manifest data element from a list of data element.
|
static boolean |
tryAnalyzeWhetherConfirmSchema(List<DataElement> dataElements,
ExGuid storageIndexExGuid)
This method is used to analyze whether the data elements are confirmed to the schema defined in MS-FSSHTTPD.
|
static boolean |
tryAnalyzeWhetherFullDataElementList(List<DataElement> dataElements,
ExGuid storageIndexExGuid)
This method is used to try to analyze the returned whether data elements are complete.
|
public static final UUID RootExGuid
public static final UUID CellSecondExGuid
public static final UUID SchemaGuid
public static List<DataElement> buildDataElements(byte[] fileContent, AtomicReference<ExGuid> storageIndexExGuid) throws TikaException, IOException
fileContent
- The file content in byte array form.storageIndexExGuid
- Reference set to the storage index ex guid.TikaException
IOException
public static List<DataElement> createObjectGroupDataElement(byte[] fileContent, AtomicReference<ExGuid> rootNodeExGuid, List<ExGuid> objectDataExGuidList) throws TikaException, IOException
fileContent
- The file content in byte array format.rootNodeExGuid
- Output parameter to represent the root node extended GUID.objectDataExGuidList
- Input/Output parameter to represent the list of extended GUID
for the data object data.TikaException
IOException
public static DataElement createRevisionManifestDataElement(ExGuid rootObjectExGuid, ExGuid baseRevisionID, List<ExGuid> refferenceObjectDataExGuidList, Map<ExGuid,ExGuid> revisionMapping, AtomicReference<ExGuid> currentRevisionID)
rootObjectExGuid
- Specify the root node object extended GUID.baseRevisionID
- Specify the base revision Id.refferenceObjectDataExGuidList
- Specify the reference object data extended list.currentRevisionID
- Input/output parameter to represent the mapping of revision manifest.currentRevisionID
- Output parameter to represent the revision GUID.public static DataElement createCellMainifestDataElement(ExGuid revisionId, Map<CellID,ExGuid> cellIDMapping)
revisionId
- Specify the revision GUID.cellIDMapping
- Input/output parameter to represent the mapping of cell manifest.public static DataElement createStorageManifestDataElement(Map<CellID,ExGuid> cellIDMapping)
cellIDMapping
- Specify the mapping of cell manifest.public static DataElement createStorageIndexDataElement(ExGuid manifestExGuid, Map<CellID,ExGuid> cellIDMappings, Map<ExGuid,ExGuid> revisionIDMappings)
manifestExGuid
- Specify the storage manifest data element extended GUID.cellIDMappings
- Specify the mapping of cell manifest.revisionIDMappings
- Specify the mapping of revision manifest.public static List<ObjectGroupDataElementData> getDataObjectDataElementData(List<DataElement> dataElements, ExGuid storageIndexExGuid, AtomicReference<ExGuid> rootExGuid) throws TikaException
dataElements
- Specify the data element list.storageIndexExGuid
- Specify the storage index extended GUID.rootExGuid
- Output parameter to represent the root node object.TikaException
public static boolean tryAnalyzeWhetherFullDataElementList(List<DataElement> dataElements, ExGuid storageIndexExGuid) throws TikaException
dataElements
- Specify the data elements list.storageIndexExGuid
- Specify the storage index extended GUID.TikaException
public static boolean tryAnalyzeWhetherConfirmSchema(List<DataElement> dataElements, ExGuid storageIndexExGuid) throws TikaException
dataElements
- Specify the data elements list.storageIndexExGuid
- Specify the storage index extended GUID.TikaException
public static boolean analyzeStorageIndexDataElement(List<DataElement> dataElements, ExGuid storageIndexExGuid, AtomicReference<ExGuid> manifestMappingGuid, AtomicReference<HashMap<CellID,ExGuid>> cellIDMappings, AtomicReference<HashMap<ExGuid,ExGuid>> revisionIDMappings) throws TikaException
dataElements
- Specify the data element list.storageIndexExGuid
- Specify the storage index extended GUID.manifestMappingGuid
- Output parameter to represent the storage manifest mapping GUID.cellIDMappings
- Output parameter to represent the mapping of cell id.revisionIDMappings
- Output parameter to represent the revision id.TikaException
public static StorageManifestDataElementData getStorageManifestDataElementData(List<DataElement> dataElements, ExGuid manifestMapping) throws TikaException
dataElements
- Specify the data element list.manifestMapping
- Specify the manifest mapping GUID.TikaException
public static CellManifestDataElementData getCellManifestDataElementData(List<DataElement> dataElements, StorageManifestDataElementData manifestDataElementData, HashMap<CellID,ExGuid> cellIDMappings) throws TikaException
dataElements
- Specify the data element list.manifestDataElementData
- Specify the manifest data element.cellIDMappings
- Specify mapping of cell id.TikaException
public static RevisionManifestDataElementData getRevisionManifestDataElementData(List<DataElement> dataElements, CellManifestDataElementData cellData, HashMap<ExGuid,ExGuid> revisionIDMappings) throws TikaException
dataElements
- Specify the data element list.cellData
- Specify the cell data element.revisionIDMappings
- Specify mapping of revision id.TikaException
public static List<ObjectGroupDataElementData> getDataObjectDataElementData(List<DataElement> dataElements, RevisionManifestDataElementData revisionData, AtomicReference<ExGuid> rootExGuid) throws TikaException
dataElements
- Specify the data element list.revisionData
- Specify the revision data.rootExGuid
- Specify the root node object extended GUID.TikaException
Copyright © 2007–2023 The Apache Software Foundation. All rights reserved.