Class TLfnData
- Direct Known Subclasses:
TLfnEditableData
Since a single data represents a geospatial data set, it can represent multiple files. The type of the data describes what format the data is, whereas the categories gives the general categories that the data belongs to.
Use the TLfnDataRepository
to query the data available in LuciadFusion Studio.
Use getDataSource()
and pass it to the appropriate ILcdModelDecoder.decodeSource(ILcdDataSource)
to obtain the decoded model for this data.
- Since:
- 2021.0
-
Method Summary
Modifier and TypeMethodDescriptionReturns aTLfnEditableData
created based on the currentTLfnData
.boolean
Indicates whether some other object is "equal to" thisTLfnData
.Returns the abstract text describing the data.Returns the data categories that the data belongs to.Returns the date and time when the data was created.Returns the custom properties of the data.getCustomProperty
(String aCustomPropertyName) Returns the data source for the data.getId()
Returns the identifier of the data.Returns the set of keywords associated with the data.Returns the measure type codes for the data.Returns the mime type of the data.Returns the model reference corresponding to the coordinate reference system of the data,Optional.empty()
is returned if the reference could not be determined.Returns the multi-dimensional of the data.getTitle()
Returns the human-readable title of the data.getType()
Returns the type of this data.Returns the user that did the last update to the data.Returns the date and time when the data was last updated.Returns the version of the data.Returns the bounds of the data in the WGS84 reference system.int
hashCode()
toString()
-
Method Details
-
getId
Returns the identifier of the data. Theid
is unique among all data.- Returns:
- the identifier of the data.
-
getTitle
Returns the human-readable title of the data.- Returns:
- the title of the data
-
getType
Returns the type of this data. For example,SHP
for a shp data set. This corresponds toILcdModelDescriptor.getTypeName()
orTLcdModelMetadata.getFormat()
when the data has been decoded.- Returns:
- the type of this data
-
getCategories
Returns the data categories that the data belongs to.- Returns:
- the data categories belonging to the data
-
getMeasureTypeCodes
Returns the measure type codes for the data. It indicates the type of the unit of measure of the data. For weather data this can beTLcdISO19103MeasureTypeCodeExtension.TEMPERATURE
orTLcdISO19103MeasureTypeCodeExtension.PRESSURE
for example. If the set containsTLcdISO19103MeasureTypeCodeExtension.TERRAIN_HEIGHT
orTLcdISO19103MeasureTypeCodeExtension.ALTITUDE
, this indicates that the data item contains elevation data.- Returns:
- the measure type codes for the data
- Since:
- 2023.1
-
getMimeType
Returns the mime type of the data. Some examples areapplication/json
,application/xml
,image/tiff
.- Returns:
- the mime type
-
getCreationTime
Returns the date and time when the data was created. This is time when the data was added to LuciadFusion Studio, by either crawling, uploading or adding it.- Returns:
- the creation time of the data
-
getUpdateTime
Returns the date and time when the data was last updated.- Returns:
- the date and time when the data was last updated
-
getUpdatedBy
Returns the user that did the last update to the data.- Returns:
- the user that did the last update to the data
- Since:
- 2022.1
-
getWGS84Bounds
Returns the bounds of the data in the WGS84 reference system. If the bounds of the data cannot be transformed to the WGS84 reference system then this will returnnull
.- Returns:
- the bounds of the data
-
getAbstractText
Returns the abstract text describing the data.- Returns:
- the abstract text describing the data
-
getKeywords
Returns the set of keywords associated with the data.- Returns:
- the keywords associated with the product
-
getDataSource
Returns the data source for the data.Pass the data source to the appropriate
ILcdModelDecoder.decodeSource(ILcdDataSource)
to obtain the decoded model for this data.- Returns:
- the data source for the data
-
getModelReference
Returns the model reference corresponding to the coordinate reference system of the data,Optional.empty()
is returned if the reference could not be determined.- Returns:
- the model reference belonging to the data,
Optional.empty()
if the reference could not be determined
-
getMultiDimensional
Returns the multi-dimensional of the data. This returnsOptional.empty()
if the data is not multi-dimensional.- Returns:
- the multi-dimensional of the data,
Optional.empty()
if the data is not multi-dimensional
-
getCustomProperties
Returns the custom properties of the data. An empty set is returned if the data doesn't have custom properties.For performance reasons, it's possible that the custom properties are not prefetched in this object. In that case, calling this method results in an additional query to fetch the custom properties. Note that the custom properties might have been changed in the database between fetching the data object and calling this method.
- Returns:
- the custom properties of the data
- Since:
- 2022.1
-
getCustomProperty
Returns theTLfnCustomProperty
with the givenaCustomPropertyName
associated with thisTLfnData
. An emptyOptional
is returned if the data doesn't have a custom property with the givenaCustomPropertyName
.For performance reasons, it's possible that the custom properties are not prefetched in this object. In that case, calling this method results in an additional query to fetch the custom property.
- Parameters:
aCustomPropertyName
- Thename
of theTLfnCustomProperty
- Returns:
- an
Optional
containing theTLfnCustomProperty
- Throws:
TLfnIdentifiableResourceNotFoundException
- if there was noTLfnData
found with thisTLfnData
s id in theTLfnDataRepository
- Since:
- 2024.1
-
getVersion
Returns the version of the data.The version is increased every time the data is updated, such as re-crawling the data after changes. The version can be used to determine if cache information related to the data 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 data
-
cloneAsEditableData
Returns aTLfnEditableData
created based on the currentTLfnData
.- Returns:
- a
TLfnEditableData
- Throws:
org.springframework.security.access.AccessDeniedException
- if access control is enabled and the current thread's authenticated user does not have UPDATE permissions for thisTLfnData
- Since:
- 2024.1
-
equals
-
hashCode
public int hashCode() -
toString
-