public class SpacePropertyServiceImpl extends Object implements SpacePropertyService
SpacePropertyService. Contrast with the RemoteSpacePropertyService.SpacePropertyService.SpacePropertyFinder, SpacePropertyService.Validator| Constructor and Description |
|---|
SpacePropertyServiceImpl(CustomContentManager customContentManager,
StorageJsonPropertyManager storageContentPropertyManager,
JsonPropertyFactory jsonPropertyFactory,
SpacePropertyService.Validator validator,
SpacePropertyFinderFactory finderFactory) |
| Modifier and Type | Method and 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 a
SpacePropertyService.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() |
public SpacePropertyServiceImpl(CustomContentManager customContentManager, StorageJsonPropertyManager storageContentPropertyManager, JsonPropertyFactory jsonPropertyFactory, SpacePropertyService.Validator validator, SpacePropertyFinderFactory finderFactory)
public JsonSpaceProperty create(JsonSpaceProperty newProperty) throws ServiceException
SpacePropertyServicecreate in interface SpacePropertyServicenewProperty - the property to createServiceException - if the property cannot be createdpublic SpacePropertyService.SpacePropertyFinder find(Expansion... expansions)
SpacePropertyServiceSpacePropertyService.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);
find in interface SpacePropertyServiceexpansions - properties to expandpublic JsonSpaceProperty update(JsonSpaceProperty property)
SpacePropertyServiceupdate in interface SpacePropertyServiceproperty - the updated JsonSpaceProperty with metadata about the changepublic void delete(JsonSpaceProperty property)
SpacePropertyServicedelete in interface SpacePropertyServiceproperty - the space property to removepublic SpacePropertyService.Validator validator()
validator in interface SpacePropertyServiceCopyright © 2003–2021 Atlassian. All rights reserved.