Interface ContentPropertyService
- All Known Implementing Classes:
ContentPropertyServiceImpl
,MockContentPropertyService
public interface ContentPropertyService
Provides methods for creating, reading, updating and deleting Confluence
JsonContentProperty
objects attached to
Content
objects.- Since:
- 5.6
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface
static interface
static interface
static interface
static interface
Provides methods for validating the create, update and delete methods. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
copyAllJsonContentProperties
(ContentSelector source, ContentSelector target) Copy all JsonContentProperty from one content to other content, default implementation do nothingcreate
(JsonContentProperty newProperty) Create a content property.void
delete
(JsonContentProperty property) Removes a content property from the system.Create aContentPropertyService.ContentPropertyFinder
for locating content, the expansions will be applied to each property that matches the finder.update
(JsonContentProperty property) Updates a content property.
-
Field Details
-
MAXIMUM_KEY_LENGTH
static final int MAXIMUM_KEY_LENGTH- See Also:
-
MAXIMUM_VALUE_LENGTH
static final int MAXIMUM_VALUE_LENGTH- See Also:
-
MAXIMUM_PROPERTIES_PER_PAGE_REQUEST
static final int MAXIMUM_PROPERTIES_PER_PAGE_REQUEST- See Also:
-
-
Method Details
-
create
Create a content property.- Parameters:
newProperty
- the property to create- Returns:
- the property created
- Throws:
ServiceException
- if the property cannot be created
-
find
Create aContentPropertyService.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.- Parameters:
expansions
- properties to expand- Returns:
- the finder
-
update
Updates a content property.- Parameters:
property
- the updatedJsonContentProperty
with metadata about the change- Returns:
- the updated content after being persisted
- Throws:
ServiceException
-
delete
Removes a content property from the system.- Parameters:
property
- the content property to remove- Throws:
ServiceException
- if the content property cannot be found, or cannot be deleted
-
copyAllJsonContentProperties
default void copyAllJsonContentProperties(ContentSelector source, ContentSelector target) throws ServiceException Copy all JsonContentProperty from one content to other content, default implementation do nothing- Parameters:
source
- Content Selector of Content want to copy fromtarget
- Content Selector of Content want to copy to- Throws:
ServiceException
- Since:
- 7.19.6
-
validator
ContentPropertyService.Validator validator()- Returns:
- the validator view of the ContentPropertyService.
-