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 theSpacePropertyService
. 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
Constructors Constructor Description SpacePropertyServiceImpl(CustomContentManager customContentManager, StorageJsonPropertyManager storageContentPropertyManager, JsonPropertyFactory jsonPropertyFactory, SpacePropertyService.Validator validator, SpacePropertyFinderFactory finderFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JsonSpaceProperty
create(JsonSpaceProperty newProperty)
Create a content property.void
delete(JsonSpaceProperty property)
Removes a space property from the system.SpacePropertyService.SpacePropertyFinder
find(Expansion... expansions)
Create aSpacePropertyService.SpacePropertyFinder
for locating properties, the expansions will be applied to each property that matches the finder.JsonSpaceProperty
update(JsonSpaceProperty property)
Updates a space property.SpacePropertyService.Validator
validator()
-
-
-
Constructor Detail
-
SpacePropertyServiceImpl
@Autowired public SpacePropertyServiceImpl(CustomContentManager customContentManager, StorageJsonPropertyManager storageContentPropertyManager, JsonPropertyFactory jsonPropertyFactory, SpacePropertyService.Validator validator, SpacePropertyFinderFactory finderFactory)
-
-
Method Detail
-
create
public JsonSpaceProperty create(JsonSpaceProperty newProperty) throws ServiceException
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
public SpacePropertyService.SpacePropertyFinder find(Expansion... expansions)
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
public JsonSpaceProperty update(JsonSpaceProperty property)
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
public void delete(JsonSpaceProperty property)
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
public SpacePropertyService.Validator validator()
- Specified by:
validator
in interfaceSpacePropertyService
- Returns:
- the validator view of the SpacePropertyService.
-
-