com.atlassian.confluence.plugins.contentproperty
Class ContentPropertyServiceImpl
java.lang.Object
com.atlassian.confluence.plugins.contentproperty.ContentPropertyServiceImpl
- All Implemented Interfaces:
- ContentPropertyService
public class ContentPropertyServiceImpl
- extends java.lang.Object
- implements ContentPropertyService
Server implementation of the ContentPropertyService
. Contrast with the RemoteContentPropertyService.
- Since:
- 5.6
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ContentPropertyServiceImpl
public ContentPropertyServiceImpl(CustomContentManager customContentManager,
ContentPropertyFactory contentPropertyFactory,
com.atlassian.confluence.plugins.contentproperty.StorageContentPropertyManager storageContentPropertyManager,
ContentPropertyFinderFactory contentPropertyFinderFactory,
ContentPropertyService.Validator validator)
find
public ContentPropertyService.ContentPropertyFinder find(Expansion... expansions)
- Description copied from interface:
ContentPropertyService
- Create a
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.
- Specified by:
find
in interface ContentPropertyService
- Parameters:
expansions
- properties to expand
- Returns:
- the finder
create
public JsonContentProperty create(JsonContentProperty newProperty)
throws ServiceException
- Description copied from interface:
ContentPropertyService
- Create a content property.
- Specified by:
create
in interface ContentPropertyService
- Parameters:
newProperty
- the content property to create
- Returns:
- the content property created
- Throws:
ServiceException
- if the content property cannot be created
update
public JsonContentProperty update(JsonContentProperty property)
throws ServiceException
- Description copied from interface:
ContentPropertyService
- Updates a content property.
- Specified by:
update
in interface ContentPropertyService
- Parameters:
property
- the updated JsonContentProperty
with 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:
ContentPropertyService
- Removes a content property from the system.
- Specified by:
delete
in interface ContentPropertyService
- Parameters:
property
- the content property to remove
- Throws:
ServiceException
- if the content property cannot be found, or cannot be deleted
validator
public ContentPropertyService.Validator validator()
- Specified by:
validator
in interface ContentPropertyService
- Returns:
- the validator view of the ContentPropertyService.
Copyright © 2003-2014 Atlassian. All Rights Reserved.