Class DataLayerHome


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

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static DataLayer create​(DataLayer dataLayer)
      Create an instance of the dataLayer class
      static java.util.Optional<DataLayer> findByPrimaryKey​(int nKey)
      Returns an instance of a dataLayer whose identifier is specified in parameter
      static java.util.Optional<DataLayer> findBySolrTag​(java.lang.String strSolrTag)
      Returns an instance of a dataLayer whose identifier is specified in parameter
      static java.util.Optional<DataLayer> findDataLayerFromMapId​(int nKey, boolean editable, boolean inclusion, boolean exclusion)
      Returns an instance of a dataLayer whose is editable for a specific map
      static java.util.List<DataLayer> getDataLayersList()
      Load the data of all the dataLayer objects and returns them as a list
      static java.util.List<DataLayer> getDataLayersListByIds​(java.util.List<java.lang.Integer> listIds)
      Load the data of all the avant objects and returns them as a list
      static java.util.List<DataLayer> getDataLayersListWFS​(int nMapId)
      Load the data of all the dataLayer objects with WFS source and returns them as a list
      static fr.paris.lutece.util.ReferenceList getDataLayersReferenceList()
      Load the data of all the dataLayer objects and returns them as a referenceList
      static java.util.List<java.lang.Integer> getIdDataLayersList()
      Load the id of all the dataLayer objects and returns them as a list
      static void remove​(int nKey)
      Remove the dataLayer whose identifier is specified in parameter
      static DataLayer update​(DataLayer dataLayer)
      Update of the dataLayer which is specified in parameter
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • 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 java.util.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 java.util.Optional<DataLayer> findBySolrTag​(java.lang.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 java.util.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 java.util.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 java.util.List<java.lang.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 java.util.List<DataLayer> getDataLayersListByIds​(java.util.List<java.lang.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 java.util.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