public class TopicMessageHandlerUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static List<StringPropertyTO> |
extractPropertiesTO(StringProperty[] newProperties) |
static List<StringPropertyTO> |
extractPropertiesTO(StringProperty[] newProperties,
StoringPolicy propertiesExtractionPolicy)
extracts properties TOs, based on the specified extraction policy
|
static Set<TagTO> |
extractTagTOs(Tag[] newTags) |
static Set<TagTO> |
extractTagTOs(Tag[] newTags,
Set<Tag> existingTags,
StoringPolicy policy)
extracts tags according to the extraction policy
|
static void |
updateExternalObjects(Long topicId,
String externalSystemId,
ExternalObject[] newExternalObjects,
StoringPolicy policy,
ExternalObjectManagement externalObjectManagement)
Update the external objects of a topic according to the policy.
|
public static List<StringPropertyTO> extractPropertiesTO(StringProperty[] newProperties)
newProperties - new propertiespublic static List<StringPropertyTO> extractPropertiesTO(StringProperty[] newProperties, StoringPolicy propertiesExtractionPolicy)
newProperties - new propertiespropertiesExtractionPolicy - extraction policypublic static Set<TagTO> extractTagTOs(Tag[] newTags)
newTags - new tagspublic static Set<TagTO> extractTagTOs(Tag[] newTags, Set<Tag> existingTags, StoringPolicy policy)
newTags - new tagsexistingTags - existing tagspolicy - storing policypublic static void updateExternalObjects(Long topicId, String externalSystemId, ExternalObject[] newExternalObjects, StoringPolicy policy, ExternalObjectManagement externalObjectManagement) throws BlogAccessException, BlogNotFoundException, ExternalObjectAlreadyAssignedException, TooManyExternalObjectsPerTopicException, ExternalSystemNotConfiguredException
topicId - ID of the topicexternalSystemId - identifier of the external system of the external objectsnewExternalObjects - new external objects to assign or updatepolicy - the storing policy to use. Currently only SET_NEW and MERGE are supported.externalObjectManagement - the service for handling external objectsBlogAccessException - in case the current user is not manager of the topicBlogNotFoundException - in case the topic does not existExternalObjectAlreadyAssignedException - in case the external object is assigned to another blog than the provided oneExternalSystemNotConfiguredExceptionTooManyExternalObjectsPerTopicExceptionCopyright © 2019 Communote team. All rights reserved.