fr.paris.lutece.plugins.sitelabels.service
Class LabelService

java.lang.Object
  extended by fr.paris.lutece.plugins.sitelabels.service.LabelService

public final class LabelService
extends Object

This class provides instances management methods (create, find, ...) for Label objects


Field Summary
static String PREFIX
           
 
Method Summary
static Label create(Label label)
          Create an instance of the label class
static Label findByPrimaryKey(String strKey)
          Returns an instance of a label whose identifier is specified in parameter
static List<Label> getLabelsList()
          Load the data of all the label objects and returns them in form of a collection
static void remove(String strKey)
          Remove the label whose identifier is specified in parameter
static Label update(Label label)
          Update of the label which is specified in parameter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PREFIX

public static final 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(String strKey)
Remove the label whose identifier is specified in parameter

Parameters:
strKey - The Key

findByPrimaryKey

public static Label findByPrimaryKey(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 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


Copyright © 2014 Mairie de Paris. All Rights Reserved.