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 |
---|---|
void |
copyAllJsonContentProperties(ContentSelector source,
ContentSelector target)
Copy all JsonContentProperty from one content to other content, default implementation do nothing
|
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 void copyAllJsonContentProperties(ContentSelector source, ContentSelector target) throws ServiceException
ContentPropertyService
copyAllJsonContentProperties
in interface ContentPropertyService
source
- Content Selector of Content want to copy fromtarget
- Content Selector of Content want to copy toServiceException
public ContentPropertyService.Validator validator()
validator
in interface ContentPropertyService
Copyright © 2003–2023 Atlassian. All rights reserved.
View cookie preferences