|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.confluence.content.apisupport.BaseContentTypeApiSupport<CustomContentEntityObject> com.atlassian.confluence.content.apisupport.CustomContentTypeApiSupport
@ExperimentalSpi public abstract class CustomContentTypeApiSupport
Constructor Summary | |
---|---|
CustomContentTypeApiSupport(CustomContentApiSupportParams params)
|
Method Summary | |
---|---|
CustomContentEntityObject |
create(Content content)
Create a new persistent entity for the given api content |
protected abstract void |
createCustomContentEntity(Content content,
CustomContentEntityObject newVersion)
Set the extension properties on the entity. |
Class<CustomContentEntityObject> |
getEntityClass()
Get the class of the hibernate object used to persist the content type handled by this api support |
CustomContentEntityObject |
update(Content content,
CustomContentEntityObject entity)
Updates an existing persistent entity from the given api content |
protected abstract boolean |
updateCustomContentEntity(Content content,
CustomContentEntityObject newVersion,
CustomContentEntityObject original)
Set the extension properties on the entity. |
Methods inherited from class com.atlassian.confluence.content.apisupport.BaseContentTypeApiSupport |
---|
getChildren, getChildrenForThisType, getChildrenForThisType, getChildrenOfThisTypeForOtherType, getChildrenOfThisTypeForOtherType, getContainer, getExtensions, getLinks, supportsChildrenForParentType, supportsChildrenOfType, validateCreate, validateUpdate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.atlassian.confluence.content.apisupport.ContentTypeApiSupport |
---|
getHandledType |
Constructor Detail |
---|
public CustomContentTypeApiSupport(CustomContentApiSupportParams params)
Method Detail |
---|
public Class<CustomContentEntityObject> getEntityClass()
ContentTypeApiSupport
public CustomContentEntityObject create(Content content)
ContentTypeApiSupport
create
in interface ContentTypeApiSupport<CustomContentEntityObject>
create
in class BaseContentTypeApiSupport<CustomContentEntityObject>
content
- the model object to create a persistent entity for
public CustomContentEntityObject update(Content content, CustomContentEntityObject entity)
ContentTypeApiSupport
update
in interface ContentTypeApiSupport<CustomContentEntityObject>
update
in class BaseContentTypeApiSupport<CustomContentEntityObject>
content
- the updated contententity
- the existing entity
protected abstract boolean updateCustomContentEntity(Content content, CustomContentEntityObject newVersion, CustomContentEntityObject original)
content
- the map of extension properties to set on the entitynewVersion
- the entity to updateoriginal
- the original copy of the entity
ServiceException
protected abstract void createCustomContentEntity(Content content, CustomContentEntityObject newVersion)
content
- the map of extension properties to set on the entitynewVersion
- the entity to update
ServiceException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |