Class TLfnService
Represents a service that is available in LuciadFusion Studio.
A service makes geospatial data available to clients. Clients send requests to the endpoint path of the service.
Only one service exists for a given type and name. A client uses the type and name to specify which service it wants to connect to.
The type of the service determines the protocol on how the geospatial data is made available to clients. Some examples are: WMS, WMTS, WCS, WFS.
Implement ILfnServiceTypeConfiguration
to add your own service type to LuciadFusion.
Use the TLfnServiceRepository
to query the services available in LuciadFusion Studio.
Use the TLfnProductRepository
to query the products published in a service.
- Since:
- 2021.0
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Indicates whether some other object is "equal to" thisTLfnService
.Returns the abstract text describing the service.Returns the user who created this service.Returns the date and time when the service was created.getId()
Returns the identifier of the service.Returns the set of keywords associated with the service.getName()
Returns the machine-readable name of the service.Returns the date and time the service was last started.Returns the current status of the service.getTitle()
Returns the human-readable title of the service.getType()
Returns the service type.Returns the user who last updated this service.Returns the date and time when the service was last updated.Returns the version of the service.int
hashCode()
toString()
-
Method Details
-
getId
Returns the identifier of the service. Theid
is unique among all service.Use
id
to look up information related to a certain service. For example, use theid
of aTLfnService
to find theTLfnProduct
resources published in that service using theTLfnProductRepository.findByServiceId(String)
method.- Returns:
- the identifier of the data.
-
getTitle
Returns the human-readable title of the service.- Returns:
- the title of the service
-
getName
Returns the machine-readable name of the service. Only one service exists for a given type and name.- Returns:
- the name of the service
-
getType
Returns the service type. Example:wms
for a WMS service.- Returns:
- the service type
-
getAbstractText
Returns the abstract text describing the service.- Returns:
- the abstract text describing the service
-
getKeywords
Returns the set of keywords associated with the service.- Returns:
- the keywords associated with the service
-
getStatus
Returns the current status of the service.- Returns:
- the current status of the service
-
getCreatedBy
Returns the user who created this service.- Returns:
- the
TLfnUser
who created this service - Since:
- 2022.1
-
getUpdatedBy
Returns the user who last updated this service.- Returns:
- the
TLfnUser
who last updated this service - Since:
- 2022.1
-
getCreationTime
Returns the date and time when the service was created.- Returns:
- date and time the service was created
-
getUpdateTime
Returns the date and time when the service was last updated. This is nevernull
.- Returns:
- date and time the service was last updated
-
getStartedTime
Returns the date and time the service was last started. This returnsnull
if the service has never been started yet.- Returns:
- the date and time the service was last started
-
getVersion
Returns the version of the service.The version is increased every time a change is made to the service, such as updating the title or adding a product to the service. The version can be used to determine if cache information related to the service needs to be invalidated. Store the version when the cache is created and check if the version has increased when accessing the cache.
Certain services, such as WMS and WFS services, advertise the version as the update sequence number in the capabilities of the service.
- Returns:
- the version of the service
-
equals
Indicates whether some other object is "equal to" thisTLfnService
. If the other object is also anTLfnService
, the service ids will be compared,false
is returned otherwise. -
hashCode
public int hashCode() -
toString
-