Interface SpacePropertyService
- All Known Implementing Classes:
- InMemorySpacePropertyService,- SpacePropertyServiceImpl
public interface SpacePropertyService
Provides methods for creating and reading Confluence
 
JsonSpaceProperty objects attached to
 Space objects.- Since:
- 5.9
- 
Nested Class SummaryNested ClassesModifier and TypeInterfaceDescriptionstatic interfacestatic interfaceProvides methods for validating the create, update and delete methods.
- 
Method SummaryModifier and TypeMethodDescriptioncreate(JsonSpaceProperty newProperty) Create a content property.voiddelete(JsonSpaceProperty property) Removes a space property from the system.Create aSpacePropertyService.SpacePropertyFinderfor locating properties, the expansions will be applied to each property that matches the finder.update(JsonSpaceProperty property) Updates a space property.
- 
Method Details- 
createCreate a content property.- Parameters:
- newProperty- the property to create
- Returns:
- the property created
- Throws:
- ServiceException- if the property cannot be created
 
- 
findCreate aSpacePropertyService.SpacePropertyFinderfor locating properties, the expansions will be applied to each property that matches the finder. JsonSpaceProperty objects will be retrieved by using the fetch methods on the returned SpacePropertyFinder. * For example:spaceService.find() .withSpaceKey("DEV") .fetchMany(new SimplePageRequest(0, 10);- Parameters:
- expansions- properties to expand
- Returns:
- the finder
 
- 
updateUpdates a space property.- Parameters:
- property- the updated- JsonSpacePropertywith metadata about the change
- Returns:
- the updated space property after being persisted
 
- 
deleteRemoves a space property from the system.- Parameters:
- property- the space property to remove
- Throws:
- ServiceException- if the space property cannot be found, or cannot be deleted
 
- 
validatorSpacePropertyService.Validator validator()- Returns:
- the validator view of the SpacePropertyService.
 
 
-