Class TLfnProduct

java.lang.Object
com.luciad.fusion.platform.model.TLfnProduct

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.

Since:
2021.0
  • Method Details

    • getId

      public String getId()
      Returns the identifier of the product. The 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.

      Returns:
      the identifier of the data.
    • getTitle

      public String getTitle()
      Returns the human-readable title of the product.
      Returns:
      the title of the product
    • getName

      public String 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

      public String getAbstractText()
      Returns the abstract text describing the product.
      Returns:
      the abstract text describing the product
    • getKeywords

      public Set<String> getKeywords()
      Returns the list of keywords associated with the product.
      Returns:
      the keywords associated with the product
    • getCreationTime

      public ZonedDateTime getCreationTime()
      Returns the date and time when the product was created.
      Returns:
      date and time the product was created
    • getCreatedBy

      public TLfnUser getCreatedBy()
      Returns the user who created the product.
      Returns:
      the user who created the product
      Since:
      2022.1
    • getUpdateTime

      public ZonedDateTime getUpdateTime()
      Returns the date and time when the product was last updated. Initially, this will be the same as getCreationTime().
      Returns:
      date and time the product was last updated
    • getUpdatedBy

      public TLfnUser getUpdatedBy()
      Returns the user who last updated the product.
      Returns:
      the user who last updated the product
      Since:
      2022.1
    • getWGS84Bounds

      public ILcdBounds 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

      public ELfnProductType 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

      public Long 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

      public boolean equals(Object aO)
      Indicates whether some other object is "equal to" this TLfnProduct. If the other object is also an TLfnProduct, the product ids will be compared, false is returned otherwise.
      Overrides:
      equals in class Object
      Returns:
      {true} is the other object is equal to this job, false otherwise.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object