public class ContentEntityAdapterParent extends Object implements ContentEntityAdapter
Constructor and Description |
---|
ContentEntityAdapterParent() |
Modifier and Type | Method and Description |
---|---|
com.atlassian.fugue.Option<String> |
getAttachmentsUrlPath(CustomContentEntityObject pluginContentEntityObject)
Deprecated.
since 7.0.1. Use
ContentEntityAdapter.attachmentsUrlPath(CustomContentEntityObject) |
com.atlassian.fugue.Option<String> |
getAttachmentUrlPath(CustomContentEntityObject pluginContentEntityObject,
Attachment attachment)
Deprecated.
|
BodyType |
getDefaultBodyType(CustomContentEntityObject pluginContentEntityObject)
Get the default type for BodyContent objects attached to this content.
|
com.atlassian.fugue.Option<String> |
getDisplayTitle(CustomContentEntityObject pluginContentEntityObject)
Deprecated.
since 7.0.1. Use
ContentEntityAdapter.displayTitle(CustomContentEntityObject) |
com.atlassian.fugue.Option<String> |
getExcerpt(CustomContentEntityObject pluginContentEntityObject)
Deprecated.
since 7.0.1. Use
ContentEntityAdapter.excerpt(CustomContentEntityObject) |
com.atlassian.fugue.Option<String> |
getNameForComparison(CustomContentEntityObject pluginContentEntityObject)
Deprecated.
since 7.0.1. Use
ContentEntityAdapter.nameForComparison(CustomContentEntityObject) |
com.atlassian.fugue.Option<String> |
getUrlPath(CustomContentEntityObject pluginContentEntityObject)
Deprecated.
since 7.0.1. Use
ContentEntityAdapter.urlPath(CustomContentEntityObject) |
VersionChildOwnerPolicy |
getVersionChildPolicy(ContentType contentType)
This will be called by
Versioned.getVersionChildPolicy(com.atlassian.confluence.api.model.content.ContentType) to determine the policy
to be used when saving the CCEO. |
boolean |
isAllowedContainer(ContentEntityObject child,
ContentEntityObject container)
Determine if a particular content is an acceptable container for a particular child.
|
boolean |
isAllowedParent(CustomContentEntityObject child,
CustomContentEntityObject parent)
Determine if a particular content is an acceptable parent for this content.
|
boolean |
isIndexable(CustomContentEntityObject pluginContentEntityObject,
boolean isDefaultIndexable)
Determine if a particular content should be indexed.
|
boolean |
shouldConvertToContent(CustomContentEntityObject pluginContentEntityObject)
Determine if a particular content is going to be part of the core API.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
attachmentsUrlPath, attachmentUrlPath, displayTitle, excerpt, nameForComparison, urlPath
@Deprecated public com.atlassian.fugue.Option<String> getUrlPath(CustomContentEntityObject pluginContentEntityObject)
ContentEntityAdapter.urlPath(CustomContentEntityObject)
ContentEntityAdapter
getUrlPath
in interface ContentEntityAdapter
pluginContentEntityObject
- the content to be viewed@Deprecated public com.atlassian.fugue.Option<String> getDisplayTitle(CustomContentEntityObject pluginContentEntityObject)
ContentEntityAdapter.displayTitle(CustomContentEntityObject)
ContentEntityAdapter
getDisplayTitle
in interface ContentEntityAdapter
pluginContentEntityObject
- the content to calculate the display title for@Deprecated public com.atlassian.fugue.Option<String> getNameForComparison(CustomContentEntityObject pluginContentEntityObject)
ContentEntityAdapter.nameForComparison(CustomContentEntityObject)
ContentEntityAdapter
getNameForComparison
in interface ContentEntityAdapter
pluginContentEntityObject
- the content to calculate the sorting title for@Deprecated public com.atlassian.fugue.Option<String> getAttachmentsUrlPath(CustomContentEntityObject pluginContentEntityObject)
ContentEntityAdapter.attachmentsUrlPath(CustomContentEntityObject)
ContentEntityAdapter
getAttachmentsUrlPath
in interface ContentEntityAdapter
pluginContentEntityObject
- the content to view attachments for@Deprecated public com.atlassian.fugue.Option<String> getAttachmentUrlPath(CustomContentEntityObject pluginContentEntityObject, Attachment attachment)
ContentEntityAdapter.attachmentUrlPath(CustomContentEntityObject, Attachment)
ContentEntityAdapter
getAttachmentUrlPath
in interface ContentEntityAdapter
pluginContentEntityObject
- the content to view attachments forattachment
- the attachment to link topublic BodyType getDefaultBodyType(CustomContentEntityObject pluginContentEntityObject)
ContentEntityAdapter
getDefaultBodyType
in interface ContentEntityAdapter
pluginContentEntityObject
- the content to get the body type of@Deprecated public com.atlassian.fugue.Option<String> getExcerpt(CustomContentEntityObject pluginContentEntityObject)
ContentEntityAdapter.excerpt(CustomContentEntityObject)
ContentEntityAdapter
getExcerpt
in interface ContentEntityAdapter
pluginContentEntityObject
- the content to excerptpublic boolean isAllowedParent(CustomContentEntityObject child, CustomContentEntityObject parent)
ContentEntityAdapter
Parent and child are required to be CustomContentEntityObject
s. Typically this should be used if
CustomContentEntityObject.getPluginModuleKey()
returns the same value for both objects.
isAllowedParent
in interface ContentEntityAdapter
ContentEntityAdapter.isAllowedContainer(ContentEntityObject, ContentEntityObject)
public boolean isAllowedContainer(ContentEntityObject child, ContentEntityObject container)
ContentEntityAdapter
Will be invoked for the child adapter and the container adapter, if applicable.
Only one of container or child are required to be CustomContentEntityObject
s. If both types are
CustomContentEntityObject
s, this must only be used if CustomContentEntityObject.getPluginModuleKey()
also returns distinct values for both objects.
isAllowedContainer
in interface ContentEntityAdapter
ContentEntityAdapter.isAllowedParent(CustomContentEntityObject, CustomContentEntityObject)
public boolean isIndexable(CustomContentEntityObject pluginContentEntityObject, boolean isDefaultIndexable)
ContentEntityAdapter
isIndexable
in interface ContentEntityAdapter
pluginContentEntityObject
- the entity to checkisDefaultIndexable
- if the entity would be indexed absent of this check.public boolean shouldConvertToContent(CustomContentEntityObject pluginContentEntityObject)
ContentEntityAdapter
shouldConvertToContent
in interface ContentEntityAdapter
pluginContentEntityObject
- the entity to checkpublic VersionChildOwnerPolicy getVersionChildPolicy(ContentType contentType)
ContentEntityAdapter
Versioned.getVersionChildPolicy(com.atlassian.confluence.api.model.content.ContentType)
to determine the policy
to be used when saving the CCEO.getVersionChildPolicy
in interface ContentEntityAdapter
VersionChildOwnerPolicy
Copyright © 2003–2019 Atlassian. All rights reserved.