Class TLfnDataRepository

java.lang.Object
com.luciad.fusion.platform.repository.TLfnDataRepository

public final class TLfnDataRepository extends Object

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 Details

    • findById

      public Optional<TLfnData> findById(String aId)
      Returns the TLfnData instance for the specified id, when available.
      Parameters:
      aId - the id of the TLfnData
      Returns:
      the TLfnData instance for the specified id, when available. If the instance cannot be found, an empty optional is returned.
      Since:
      2024.1
    • findByProductId

      public List<TLfnData> findByProductId(String aProductId)
      Searches for the data contained in the product with the given id. If the product with the given id doesn't exist or if aProductId is null, 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