Class DataLayerHome
java.lang.Object
fr.paris.lutece.plugins.carto.business.DataLayerHome
This class provides instances management methods (create, find, ...) for DataLayer objects
-
Method Summary
Modifier and TypeMethodDescriptionstatic DataLayerCreate an instance of the dataLayer classfindByPrimaryKey(int nKey) Returns an instance of a dataLayer whose identifier is specified in parameterfindBySolrTag(String strSolrTag) Returns an instance of a dataLayer whose identifier is specified in parameterfindDataLayerFromMapId(int nKey, boolean editable, boolean inclusion, boolean exclusion) Returns an instance of a dataLayer whose is editable for a specific mapLoad the data of all the dataLayer objects and returns them as a listgetDataLayersListByIds(List<Integer> listIds) Load the data of all the avant objects and returns them as a listgetDataLayersListWFS(int nMapId) Load the data of all the dataLayer objects with WFS source and returns them as a liststatic fr.paris.lutece.util.ReferenceListLoad the data of all the dataLayer objects and returns them as a referenceListLoad the id of all the dataLayer objects and returns them as a liststatic voidremove(int nKey) Remove the dataLayer whose identifier is specified in parameterstatic DataLayerUpdate of the dataLayer which is specified in parameter
-
Method Details
-
create
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
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
Returns an instance of a dataLayer whose identifier is specified in parameter- Parameters:
nKey- The dataLayer primary key- Returns:
- an instance of DataLayer
-
findBySolrTag
Returns an instance of a dataLayer whose identifier is specified in parameter- Parameters:
nKey- The dataLayer primary key- Returns:
- an instance of 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
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
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
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
-