Class CscProduct
java.lang.Object
de.dlr.proseo.api.prip.rest.model.CscProduct
- All Implemented Interfaces:
Serializable
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<CscAttribute> The variable attributes of the product (as requested by the $expand option)protected List<CscChecksum> Represents the known checksums for the product's physical date, providing a unique value for supporting download integrity check.protected CscTimeRangeThe sensing range period.protected LongActual size in bytes of the downloadable fileprotected StringThe MIME type of the product (typically application/octet-stream)protected StringPublication date and time of the data file (time at which the file becomes visible to the user) in UTCprotected StringDate when the data file will be removed from the rolling archive in UTCprotected StringUniversally unique product identifierprotected StringData file nameprotected CscProductionTypeThe type of production process applied(package private) static final long -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new CscProduct.CscProduct(String id, String name, String contentType, Long contentLength, String creationDate, String evictionDate, List<CscChecksum> checksums, CscTimeRange contentDate, CscProductionType productionType, List<CscAttribute> attributes) Creates a new CscProduct. -
Method Summary
Modifier and TypeMethodDescriptionboolean@Valid List<CscAttribute> Returns the attributes.@NotNull @Valid List<CscChecksum> Returns the checksums.@NotNull @Valid CscTimeRangeReturns the contentDate.@NotNull LongReturns the contentLength.@NotNull StringReturns the contentType.@NotNull @Pattern(regexp="^\\d\\d\\d\\d-\\d\\d-\\d\\dT\\d\\d:\\d\\d:\\d\\d.\\d{3}Z$") StringReturns the creationDate.@NotNull @Pattern(regexp="^\\d\\d\\d\\d-\\d\\d-\\d\\dT\\d\\d:\\d\\d:\\d\\d.\\d{3}Z$") StringReturns the evictionDate.@NotNull @Pattern(regexp="^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}$") StringgetId()Returns the id.@NotNull StringgetName()Returns the name.@NotNull @Valid CscProductionTypeReturns the productionType.inthashCode()voidsetAttributes(List<CscAttribute> attributes) Set the attributes.voidsetChecksums(List<CscChecksum> checksums) Set the checksums.voidsetContentDate(CscTimeRange contentDate) Set the contentDate.voidsetContentLength(Long contentLength) Set the contentLength.voidsetContentType(String contentType) Set the contentType.voidsetCreationDate(String creationDate) Set the creationDate.voidsetEvictionDate(String evictionDate) Set the evictionDate.voidSet the id.voidSet the name.voidsetProductionType(CscProductionType productionType) Set the productionType.toString()
-
Field Details
-
serialVersionUID
static final long serialVersionUID- See Also:
-
id
Universally unique product identifier -
name
Data file name -
contentType
The MIME type of the product (typically application/octet-stream) -
contentLength
Actual size in bytes of the downloadable file -
creationDate
Publication date and time of the data file (time at which the file becomes visible to the user) in UTC -
evictionDate
Date when the data file will be removed from the rolling archive in UTC -
checksums
Represents the known checksums for the product's physical date, providing a unique value for supporting download integrity check. At least MD5 checksum is mandatory. It is noted that checksums are computed for the actual downloaded product file, i.e. the package used for dissemination -
contentDate
The sensing range period. Start and end times in UTC -
productionType
The type of production process applied -
attributes
The variable attributes of the product (as requested by the $expand option)
-
-
Constructor Details
-
CscProduct
public CscProduct()Creates a new CscProduct. -
CscProduct
public CscProduct(String id, String name, String contentType, Long contentLength, String creationDate, String evictionDate, List<CscChecksum> checksums, CscTimeRange contentDate, CscProductionType productionType, List<CscAttribute> attributes) Creates a new CscProduct.
-
-
Method Details
-
getId
@NotNull @Pattern(regexp="^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}$") public @NotNull @Pattern(regexp="^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}$") String getId()Returns the id.- Returns:
- id
-
setId
Set the id.- Parameters:
id- the new id
-
getName
Returns the name.- Returns:
- name
-
setName
Set the name.- Parameters:
name- the new name
-
getContentType
Returns the contentType.- Returns:
- contentType
-
setContentType
Set the contentType.- Parameters:
contentType- the new contentType
-
getContentLength
Returns the contentLength.- Returns:
- contentLength
-
setContentLength
Set the contentLength.- Parameters:
contentLength- the new contentLength
-
getCreationDate
@NotNull @Pattern(regexp="^\\d\\d\\d\\d-\\d\\d-\\d\\dT\\d\\d:\\d\\d:\\d\\d.\\d{3}Z$") public @NotNull @Pattern(regexp="^\\d\\d\\d\\d-\\d\\d-\\d\\dT\\d\\d:\\d\\d:\\d\\d.\\d{3}Z$") String getCreationDate()Returns the creationDate.- Returns:
- creationDate
-
setCreationDate
Set the creationDate.- Parameters:
creationDate- the new creationDate
-
getEvictionDate
@NotNull @Pattern(regexp="^\\d\\d\\d\\d-\\d\\d-\\d\\dT\\d\\d:\\d\\d:\\d\\d.\\d{3}Z$") public @NotNull @Pattern(regexp="^\\d\\d\\d\\d-\\d\\d-\\d\\dT\\d\\d:\\d\\d:\\d\\d.\\d{3}Z$") String getEvictionDate()Returns the evictionDate.- Returns:
- evictionDate
-
setEvictionDate
Set the evictionDate.- Parameters:
evictionDate- the new evictionDate
-
getChecksums
Returns the checksums.- Returns:
- checksums
-
setChecksums
Set the checksums.- Parameters:
checksums- the new checksums
-
getContentDate
Returns the contentDate.- Returns:
- contentDate
-
setContentDate
Set the contentDate.- Parameters:
contentDate- the new contentDate
-
getProductionType
Returns the productionType.- Returns:
- productionType
-
setProductionType
Set the productionType.- Parameters:
productionType- the new productionType
-
getAttributes
Returns the attributes.- Returns:
- attributes
-
setAttributes
Set the attributes.- Parameters:
attributes- the new attributes
-
hashCode
public int hashCode() -
equals
-
toString
-