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.void
delete
(JsonSpaceProperty property) Removes a space property from the system.Create aSpacePropertyService.SpacePropertyFinder
for 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:SpacePropertyService
Create a content property.- Specified by:
create
in interfaceSpacePropertyService
- Parameters:
newProperty
- the property to create- Returns:
- the property created
- Throws:
ServiceException
- if the property cannot be created
-
find
Description copied from interface:SpacePropertyService
Create aSpacePropertyService.SpacePropertyFinder
for 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:
find
in interfaceSpacePropertyService
- Parameters:
expansions
- properties to expand- Returns:
- the finder
-
update
Description copied from interface:SpacePropertyService
Updates a space property.- Specified by:
update
in interfaceSpacePropertyService
- Parameters:
property
- the updatedJsonSpaceProperty
with metadata about the change- Returns:
- the updated space property after being persisted
-
delete
Description copied from interface:SpacePropertyService
Removes a space property from the system.- Specified by:
delete
in interfaceSpacePropertyService
- Parameters:
property
- the space property to remove
-
validator
- Specified by:
validator
in interfaceSpacePropertyService
- Returns:
- the validator view of the SpacePropertyService.
-