Class ContentPropertyServiceImpl
- java.lang.Object
-
- com.atlassian.confluence.plugins.contentproperty.ContentPropertyServiceImpl
-
- All Implemented Interfaces:
ContentPropertyService
@Component("contentPropertyService") public class ContentPropertyServiceImpl extends Object implements ContentPropertyServiceServer implementation of theContentPropertyService. Contrast with the RemoteContentPropertyService.- Since:
- 5.6
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.atlassian.confluence.api.service.content.ContentPropertyService
ContentPropertyService.ContentPropertyFetcher, ContentPropertyService.ContentPropertyFinder, ContentPropertyService.ParameterContentPropertyFinder, ContentPropertyService.SingleContentPropertyFetcher, ContentPropertyService.Validator
-
-
Field Summary
-
Fields inherited from interface com.atlassian.confluence.api.service.content.ContentPropertyService
MAXIMUM_KEY_LENGTH, MAXIMUM_PROPERTIES_PER_PAGE_REQUEST, MAXIMUM_VALUE_LENGTH
-
-
Constructor Summary
Constructors Constructor Description ContentPropertyServiceImpl(CustomContentManager customContentManager, JsonPropertyFactory jsonPropertyFactory, StorageJsonPropertyManager storageContentPropertyManager, ContentPropertyFinderFactory contentPropertyFinderFactory, ContentPropertyService.Validator validator, ConfluenceIndexer confluenceIndexer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcopyAllJsonContentProperties(ContentSelector source, ContentSelector target)Copy all JsonContentProperty from one content to other content, default implementation do nothingJsonContentPropertycreate(JsonContentProperty newProperty)Create a content property.voiddelete(JsonContentProperty property)Removes a content property from the system.ContentPropertyService.ContentPropertyFinderfind(Expansion... expansions)Create aContentPropertyService.ContentPropertyFinderfor locating content, the expansions will be applied to each property that matches the finder.JsonContentPropertyupdate(JsonContentProperty property)Updates a content property.ContentPropertyService.Validatorvalidator()
-
-
-
Constructor Detail
-
ContentPropertyServiceImpl
@Autowired public ContentPropertyServiceImpl(CustomContentManager customContentManager, JsonPropertyFactory jsonPropertyFactory, StorageJsonPropertyManager storageContentPropertyManager, ContentPropertyFinderFactory contentPropertyFinderFactory, ContentPropertyService.Validator validator, ConfluenceIndexer confluenceIndexer)
-
-
Method Detail
-
find
public ContentPropertyService.ContentPropertyFinder find(Expansion... expansions)
Description copied from interface:ContentPropertyServiceCreate aContentPropertyService.ContentPropertyFinderfor 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.- Specified by:
findin interfaceContentPropertyService- Parameters:
expansions- properties to expand- Returns:
- the finder
-
create
public JsonContentProperty create(JsonContentProperty newProperty) throws ServiceException
Description copied from interface:ContentPropertyServiceCreate a content property.- Specified by:
createin interfaceContentPropertyService- Parameters:
newProperty- the property to create- Returns:
- the property created
- Throws:
ServiceException- if the property cannot be created
-
update
public JsonContentProperty update(JsonContentProperty property) throws ServiceException
Description copied from interface:ContentPropertyServiceUpdates a content property.- Specified by:
updatein interfaceContentPropertyService- Parameters:
property- the updatedJsonContentPropertywith metadata about the change- Returns:
- the updated content after being persisted
- Throws:
ServiceException
-
delete
public void delete(JsonContentProperty property) throws ServiceException
Description copied from interface:ContentPropertyServiceRemoves a content property from the system.- Specified by:
deletein interfaceContentPropertyService- Parameters:
property- the content property to remove- Throws:
ServiceException- if the content property cannot be found, or cannot be deleted
-
copyAllJsonContentProperties
public void copyAllJsonContentProperties(ContentSelector source, ContentSelector target) throws ServiceException
Description copied from interface:ContentPropertyServiceCopy all JsonContentProperty from one content to other content, default implementation do nothing- Specified by:
copyAllJsonContentPropertiesin interfaceContentPropertyService- Parameters:
source- Content Selector of Content want to copy fromtarget- Content Selector of Content want to copy to- Throws:
ServiceException
-
validator
public ContentPropertyService.Validator validator()
- Specified by:
validatorin interfaceContentPropertyService- Returns:
- the validator view of the ContentPropertyService.
-
-