Class TLfnDataRepository
java.lang.Object
com.luciad.fusion.platform.repository.TLfnDataRepository
Repository to query the data available in LuciadFusion Studio.
LuciadFusion will create an implementation of the TLfnDataRepository
at startup and provide this as a bean in the Spring container.
Spring dependency injection can be used to obtain a reference to the repository in your code.
The most straightforward way is to use the org.springframework.beans.factory.annotation.Autowired
annotation in the constructor of your Spring component.
@Controller
public class MyController {
private final TLfnDataRepository fDataRepository;
@Autowired
public MyController(TLfnDataRepository aDataRepository) {
fDataRepository = aDataRepository;
}
}
- Since:
- 2021.0
- See Also:
-
Method Summary
-
Method Details
-
findById
Returns theTLfnData
instance for the specified id, when available. -
findByProductId
Searches for the data contained in the product with the given id. If the product with the given id doesn't exist or ifaProductId
isnull
, an empty list is returned.- Parameters:
aProductId
- the id of the product to search contained data for- Returns:
- the list of data contained in the product
-