public final class ExternalObjectResourceHelper extends Object
Modifier and Type | Method and Description |
---|---|
static void |
addOrUpdateExternalObjectResources(ExternalObjectResource[] externalObjectResources,
Long topicId,
boolean onlyAdd)
Add or update external object resources.
|
public static void addOrUpdateExternalObjectResources(ExternalObjectResource[] externalObjectResources, Long topicId, boolean onlyAdd) throws BlogAccessException, NotFoundException, AuthorizationException, ExternalObjectAlreadyAssignedException, TooManyExternalObjectsPerTopicException, ExternalSystemNotConfiguredException
externalObjectResources
- the external object resources.topicId
- the identifier of the topic.onlyAdd
- only add the external object and not checks for existing external objects.BlogAccessException
- the topic can not accessed.NotFoundException
- external object was not found.AuthorizationException
- user is not manager to set external object.ExternalObjectAlreadyAssignedException
- in case the topic is already assignedExternalSystemNotConfiguredException
TooManyExternalObjectsPerTopicException
Copyright © 2019 Communote team. All rights reserved.