Interface ContentPropertyService
-
- All Known Implementing Classes:
ContentPropertyServiceImpl
public interface ContentPropertyServiceProvides methods for creating, reading, updating and deleting ConfluenceJsonContentPropertyobjects attached toContentobjects.- Since:
- 5.6
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceContentPropertyService.ContentPropertyFetcherstatic interfaceContentPropertyService.ContentPropertyFinderstatic interfaceContentPropertyService.ParameterContentPropertyFinderstatic interfaceContentPropertyService.SingleContentPropertyFetcherstatic interfaceContentPropertyService.ValidatorProvides methods for validating the create, update and delete methods.
-
Field Summary
Fields Modifier and Type Field Description static intMAXIMUM_KEY_LENGTHstatic intMAXIMUM_PROPERTIES_PER_PAGE_REQUESTstatic intMAXIMUM_VALUE_LENGTH
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default 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()
-
-
-
Field Detail
-
MAXIMUM_KEY_LENGTH
static final int MAXIMUM_KEY_LENGTH
- See Also:
- Constant Field Values
-
MAXIMUM_VALUE_LENGTH
static final int MAXIMUM_VALUE_LENGTH
- See Also:
- Constant Field Values
-
MAXIMUM_PROPERTIES_PER_PAGE_REQUEST
static final int MAXIMUM_PROPERTIES_PER_PAGE_REQUEST
- See Also:
- Constant Field Values
-
-
Method Detail
-
create
JsonContentProperty create(JsonContentProperty newProperty) throws ServiceException
Create a content property.- Parameters:
newProperty- the property to create- Returns:
- the property created
- Throws:
ServiceException- if the property cannot be created
-
find
ContentPropertyService.ContentPropertyFinder find(Expansion... expansions)
Create 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.- Parameters:
expansions- properties to expand- Returns:
- the finder
-
update
JsonContentProperty update(JsonContentProperty property) throws ServiceException
Updates a content property.- Parameters:
property- the updatedJsonContentPropertywith metadata about the change- Returns:
- the updated content after being persisted
- Throws:
ServiceException
-
delete
void delete(JsonContentProperty property) throws ServiceException
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.
-
-