Class Banner
-
- All Implemented Interfaces:
Cloneable,Comparable<NamedEntity>,HasContentScript,HasNetwork,HasOrder,ProcessableForProxying,IEntity,IInternalNamedEntity,INamedEntity,UsesScript
- Direct Known Subclasses:
ClassicBanner,FrontendBanner
@Entity public abstract class Banner extends ContentItem implements HasContentScript
A banner. Depending on the subclass, may be displayed in the classic or new frontend
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.cyclos.entities.SimpleEntity
SimpleEntity.EntityLoadNotifier
-
-
Constructor Summary
Constructors Constructor Description Banner()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description StringgetContent()CustomScriptgetContentScript()StringgetContentScriptParameters()DataTranslationTypegetDataTranslationType()If this entity allows data translation, should return the translation typeabstract BannerNaturegetNature()CustomScriptUsedInTypegetScriptUsedInType()Returns the type of script usagebooleanisThemed()voidsetContent(String content)voidsetContentScript(CustomScript contentScript)voidsetContentScriptParameters(String contentScriptParameters)voidsetThemed(boolean themed)-
Methods inherited from class org.cyclos.entities.contentmanagement.ContentItem
getConfiguration, getInternalName, getNetwork, getVisibility, setConfiguration, setInternalName, setVisibility
-
Methods inherited from class org.cyclos.entities.OrderableEntity
compareTo, getOrder, setOrder, toString
-
Methods inherited from class org.cyclos.entities.NamedEntity
getName, getNames, setName, toShortString
-
Methods inherited from class org.cyclos.entities.BaseEntity
getVersion
-
Methods inherited from class org.cyclos.entities.NetworkedEntity
isGlobal
-
Methods inherited from class org.cyclos.entities.SimpleEntity
equals, getId, hashCode, id, ids, isPersistent, isTransient, register, setId, uniqueIds, uniqueIds
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.cyclos.model.IInternalNamedEntity
matches
-
Methods inherited from interface org.cyclos.entities.ProcessableForProxying
getProxyClass
-
Methods inherited from interface org.cyclos.model.system.scripts.UsesScript
isEnabled
-
-
-
-
Method Detail
-
getContent
public String getContent()
-
getContentScript
public CustomScript getContentScript()
- Specified by:
getContentScriptin interfaceHasContentScript
-
getContentScriptParameters
public String getContentScriptParameters()
- Specified by:
getContentScriptParametersin interfaceHasContentScript
-
getDataTranslationType
public DataTranslationType getDataTranslationType()
Description copied from class:BaseEntityIf this entity allows data translation, should return the translation type- Overrides:
getDataTranslationTypein classBaseEntity
-
getNature
public abstract BannerNature getNature()
-
getScriptUsedInType
public CustomScriptUsedInType getScriptUsedInType()
Description copied from interface:UsesScriptReturns the type of script usage- Specified by:
getScriptUsedInTypein interfaceUsesScript
-
isThemed
public boolean isThemed()
-
setContent
public void setContent(String content)
-
setContentScript
public void setContentScript(CustomScript contentScript)
-
setContentScriptParameters
public void setContentScriptParameters(String contentScriptParameters)
-
setThemed
public void setThemed(boolean themed)
-
-