public class ContentPropertyServiceImpl extends Object implements ContentPropertyService
ContentPropertyService. Contrast with the RemoteContentPropertyService.ContentPropertyService.ContentPropertyFetcher, ContentPropertyService.ContentPropertyFinder, ContentPropertyService.ParameterContentPropertyFinder, ContentPropertyService.SingleContentPropertyFetcher, ContentPropertyService.ValidatorMAXIMUM_KEY_LENGTH, MAXIMUM_PROPERTIES_PER_PAGE_REQUEST, MAXIMUM_VALUE_LENGTH| Constructor and Description |
|---|
ContentPropertyServiceImpl(CustomContentManager customContentManager,
JsonPropertyFactory jsonPropertyFactory,
StorageJsonPropertyManager storageContentPropertyManager,
ContentPropertyFinderFactory contentPropertyFinderFactory,
ContentPropertyService.Validator validator,
ConfluenceIndexer confluenceIndexer) |
| Modifier and Type | Method and Description |
|---|---|
JsonContentProperty |
create(JsonContentProperty newProperty)
Create a content property.
|
void |
delete(JsonContentProperty property)
Removes a content property from the system.
|
ContentPropertyService.ContentPropertyFinder |
find(Expansion... expansions)
Create a
ContentPropertyService.ContentPropertyFinder for locating content, the expansions will be applied to each property that
matches the finder. |
JsonContentProperty |
update(JsonContentProperty property)
Updates a content property.
|
ContentPropertyService.Validator |
validator() |
public ContentPropertyServiceImpl(CustomContentManager customContentManager, JsonPropertyFactory jsonPropertyFactory, StorageJsonPropertyManager storageContentPropertyManager, ContentPropertyFinderFactory contentPropertyFinderFactory, ContentPropertyService.Validator validator, ConfluenceIndexer confluenceIndexer)
public ContentPropertyService.ContentPropertyFinder find(Expansion... expansions)
ContentPropertyServiceContentPropertyService.ContentPropertyFinder for locating content, the expansions will be applied to each property that
matches the finder. JsonContentProperty objects will be retrieved by using the fetch methods on the returned
ContentPropertyFinder.find in interface ContentPropertyServiceexpansions - properties to expandpublic JsonContentProperty create(JsonContentProperty newProperty) throws ServiceException
ContentPropertyServicecreate in interface ContentPropertyServicenewProperty - the property to createServiceException - if the property cannot be createdpublic JsonContentProperty update(JsonContentProperty property) throws ServiceException
ContentPropertyServiceupdate in interface ContentPropertyServiceproperty - the updated JsonContentProperty with metadata about the changeServiceExceptionpublic void delete(JsonContentProperty property) throws ServiceException
ContentPropertyServicedelete in interface ContentPropertyServiceproperty - the content property to removeServiceException - if the content property cannot be found, or cannot be deletedpublic ContentPropertyService.Validator validator()
validator in interface ContentPropertyServiceCopyright © 2003–2022 Atlassian. All rights reserved.