Class TLfnProduct
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.
- Since:
- 2021.0
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Indicates whether some other object is "equal to" thisTLfnProduct
.Returns the abstract text describing the product.Returns the user who created the product.Returns the date and time when the product was created.getId()
Returns the identifier of the product.Returns the list of keywords associated with the product.getName()
Returns the machine-readable name of the product.getTitle()
Returns the human-readable title of the product.getType()
Returns the type of the product.Returns the user who last updated the product.Returns the date and time when the product was last updated.Returns the version of the product.Returns the bounds of the product in the WGS84 reference system.int
hashCode()
toString()
-
Method Details
-
getId
Returns the identifier of the product. Theid
is unique among all products.Use
id
to look up information related to a certain product. For example, use theid
of aTLfnProduct
to find theTLfnData
resources in that product using theTLfnDataRepository.findByProductId(String)
method.- Returns:
- the identifier of the data.
-
getTitle
Returns the human-readable title of the product.- Returns:
- the title of the product
-
getName
Returns the machine-readable name of the product.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.
- Returns:
- the name of the product
-
getAbstractText
Returns the abstract text describing the product.- Returns:
- the abstract text describing the product
-
getKeywords
Returns the list of keywords associated with the product.- Returns:
- the keywords associated with the product
-
getCreationTime
Returns the date and time when the product was created.- Returns:
- date and time the product was created
-
getCreatedBy
Returns the user who created the product.- Returns:
- the user who created the product
- Since:
- 2022.1
-
getUpdateTime
Returns the date and time when the product was last updated. Initially, this will be the same asgetCreationTime()
.- Returns:
- date and time the product was last updated
-
getUpdatedBy
Returns the user who last updated the product.- Returns:
- the user who last updated the product
- Since:
- 2022.1
-
getWGS84Bounds
Returns the bounds of the product in the WGS84 reference system. The bounds of the product is the union of the bounds of the data contained within a product.- Returns:
- the bounds of the product
-
getType
Returns the type of the product. The type is determined by the type of data contained in the product.The type is based on the categories of the data contained within the product (
TLfnData.getCategories()
).- Returns:
- the type of the product
-
getVersion
Returns the version of the product.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.
- Returns:
- the version of the product
-
equals
Indicates whether some other object is "equal to" thisTLfnProduct
. If the other object is also anTLfnProduct
, the product ids will be compared,false
is returned otherwise. -
hashCode
public int hashCode() -
toString
-