@ProviderType public interface Template extends Adaptable, LabeledResource, JSONItem
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getDescription()
Returns the description of the template or
null if not
defined. |
java.lang.String |
getIconPath()
Returns the path to an icon for this template or
null if
this template does not provide an icon. |
java.lang.String |
getInitialContentPath() |
java.util.Calendar |
getLastModified()
Get last modified date of template
|
java.lang.String |
getPageTypePath()
Get page type
|
java.lang.String |
getPath()
Returns the path of the template resource
|
ValueMap |
getProperties()
Get the template's properties.
|
java.lang.Long |
getRanking()
Returns the ranking in the template list.
|
java.lang.String |
getShortTitle()
Returns the short title of the template or
null
if not defined. |
java.lang.String |
getThumbnailPath()
Returns the path to a thumbnail for this template or
null
if the template does not provide a thumbnail. |
java.lang.String |
getTitle()
Returns the title of the template or the name of the resource (i.e.
|
boolean |
hasStructureSupport() |
boolean |
isAllowed(Resource parent)
Checks if this template is allowed to be used for a new page below
the given parent.
|
boolean |
isAllowed(java.lang.String parentPath)
Checks if this template is allowed to be used for a new page below
the given path.
|
boolean |
isAllowedChild(Template template)
Checks if the given template is allowed as a child template.
|
void |
write(JSONWriter jsonWriter)
Serializes this descriptor to json
|
getNamejava.lang.String getPath()
getPath in interface LabeledResourcejava.lang.String getTitle()
getTitle in interface LabeledResourcejava.lang.String getShortTitle()
null
if not defined.java.lang.String getDescription()
null if not
defined.getDescription in interface LabeledResourcejava.lang.String getIconPath()
null if
this template does not provide an icon.nulljava.lang.String getThumbnailPath()
null
if the template does not provide a thumbnail.nulljava.lang.Long getRanking()
boolean isAllowed(java.lang.String parentPath)
isAllowed(Resource) in loops for better performance.parentPath - parent path for the new pagetrue if it is allowed.boolean isAllowed(Resource parent)
parent - the parent resource for the new pagetrue if it is allowed.boolean isAllowedChild(Template template)
template - the child templatetrue if the given template is allowed as child template.void write(JSONWriter jsonWriter) throws JSONException
write in interface JSONItemjsonWriter - json writerJSONException - if a JSON error occursjava.lang.String getInitialContentPath()
ValueMap getProperties()
null.boolean hasStructureSupport()
java.lang.String getPageTypePath()
java.util.Calendar getLastModified()
Copyright © 2010 - 2023 Adobe. All Rights Reserved