Class LabelService

java.lang.Object
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 Details

  • Method Details

    • 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