public class ContentPropertyServiceImpl extends Object implements ContentPropertyService
ContentPropertyService
. Contrast with the RemoteContentPropertyService.ContentPropertyService.ContentPropertyFetcher, ContentPropertyService.ContentPropertyFinder, ContentPropertyService.ParameterContentPropertyFinder, ContentPropertyService.SingleContentPropertyFetcher, ContentPropertyService.Validator
MAXIMUM_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)
ContentPropertyService
ContentPropertyService.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 ContentPropertyService
expansions
- properties to expandpublic JsonContentProperty create(JsonContentProperty newProperty) throws ServiceException
ContentPropertyService
create
in interface ContentPropertyService
newProperty
- the property to createServiceException
- if the property cannot be createdpublic JsonContentProperty update(JsonContentProperty property) throws ServiceException
ContentPropertyService
update
in interface ContentPropertyService
property
- the updated JsonContentProperty
with metadata about the changeServiceException
public void delete(JsonContentProperty property) throws ServiceException
ContentPropertyService
delete
in interface ContentPropertyService
property
- the content property to removeServiceException
- if the content property cannot be found, or cannot be deletedpublic ContentPropertyService.Validator validator()
validator
in interface ContentPropertyService
Copyright © 2003–2018 Atlassian. All rights reserved.