public final class TLfnService extends Object
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.
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object aO)
Indicates whether some other object is "equal to" this
TLfnService . |
String |
getAbstractText()
Returns the abstract text describing the service.
|
TLfnUser |
getCreatedBy()
Returns the user who created this service.
|
ZonedDateTime |
getCreationTime()
Returns the date and time when the service was created.
|
String |
getId()
Returns the identifier of the service.
|
List<String> |
getKeywords()
Returns the list of keywords associated with the service.
|
String |
getName()
Returns the machine-readable name of the service.
|
ZonedDateTime |
getStartedTime()
Returns the date and time the service was last started.
|
ELfnServiceStatus |
getStatus()
Returns the current status of the service.
|
String |
getTitle()
Returns the human-readable title of the service.
|
String |
getType()
Returns the service type.
|
TLfnUser |
getUpdatedBy()
Returns the user who last updated this service.
|
ZonedDateTime |
getUpdateTime()
Returns the date and time when the service was last updated.
|
Long |
getVersion()
Returns the version of the service.
|
int |
hashCode() |
String |
toString() |
public String getId()
id
is unique among all service.
Use id
to look up information related to a certain service.
For example, use the id
of a TLfnService
to find the TLfnProduct
resources published in that service
using the TLfnProductRepository.findByServiceId(String)
method.
public String getTitle()
public String getName()
public String getType()
wms
for a WMS service.public String getAbstractText()
public List<String> getKeywords()
public ELfnServiceStatus getStatus()
public TLfnUser getCreatedBy()
TLfnUser
who created this servicepublic TLfnUser getUpdatedBy()
TLfnUser
who last updated this servicepublic ZonedDateTime getCreationTime()
public ZonedDateTime getUpdateTime()
null
.public ZonedDateTime getStartedTime()
null
if the service has never been started yet.public Long getVersion()
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.
public boolean equals(Object aO)
TLfnService
.
If the other object is also an TLfnService
, the service ids will be compared,
false
is returned otherwise.