Class DataLayerHome

java.lang.Object
fr.paris.lutece.plugins.carto.business.DataLayerHome

public final class DataLayerHome extends Object
This class provides instances management methods (create, find, ...) for DataLayer objects
  • Method Details

    • create

      public static DataLayer create(DataLayer dataLayer)
      Create an instance of the dataLayer class
      Parameters:
      dataLayer - The instance of the DataLayer which contains the informations to store
      Returns:
      The instance of dataLayer which has been created with its primary key.
    • update

      public static DataLayer update(DataLayer dataLayer)
      Update of the dataLayer which is specified in parameter
      Parameters:
      dataLayer - The instance of the DataLayer which contains the data to store
      Returns:
      The instance of the dataLayer which has been updated
    • remove

      public static void remove(int nKey)
      Remove the dataLayer whose identifier is specified in parameter
      Parameters:
      nKey - The dataLayer Id
    • findByPrimaryKey

      public static Optional<DataLayer> findByPrimaryKey(int nKey)
      Returns an instance of a dataLayer whose identifier is specified in parameter
      Parameters:
      nKey - The dataLayer primary key
      Returns:
      an instance of DataLayer
    • findBySolrTag

      public static Optional<DataLayer> findBySolrTag(String strSolrTag)
      Returns an instance of a dataLayer whose identifier is specified in parameter
      Parameters:
      nKey - The dataLayer primary key
      Returns:
      an instance of DataLayer
    • getDataLayersList

      public static List<DataLayer> getDataLayersList()
      Load the data of all the dataLayer objects and returns them as a list
      Returns:
      the list which contains the data of all the dataLayer objects
    • getDataLayersListWFS

      public static List<DataLayer> getDataLayersListWFS(int nMapId)
      Load the data of all the dataLayer objects with WFS source and returns them as a list
      Returns:
      the list which contains the data of all the dataLayer objects
    • getIdDataLayersList

      public static List<Integer> getIdDataLayersList()
      Load the id of all the dataLayer objects and returns them as a list
      Returns:
      the list which contains the id of all the dataLayer objects
    • getDataLayersReferenceList

      public static fr.paris.lutece.util.ReferenceList getDataLayersReferenceList()
      Load the data of all the dataLayer objects and returns them as a referenceList
      Returns:
      the referenceList which contains the data of all the dataLayer objects
    • getDataLayersListByIds

      public static List<DataLayer> getDataLayersListByIds(List<Integer> listIds)
      Load the data of all the avant objects and returns them as a list
      Parameters:
      listIds - liste of ids
      Returns:
      the list which contains the data of all the avant objects
    • findDataLayerFromMapId

      public static Optional<DataLayer> findDataLayerFromMapId(int nKey, boolean editable, boolean inclusion, boolean exclusion)
      Returns an instance of a dataLayer whose is editable for a specific map
      Parameters:
      nKey - The MapTemplate primary key
      Returns:
      an instance of DataLayer