Class RemoteContentPropertyServiceImpl
- java.lang.Object
-
- com.atlassian.confluence.rest.client.AbstractRemoteService<ContentPropertyService>
-
- com.atlassian.confluence.rest.client.RemoteContentPropertyServiceImpl
-
- All Implemented Interfaces:
RemoteContentPropertyService
public class RemoteContentPropertyServiceImpl extends AbstractRemoteService<ContentPropertyService> implements RemoteContentPropertyService
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
RemoteContentPropertyServiceImpl.RemoteContentPropertyFinderImpl
-
Nested classes/interfaces inherited from interface com.atlassian.confluence.rest.client.RemoteContentPropertyService
RemoteContentPropertyService.RemoteContentPropertyFetcher, RemoteContentPropertyService.RemoteContentPropertyFinder, RemoteContentPropertyService.RemoteParameterContentPropertyFinder, RemoteContentPropertyService.RemoteSingleContentPropertyFetcher, RemoteContentPropertyService.RemoteValidator
-
-
Field Summary
-
Fields inherited from class com.atlassian.confluence.rest.client.AbstractRemoteService
provider
-
-
Constructor Summary
Constructors Constructor Description RemoteContentPropertyServiceImpl(AuthenticatedWebResourceProvider provider, com.google.common.util.concurrent.ListeningExecutorService executor)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description com.atlassian.util.concurrent.Promise<JsonContentProperty>
create(JsonContentProperty newProperty)
Deprecated.since 7.0.1.CompletionStage<JsonContentProperty>
createCompletionStage(JsonContentProperty newProperty)
Create a content property.com.atlassian.util.concurrent.Promise<Void>
delete(JsonContentProperty property)
Deprecated.since 7.0.1.CompletionStage<Void>
deleteCompletionStage(JsonContentProperty property)
Removes a content property from the system.RemoteContentPropertyService.RemoteContentPropertyFinder
find(Expansion... expansions)
com.atlassian.util.concurrent.Promise<JsonContentProperty>
update(JsonContentProperty property)
Deprecated.since 7.0.1.CompletionStage<JsonContentProperty>
updateCompletionStage(JsonContentProperty property)
Updates a content property.RemoteContentPropertyService.RemoteValidator
validator()
-
Methods inherited from class com.atlassian.confluence.rest.client.AbstractRemoteService
addExpansions, addPageRequest, addPageRequestParams, deleteCompletionStage, deleteCompletionStage, deleteFuture, deleteFuture, getCompletionStage, getCompletionStageGenericCollection, getCompletionStageMap, getCompletionStageMapOfPageResponses, getCompletionStageOptional, getCompletionStagePageResponseList, getCompletionStageSearchPageResponseList, getExecutor, getFuture, getFutureGenericCollection, getFutureMap, getFutureMapOfPageResponses, getFutureOption, getFuturePageResponseList, newExperimentalRestWebResource, newRestWebResource, postCompletionStage, postCompletionStage, postCompletionStage, postCompletionStageToPageResponse, postFuture, postFuture, postFuture, postFutureToPageResponse, postVoidCompletionStage, putCompletionStage, putFuture
-
-
-
-
Constructor Detail
-
RemoteContentPropertyServiceImpl
public RemoteContentPropertyServiceImpl(AuthenticatedWebResourceProvider provider, com.google.common.util.concurrent.ListeningExecutorService executor)
-
-
Method Detail
-
find
public RemoteContentPropertyService.RemoteContentPropertyFinder find(Expansion... expansions)
- Specified by:
find
in interfaceRemoteContentPropertyService
-
create
@Deprecated public com.atlassian.util.concurrent.Promise<JsonContentProperty> create(JsonContentProperty newProperty)
Deprecated.since 7.0.1. UsecreateCompletionStage(JsonContentProperty)
instead.Description copied from interface:RemoteContentPropertyService
Create a content property.- Specified by:
create
in interfaceRemoteContentPropertyService
- Parameters:
newProperty
- the content property to create- Returns:
- the content property created
-
update
@Deprecated public com.atlassian.util.concurrent.Promise<JsonContentProperty> update(JsonContentProperty property)
Deprecated.since 7.0.1. UseupdateCompletionStage(JsonContentProperty)
instead.Description copied from interface:RemoteContentPropertyService
Updates a content property.- Specified by:
update
in interfaceRemoteContentPropertyService
- Parameters:
property
- the updatedJsonContentProperty
with metadata about the change- Returns:
- the updated content after being persisted
-
delete
@Deprecated public com.atlassian.util.concurrent.Promise<Void> delete(JsonContentProperty property)
Deprecated.since 7.0.1. UsedeleteCompletionStage(JsonContentProperty)
instead.Description copied from interface:RemoteContentPropertyService
Removes a content property from the system.- Specified by:
delete
in interfaceRemoteContentPropertyService
- Parameters:
property
- the content property to remove
-
createCompletionStage
public CompletionStage<JsonContentProperty> createCompletionStage(JsonContentProperty newProperty)
Description copied from interface:RemoteContentPropertyService
Create a content property.- Specified by:
createCompletionStage
in interfaceRemoteContentPropertyService
- Parameters:
newProperty
- the content property to create- Returns:
- the content property created
-
updateCompletionStage
public CompletionStage<JsonContentProperty> updateCompletionStage(JsonContentProperty property)
Description copied from interface:RemoteContentPropertyService
Updates a content property.- Specified by:
updateCompletionStage
in interfaceRemoteContentPropertyService
- Parameters:
property
- the updatedJsonContentProperty
with metadata about the change- Returns:
- the updated content after being persisted
-
deleteCompletionStage
public CompletionStage<Void> deleteCompletionStage(JsonContentProperty property)
Description copied from interface:RemoteContentPropertyService
Removes a content property from the system.- Specified by:
deleteCompletionStage
in interfaceRemoteContentPropertyService
- Parameters:
property
- the content property to remove
-
validator
public RemoteContentPropertyService.RemoteValidator validator()
- Specified by:
validator
in interfaceRemoteContentPropertyService
-
-