Package fr.gouv.vitam.common
Class SedaVersion
- java.lang.Object
-
- fr.gouv.vitam.common.SedaVersion
-
public class SedaVersion extends java.lang.Object
The class SedaVersion used to get the list the versions by type of Data Object from the file version.conf
-
-
Constructor Summary
Constructors Constructor Description SedaVersion()
constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.lang.String>
getVersionForOtherType(java.lang.String type)
java.util.List<java.lang.String>
getVersionForType(java.lang.String type)
boolean
isSupportedVesion(java.lang.String version)
void
setBinaryDataObjectVersions(java.lang.String[] binaryDataObjectVersions)
void
setPhysicalDataObjectVersions(java.lang.String[] physicalDataObjectVersions)
-
-
-
Method Detail
-
getVersionForType
public java.util.List<java.lang.String> getVersionForType(java.lang.String type)
- Parameters:
type
-- Returns:
- version list for this type
-
getVersionForOtherType
public java.util.List<java.lang.String> getVersionForOtherType(java.lang.String type)
- Parameters:
type
-- Returns:
- version list for other type than the one requested
-
setBinaryDataObjectVersions
public void setBinaryDataObjectVersions(java.lang.String[] binaryDataObjectVersions)
- Parameters:
binaryDataObjectVersions
-
-
setPhysicalDataObjectVersions
public void setPhysicalDataObjectVersions(java.lang.String[] physicalDataObjectVersions)
- Parameters:
physicalDataObjectVersions
-
-
isSupportedVesion
public boolean isSupportedVesion(java.lang.String version)
- Parameters:
version
-- Returns:
- true if version is supported
-
-