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
SpacePropertyService
create
in interface SpacePropertyService
newProperty
- the property to createServiceException
- if the property cannot be createdpublic SpacePropertyService.SpacePropertyFinder find(Expansion... expansions)
SpacePropertyService
SpacePropertyService.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 SpacePropertyService
expansions
- properties to expandpublic JsonSpaceProperty update(JsonSpaceProperty property)
SpacePropertyService
update
in interface SpacePropertyService
property
- the updated JsonSpaceProperty
with metadata about the changepublic void delete(JsonSpaceProperty property)
SpacePropertyService
delete
in interface SpacePropertyService
property
- the space property to removepublic SpacePropertyService.Validator validator()
validator
in interface SpacePropertyService
Copyright © 2003–2017 Atlassian. All rights reserved.