Class AbstractRemoteContentLabelService
java.lang.Object
com.atlassian.confluence.rest.client.AbstractRemoteService<ContentLabelService>
com.atlassian.confluence.rest.client.AbstractRemoteContentLabelService
- All Implemented Interfaces:
RemoteContentLabelService
- Direct Known Subclasses:
GraphQLRemoteContentLabelServiceImpl,RemoteContentLabelServiceImpl
public abstract class AbstractRemoteContentLabelService
extends AbstractRemoteService<ContentLabelService>
implements RemoteContentLabelService
ContentLabelService implementation that communicates with Confluence remotely.- Since:
- 9.0
-
Field Summary
Fields inherited from class com.atlassian.confluence.rest.client.AbstractRemoteService
provider -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractRemoteContentLabelService(AuthenticatedWebResourceProvider provider, ExecutorService executor) -
Method Summary
Modifier and TypeMethodDescriptionaddLabelsCompletionStage(ContentId contentId, Iterable<Label> labels) Adds the given labels to the specified contentabstract CompletionStage<PageResponse<Label>>getLabelsCompletionStage(ContentId contentId, Collection<Label.Prefix> prefixes, PageRequest request) Get the labels attached to a given piece of content in the given namespacesremoveLabelCompletionStage(ContentId contentId, Label label) Remove a label with from the specified contentRemote validation is not currently supported, this method exists to satisfy the RemoteProxyCreatorMethods inherited from class com.atlassian.confluence.rest.client.AbstractRemoteService
addExpansions, addPageRequest, addPageRequestParams, deleteCompletionStage, deleteCompletionStage, getCompletionStage, getCompletionStageGenericCollection, getCompletionStageMap, getCompletionStageMapOfGenericListResponse, getCompletionStageMapOfPageResponses, getCompletionStageOptional, getCompletionStagePageResponseList, getCompletionStageSearchPageResponseList, getExecutor, newExperimentalRestWebTarget, newWebTarget, postCompletionStage, postCompletionStage, postCompletionStage, postCompletionStageToPageResponse, postVoidCompletionStage, putCompletionStage, putVoidCompletionStageMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.confluence.rest.client.RemoteContentLabelService
getLabelsByDetail, removeLabelCompletionStage
-
Constructor Details
-
AbstractRemoteContentLabelService
protected AbstractRemoteContentLabelService(AuthenticatedWebResourceProvider provider, ExecutorService executor) - Since:
- 9.0
-
-
Method Details
-
getLabelsCompletionStage
public abstract CompletionStage<PageResponse<Label>> getLabelsCompletionStage(ContentId contentId, Collection<Label.Prefix> prefixes, PageRequest request) Description copied from interface:RemoteContentLabelServiceGet the labels attached to a given piece of content in the given namespaces- Specified by:
getLabelsCompletionStagein interfaceRemoteContentLabelService- Parameters:
contentId- the id of the content to retrieve
-
addLabelsCompletionStage
public CompletionStage<PageResponse<Label>> addLabelsCompletionStage(ContentId contentId, Iterable<Label> labels) throws ServiceException Description copied from interface:RemoteContentLabelServiceAdds the given labels to the specified content- Specified by:
addLabelsCompletionStagein interfaceRemoteContentLabelService- Parameters:
contentId- the id of the content to add labels tolabels- the label(s) that will be added- Returns:
- all the labels that are associated with the specified content
- Throws:
ServiceException- if at least one label is invalid. Provides an error message
-
removeLabelCompletionStage
Description copied from interface:RemoteContentLabelServiceRemove a label with from the specified content- Specified by:
removeLabelCompletionStagein interfaceRemoteContentLabelService- Parameters:
contentId- the id of the content to remove the label fromlabel- the label to remove
-
validator
Remote validation is not currently supported, this method exists to satisfy the RemoteProxyCreator- Throws:
UnsupportedOperationException
-