Class InMemorySpacePropertyService
java.lang.Object
com.atlassian.confluence.impl.retention.InMemorySpacePropertyService
- All Implemented Interfaces:
SpacePropertyService
Backed by a
Set, to be used in integration tests in lieu of the real SpacePropertyService-
Nested Class Summary
Nested classes/interfaces inherited from interface com.atlassian.confluence.api.service.content.SpacePropertyService
SpacePropertyService.SpacePropertyFinder, SpacePropertyService.Validator -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate(JsonSpaceProperty newProperty) Create a content property.voiddelete(JsonSpaceProperty toDelete) 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.
-
Constructor Details
-
InMemorySpacePropertyService
public InMemorySpacePropertyService()
-
-
Method Details
-
create
Description copied from interface:SpacePropertyServiceCreate a content property.- Specified by:
createin interfaceSpacePropertyService- Parameters:
newProperty- the property to create- Returns:
- the property created
- Throws:
ServiceException- if the property cannot be created
-
find
Description copied from interface:SpacePropertyServiceCreate 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);- Specified by:
findin interfaceSpacePropertyService- Parameters:
expansions- properties to expand- Returns:
- the finder
-
update
Description copied from interface:SpacePropertyServiceUpdates a space property.- Specified by:
updatein interfaceSpacePropertyService- Parameters:
property- the updatedJsonSpacePropertywith metadata about the change- Returns:
- the updated space property after being persisted
-
delete
Description copied from interface:SpacePropertyServiceRemoves a space property from the system.- Specified by:
deletein interfaceSpacePropertyService- Parameters:
toDelete- the space property to remove
-
validator
- Specified by:
validatorin interfaceSpacePropertyService- Returns:
- the validator view of the SpacePropertyService.
-