public final class TLfnProduct extends Object
Represents a product that is available in LuciadFusion Studio.
A product contains a collection of data that can be re-used among multiple services.
The type of the product (getType()
) depends on the data contained within the product.
Depending on the service type, a product is also used to logically group data that belongs together.
For example, a product published in a WMS service corresponds to a layer provided by the service to WMS clients.
Use the TLfnProductRepository
to query the products available in LuciadFusion Studio.
Use the TLfnDataRepository
to query the data contained in a product.
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object aO)
Indicates whether some other object is "equal to" this
TLfnProduct . |
String |
getAbstractText()
Returns the abstract text describing the product.
|
TLfnUser |
getCreatedBy()
Returns the user who created the product.
|
ZonedDateTime |
getCreationTime()
Returns the date and time when the product was created.
|
String |
getId()
Returns the identifier of the product.
|
List<String> |
getKeywords()
Returns the list of keywords associated with the product.
|
String |
getName()
Returns the machine-readable name of the product.
|
String |
getTitle()
Returns the human-readable title of the product.
|
ELfnProductType |
getType()
Returns the type of the product.
|
TLfnUser |
getUpdatedBy()
Returns the user who last updated the product.
|
ZonedDateTime |
getUpdateTime()
Returns the date and time when the product was last updated.
|
Long |
getVersion()
Returns the version of the product.
|
ILcdBounds |
getWGS84Bounds()
Returns the bounds of the product in the WGS84 reference system.
|
int |
hashCode() |
String |
toString() |
public String getId()
id
is unique among all products.
Use id
to look up information related to a certain product.
For example, use the id
of a TLfnProduct
to find the TLfnData
resources in that product
using the TLfnDataRepository.findByProductId(String)
method.
public String getTitle()
public String getName()
Use the product name to identify the group of data contained in the product to clients. For example, in a WMS service the product name corresponds to the layer name. In WCS the product name corresponds to the coverage identifier.
The name of a product is unique among the products in a single service.
public String getAbstractText()
public List<String> getKeywords()
public ZonedDateTime getCreationTime()
public TLfnUser getCreatedBy()
public ZonedDateTime getUpdateTime()
getCreationTime()
.public TLfnUser getUpdatedBy()
public ILcdBounds getWGS84Bounds()
public ELfnProductType getType()
The type is based on the categories of the data contained within the product (TLfnData.getCategories()
).
public Long getVersion()
The version is increased every time a change is made to the product, such as updating the title or adding data to the product. The version can be used to determine if cache information related to the product needs to be invalidated. Store the version when the cache is created and check if the version has increased when accessing the cache.
public boolean equals(Object aO)
TLfnProduct
.
If the other object is also an TLfnProduct
, the product ids will be compared,
false
is returned otherwise.