|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
com.fatwire.services.beans.BaseBean
com.fatwire.services.beans.asset.AssetBean
com.fatwire.services.beans.asset.basic.template.TemplateBean
public final class TemplateBean
The TemplateBean encapsulates layout properties. A template is a system asset type which is used to render an asset.
For referential purposes, the template name is the name of the template if this template is applicable to a specific asset type. The template name is pre-pended with a leading forward slash character ("/") in case of typeless templates (templates which can apply to various asset types).
The ThumnailURL points to the Image Renderer Servlet. Optional thumbnail parameters can be passed to the url for scaling the image.
| Nested Class Summary | |
|---|---|
static class |
TemplateBean.TypeEnumerates all the supported template types. |
| Nested classes/interfaces inherited from class com.fatwire.services.beans.asset.AssetBean |
|---|
AssetBean.Status |
| Field Summary | |
|---|---|
static java.lang.String |
TEMPLATEName of the Template asset type. |
| Fields inherited from class com.fatwire.services.beans.asset.AssetBean |
|---|
attributes, description, id, name, type |
| Constructor Summary | |
|---|---|
TemplateBean()Default Constructor which sets the type of Template assets to "Template". |
|
| Method Summary | |
|---|---|
java.lang.String |
getPageName() |
TemplateBean.Type |
getTemplateType()Returns the type of this template. |
java.lang.String |
getThumbnailUrl()Returns the relative path of the thumbnail if available. |
java.lang.String |
getTname()Returns the type-qualified template name associated with this template. |
java.lang.Boolean |
isTypeless()Returns a flag to indicate if this template is typeless. |
void |
setId(AssetId id)Sets the identifier for this asset. |
void |
setPageName(java.lang.String pagename) |
void |
setTemplateType(TemplateBean.Type templateType)Sets the type of this template. |
void |
setThumbnailUrl(java.lang.String thumbnailUrl)Sets the relative path of this thumbnail. |
void |
setTname(java.lang.String templateName) |
void |
setType(TypeBean type)Sets the type for this asset. |
void |
setTypeless(boolean typeless) |
| Methods inherited from class com.fatwire.services.beans.asset.AssetBean |
|---|
getAttributes, getDescription, getId, getName, getType, setDescription, setName |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String TEMPLATE
| Constructor Detail |
|---|
public TemplateBean()
| Method Detail |
|---|
public void setId(AssetId id)
AssetBeansetId in class AssetBeanid - the id to set for this asset.public void setType(TypeBean type)
AssetBeansetType in class AssetBeantype - the type to set for this asset.public java.lang.String getTname()
Returns the type-qualified template name associated with this template.
For referential purposes, the template name is the name of the template if this template is applicable to a specific asset type. The template name is pre-pended with a leading forward slash character ("/") in case of typeless templates (templates which can apply to various asset types).public void setTname(java.lang.String templateName)
public java.lang.String getPageName()
public void setPageName(java.lang.String pagename)
public final TemplateBean.Type getTemplateType()
TemplateBean.Typepublic final void setTemplateType(TemplateBean.Type templateType)
templateType - the templateType to setTemplateBean.Typepublic void setTypeless(boolean typeless)
public final java.lang.Boolean isTypeless()
true if this template is typeless, false otherwise.public java.lang.String getThumbnailUrl()
public void setThumbnailUrl(java.lang.String thumbnailUrl)
thumbnailUrl -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.