Class LabelService
- java.lang.Object
-
- fr.paris.lutece.plugins.sitelabels.service.LabelService
-
public final class LabelService extends java.lang.ObjectThis class provides instances management methods (create, find, ...) for Label objects
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringPREFIX
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Labelcreate(Label label)Create an instance of the label classstatic LabelfindByPrimaryKey(java.lang.String strKey)Returns an instance of a label whose identifier is specified in parameterstatic java.util.List<Label>getLabelsList()Load the data of all the label objects and returns them in form of a collectionstatic voidremove(java.lang.String strKey)Remove the label whose identifier is specified in parameterstatic Labelupdate(Label label)Update of the label which is specified in parameter
-
-
-
Field Detail
-
PREFIX
public static final java.lang.String PREFIX
- See Also:
- Constant Field Values
-
-
Method Detail
-
create
public static Label create(Label label)
Create an instance of the label class- Parameters:
label- The instance of the Label which contains the informations to store- Returns:
- The instance of label which has been created with its primary key.
-
update
public static Label update(Label label)
Update of the label which is specified in parameter- Parameters:
label- The instance of the Label which contains the data to store- Returns:
- The instance of the label which has been updated
-
remove
public static void remove(java.lang.String strKey)
Remove the label whose identifier is specified in parameter- Parameters:
strKey- The Key
-
findByPrimaryKey
public static Label findByPrimaryKey(java.lang.String strKey)
Returns an instance of a label whose identifier is specified in parameter- Parameters:
strKey- The label primary key- Returns:
- an instance of Label
-
getLabelsList
public static java.util.List<Label> getLabelsList()
Load the data of all the label objects and returns them in form of a collection- Returns:
- the collection which contains the data of all the label objects
-
-