Class SpacePropertyServiceImpl
java.lang.Object
com.atlassian.confluence.plugins.contentproperty.spaceproperty.SpacePropertyServiceImpl
- All Implemented Interfaces:
SpacePropertyService
@Component("spacePropertyService")
public class SpacePropertyServiceImpl
extends Object
implements SpacePropertyService
Server implementation of the
SpacePropertyService. Contrast with the RemoteSpacePropertyService.- Since:
- 5.9
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.atlassian.confluence.api.service.content.SpacePropertyService
SpacePropertyService.SpacePropertyFinder, SpacePropertyService.Validator -
Constructor Summary
ConstructorsConstructorDescriptionSpacePropertyServiceImpl(CustomContentManager customContentManager, StorageJsonPropertyManager storageContentPropertyManager, JsonPropertyFactory jsonPropertyFactory, SpacePropertyService.Validator validator, SpacePropertyFinderFactory finderFactory) -
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.
-
Constructor Details
-
SpacePropertyServiceImpl
@Autowired public SpacePropertyServiceImpl(CustomContentManager customContentManager, StorageJsonPropertyManager storageContentPropertyManager, JsonPropertyFactory jsonPropertyFactory, SpacePropertyService.Validator validator, SpacePropertyFinderFactory finderFactory)
-
-
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:
property- the space property to remove
-
validator
- Specified by:
validatorin interfaceSpacePropertyService- Returns:
- the validator view of the SpacePropertyService.
-