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 Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfacestatic interfaceProvides methods for validating the create, update and delete methods. -
Method Summary
Modifier 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
-
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 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
-
update
Updates a space property.- Parameters:
property- the updatedJsonSpacePropertywith metadata about the change- Returns:
- the updated space property after being persisted
-
delete
Removes 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
-
validator
SpacePropertyService.Validator validator()- Returns:
- the validator view of the SpacePropertyService.
-