public interface ContentPropertyService
JsonContentProperty
objects attached to
Content
objects.Modifier and Type | Interface and Description |
---|---|
static interface |
ContentPropertyService.ContentPropertyFetcher |
static interface |
ContentPropertyService.ContentPropertyFinder |
static interface |
ContentPropertyService.ParameterContentPropertyFinder |
static interface |
ContentPropertyService.SingleContentPropertyFetcher |
static interface |
ContentPropertyService.Validator
Provides methods for validating the create, update and delete methods.
|
Modifier and Type | Field and Description |
---|---|
static int |
MAXIMUM_KEY_LENGTH |
static int |
MAXIMUM_PROPERTIES_PER_PAGE_REQUEST |
static int |
MAXIMUM_VALUE_LENGTH |
Modifier and Type | Method and Description |
---|---|
JsonContentProperty |
create(JsonContentProperty newProperty)
Create a content property.
|
void |
delete(JsonContentProperty property)
Removes a content property from the system.
|
ContentPropertyService.ContentPropertyFinder |
find(Expansion... expansions)
Create a
ContentPropertyService.ContentPropertyFinder for locating content, the expansions will be applied to each property that
matches the finder. |
JsonContentProperty |
update(JsonContentProperty property)
Updates a content property.
|
ContentPropertyService.Validator |
validator() |
static final int MAXIMUM_KEY_LENGTH
static final int MAXIMUM_VALUE_LENGTH
static final int MAXIMUM_PROPERTIES_PER_PAGE_REQUEST
JsonContentProperty create(JsonContentProperty newProperty) throws ServiceException
newProperty
- the property to createServiceException
- if the property cannot be createdContentPropertyService.ContentPropertyFinder find(Expansion... expansions)
ContentPropertyService.ContentPropertyFinder
for locating content, the expansions will be applied to each property that
matches the finder. JsonContentProperty objects will be retrieved by using the fetch methods on the returned
ContentPropertyFinder.expansions
- properties to expandJsonContentProperty update(JsonContentProperty property) throws ServiceException
property
- the updated JsonContentProperty
with metadata about the changeServiceException
void delete(JsonContentProperty property) throws ServiceException
property
- the content property to removeServiceException
- if the content property cannot be found, or cannot be deletedContentPropertyService.Validator validator()
Copyright © 2003–2016 Atlassian. All rights reserved.