Interface ProfileLabelService


public interface ProfileLabelService
A Service to manage Labels of any content of any type in eXo Platform.
  • Method Details

    • findLabelByObjectTypeAndObjectIdAndLang

      ProfileLabel findLabelByObjectTypeAndObjectIdAndLang(String objectType, String objectId, String language)
      Retrieves a ProfileLabel identified by 'Object Type', 'Object Id' and 'language'.
      Parameters:
      objectType - String the type of object of the label
      objectId - String the technical identifier of the object related to the label
      language - String the language of the label
      Returns:
      ProfileLabel
    • findLabelByObjectTypeAndObjectId

      List<ProfileLabel> findLabelByObjectTypeAndObjectId(String objectType, String objectId)
      Retrieves a List of ProfileLabel identified by 'Object Type' and 'Object Id'
      Parameters:
      objectType - String the type of object of the label
      objectId - String the technical identifier of the object related to the label
      Returns:
      List of ProfileLabel
    • createLabel

      void createLabel(ProfileLabel profileLabel) throws org.exoplatform.commons.ObjectAlreadyExistsException
      Creates a new ProfileLabel object
      Parameters:
      profileLabel - ProfileLabel
      Throws:
      org.exoplatform.commons.ObjectAlreadyExistsException
    • updateLabel

      void updateLabel(ProfileLabel profileLabel)
      Updates a ProfileLabel object
      Parameters:
      profileLabel - ProfileLabel
    • deleteLabel

      void deleteLabel(long id)
      Delete a ProfileLabel object
      Parameters:
      id - Long id of the label to delete