Enum DataCategory
- java.lang.Object
-
- java.lang.Enum<DataCategory>
-
- fr.gouv.vitam.storage.engine.common.model.DataCategory
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<DataCategory>
public enum DataCategory extends java.lang.Enum<DataCategory>
Define the differents type of "object" than can be stored, retrieve or deleted from different storage offer
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ACCESSION_REGISTER_DETAILAccession Register DetailACCESSION_REGISTER_SYMBOLICAccession Register DetailAGENCIESAgencies filesARCHIVAL_TRANSFER_REPLYArchival Transfer ReplyBACKUPbackup filesBACKUP_OPERATIONbackup operation filesBATCH_REPORTBatch update reports - Hack, to be fixed with US #5621DIPDeprecated.: DIP are no more stored in offers.DISTRIBUTIONREPORTSdistribution_reports filesLOGBOOKLogbook (any)MANIFESTManitesf.xml from a SIPOBJECTBinary ObjectOBJECTGROUPObject GroupOBJECTGROUP_GRAPHObject group graphPROBATIVE_REPORTReport of probativePROFILEProfile xsd, rng, ...REFERENTIAL_AGENCIES_CSVReferential csv imported for agencies - Hack, to be fixed with US #5621REFERENTIAL_RULES_CSVReferential csv imported for rules - Hack, to be fixed with US #5621REPORTReport of operations (like ArchiveTransferReply)RULESRules filesSTORAGEACCESSLOGStorage AccessLog (log)STORAGELOGStorageLog (any)STORAGETRACEABILITYStorageTraceability (zip)TMPUNITArchive UnitUNIT_GRAPHUnit graph
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanDelete()To know if data type is deletablebooleancanUpdate()To know if data type is updatablestatic DataCategorygetByCollectionName(java.lang.String collectionName)Get DataCategory by collection namestatic DataCategorygetByFolder(java.lang.String folder)Get DataCategory from folderjava.lang.StringgetCollectionName()Get collection namejava.lang.StringgetFolder()Gets the folderstatic DataCategoryvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static DataCategory[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNIT
public static final DataCategory UNIT
Archive Unit
-
OBJECT
public static final DataCategory OBJECT
Binary Object
-
OBJECTGROUP
public static final DataCategory OBJECTGROUP
Object Group
-
LOGBOOK
public static final DataCategory LOGBOOK
Logbook (any)
-
REPORT
public static final DataCategory REPORT
Report of operations (like ArchiveTransferReply)
-
PROBATIVE_REPORT
public static final DataCategory PROBATIVE_REPORT
Report of probative
-
MANIFEST
public static final DataCategory MANIFEST
Manitesf.xml from a SIP
-
PROFILE
public static final DataCategory PROFILE
Profile xsd, rng, ...
-
STORAGELOG
public static final DataCategory STORAGELOG
StorageLog (any)
-
STORAGEACCESSLOG
public static final DataCategory STORAGEACCESSLOG
Storage AccessLog (log)
-
STORAGETRACEABILITY
public static final DataCategory STORAGETRACEABILITY
StorageTraceability (zip)
-
RULES
public static final DataCategory RULES
Rules files
-
BATCH_REPORT
public static final DataCategory BATCH_REPORT
Batch update reports - Hack, to be fixed with US #5621
-
REFERENTIAL_RULES_CSV
public static final DataCategory REFERENTIAL_RULES_CSV
Referential csv imported for rules - Hack, to be fixed with US #5621
-
REFERENTIAL_AGENCIES_CSV
public static final DataCategory REFERENTIAL_AGENCIES_CSV
Referential csv imported for agencies - Hack, to be fixed with US #5621
-
DIP
@Deprecated public static final DataCategory DIP
Deprecated.: DIP are no more stored in offers.dip collection
-
AGENCIES
public static final DataCategory AGENCIES
Agencies files
-
BACKUP
public static final DataCategory BACKUP
backup files
-
BACKUP_OPERATION
public static final DataCategory BACKUP_OPERATION
backup operation files
-
UNIT_GRAPH
public static final DataCategory UNIT_GRAPH
Unit graph
-
OBJECTGROUP_GRAPH
public static final DataCategory OBJECTGROUP_GRAPH
Object group graph
-
DISTRIBUTIONREPORTS
public static final DataCategory DISTRIBUTIONREPORTS
distribution_reports files
-
ACCESSION_REGISTER_DETAIL
public static final DataCategory ACCESSION_REGISTER_DETAIL
Accession Register Detail
-
ARCHIVAL_TRANSFER_REPLY
public static final DataCategory ARCHIVAL_TRANSFER_REPLY
Archival Transfer Reply
-
ACCESSION_REGISTER_SYMBOLIC
public static final DataCategory ACCESSION_REGISTER_SYMBOLIC
Accession Register Detail
-
TMP
public static final DataCategory TMP
-
-
Method Detail
-
values
public static DataCategory[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (DataCategory c : DataCategory.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DataCategory valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getCollectionName
public java.lang.String getCollectionName()
Get collection name- Returns:
- the collection name
-
getFolder
public java.lang.String getFolder()
Gets the folder- Returns:
- the folder
-
canUpdate
public boolean canUpdate()
To know if data type is updatable- Returns:
- true if data type is updatable, false otherwise
-
canDelete
public boolean canDelete()
To know if data type is deletable- Returns:
- true if data type is deletable, false otherwise
-
getByFolder
public static DataCategory getByFolder(java.lang.String folder)
Get DataCategory from folder- Parameters:
folder- the wanted folder- Returns:
- the DataCategory if exists, null otherwise
-
getByCollectionName
public static DataCategory getByCollectionName(java.lang.String collectionName)
Get DataCategory by collection name- Parameters:
collectionName- the wanted collection name- Returns:
- the DataCategory if exists
- Throws:
java.lang.IllegalArgumentException- if DataCategory does not exist
-
-