Interface ProfileLabelService
public interface ProfileLabelService
A Service to manage Labels of any content of any type in eXo Platform.
-
Method Summary
Modifier and TypeMethodDescriptionvoidcreateLabel(ProfileLabel profileLabel) Creates a newProfileLabelobjectvoiddeleteLabel(long id) Delete aProfileLabelobjectfindLabelByObjectTypeAndObjectId(String objectType, String objectId) Retrieves aListofProfileLabelidentified by 'Object Type' and 'Object Id'findLabelByObjectTypeAndObjectIdAndLang(String objectType, String objectId, String language) Retrieves aProfileLabelidentified by 'Object Type', 'Object Id' and 'language'.voidupdateLabel(ProfileLabel profileLabel) Updates aProfileLabelobject
-
Method Details
-
findLabelByObjectTypeAndObjectIdAndLang
ProfileLabel findLabelByObjectTypeAndObjectIdAndLang(String objectType, String objectId, String language) Retrieves aProfileLabelidentified by 'Object Type', 'Object Id' and 'language'.- Parameters:
objectType-Stringthe type of object of the labelobjectId-Stringthe technical identifier of the object related to the labellanguage-Stringthe language of the label- Returns:
ProfileLabel
-
findLabelByObjectTypeAndObjectId
Retrieves aListofProfileLabelidentified by 'Object Type' and 'Object Id'- Parameters:
objectType-Stringthe type of object of the labelobjectId-Stringthe technical identifier of the object related to the label- Returns:
ListofProfileLabel
-
createLabel
void createLabel(ProfileLabel profileLabel) throws org.exoplatform.commons.ObjectAlreadyExistsException Creates a newProfileLabelobject- Parameters:
profileLabel-ProfileLabel- Throws:
org.exoplatform.commons.ObjectAlreadyExistsException
-
updateLabel
Updates aProfileLabelobject- Parameters:
profileLabel-ProfileLabel
-
deleteLabel
void deleteLabel(long id) Delete aProfileLabelobject- Parameters:
id-Longid of the label to delete
-