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 ContentLabelServiceimplementation that communicates with Confluence remotely.- Since:
- 6.12.0
 
- 
- 
Field Summary- 
Fields inherited from class com.atlassian.confluence.rest.client.AbstractRemoteServiceprovider
 
- 
 - 
Constructor SummaryConstructors Constructor Description AbstractRemoteContentLabelService(AuthenticatedWebResourceProvider provider, com.google.common.util.concurrent.ListeningExecutorService executor)Deprecated.since 8.8AbstractRemoteContentLabelService(AuthenticatedWebResourceProvider provider, ExecutorService executor)
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description CompletionStage<PageResponse<Label>>addLabelsCompletionStage(ContentId contentId, Iterable<Label> labels)Adds the given labels to the specified contentcom.atlassian.util.concurrent.Promise<PageResponse<Label>>getLabels(ContentId contentId, Collection<Label.Prefix> prefixes, PageRequest request)Deprecated.since 8.7.abstract 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 namespacesCompletionStage<Void>removeLabelCompletionStage(ContentId contentId, Label label)Remove a label with from the specified contentContentLabelService.Validatorvalidator()Remote validation is not currently supported, this method exists to satisfy the RemoteProxyCreator- 
Methods inherited from class com.atlassian.confluence.rest.client.AbstractRemoteServiceaddExpansions, addPageRequest, addPageRequestParams, deleteCompletionStage, deleteCompletionStage, deleteFuture, deleteFuture, getCompletionStage, getCompletionStageGenericCollection, getCompletionStageMap, getCompletionStageMapOfPageResponses, getCompletionStageOptional, getCompletionStagePageResponseList, getCompletionStageSearchPageResponseList, getExecutor, getFuture, getFutureGenericCollection, getFutureMap, getFutureMapOfPageResponses, getFutureOption, getFutureOptional, getFuturePageResponseList, newExperimentalRestWebResource, newRestWebResource, postCompletionStage, postCompletionStage, postCompletionStage, postCompletionStageToPageResponse, postFuture, postFuture, postFuture, postFutureToPageResponse, postVoidCompletionStage, putCompletionStage, putFuture
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface com.atlassian.confluence.rest.client.RemoteContentLabelServiceaddLabels, removeLabel, removeLabel
 
- 
 
- 
- 
- 
Constructor Detail- 
AbstractRemoteContentLabelServicepublic AbstractRemoteContentLabelService(AuthenticatedWebResourceProvider provider, ExecutorService executor) - Since:
- 8.8
 
 - 
AbstractRemoteContentLabelService@Deprecated public AbstractRemoteContentLabelService(AuthenticatedWebResourceProvider provider, com.google.common.util.concurrent.ListeningExecutorService executor) Deprecated.since 8.8
 
- 
 - 
Method Detail- 
getLabels@Deprecated public com.atlassian.util.concurrent.Promise<PageResponse<Label>> getLabels(ContentId contentId, Collection<Label.Prefix> prefixes, PageRequest request) throws NotFoundException Deprecated.since 8.7. UsegetLabelsCompletionStage(ContentId, Collection, PageRequest)instead.Description copied from interface:RemoteContentLabelServiceGet the labels attached to a given piece of content in the given namespaces- Specified by:
- getLabelsin interface- RemoteContentLabelService
- Parameters:
- contentId- the id of the content to retrieve
- Throws:
- NotFoundException- if the content does not exist, or is not viewable by the user
 
 - 
getLabelsCompletionStagepublic 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 interface- RemoteContentLabelService
- Parameters:
- contentId- the id of the content to retrieve
 
 - 
addLabelsCompletionStagepublic 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 interface- RemoteContentLabelService
- Parameters:
- contentId- the id of the content to add labels to
- labels- 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
 
 - 
removeLabelCompletionStagepublic CompletionStage<Void> removeLabelCompletionStage(ContentId contentId, Label label) Description copied from interface:RemoteContentLabelServiceRemove a label with from the specified content- Specified by:
- removeLabelCompletionStagein interface- RemoteContentLabelService
- Parameters:
- contentId- the id of the content to remove the label from
- label- the label to remove
 
 - 
validatorpublic ContentLabelService.Validator validator() Remote validation is not currently supported, this method exists to satisfy the RemoteProxyCreator- Throws:
- UnsupportedOperationException
 
 
- 
 
-