Class SpacePropertyServiceImpl
- java.lang.Object
-
- com.atlassian.confluence.plugins.contentproperty.spaceproperty.SpacePropertyServiceImpl
-
- All Implemented Interfaces:
SpacePropertyService
@Component("spacePropertyService") public class SpacePropertyServiceImpl extends Object implements SpacePropertyServiceServer 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 JsonSpacePropertycreate(JsonSpaceProperty newProperty)Create a content property.voiddelete(JsonSpaceProperty property)Removes a space property from the system.SpacePropertyService.SpacePropertyFinderfind(Expansion... expansions)Create aSpacePropertyService.SpacePropertyFinderfor locating properties, the expansions will be applied to each property that matches the finder.JsonSpacePropertyupdate(JsonSpaceProperty property)Updates a space property.SpacePropertyService.Validatorvalidator()
-
-
-
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: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
public SpacePropertyService.SpacePropertyFinder find(Expansion... expansions)
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
public JsonSpaceProperty update(JsonSpaceProperty property)
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
public void delete(JsonSpaceProperty property)
Description copied from interface:SpacePropertyServiceRemoves a space property from the system.- Specified by:
deletein interfaceSpacePropertyService- Parameters:
property- the space property to remove
-
validator
public SpacePropertyService.Validator validator()
- Specified by:
validatorin interfaceSpacePropertyService- Returns:
- the validator view of the SpacePropertyService.
-
-