Package org.cyclos.entities.banking
Class VoucherTemplate
- java.lang.Object
-
- org.cyclos.entities.SimpleEntity
-
- org.cyclos.entities.NetworkedEntity
-
- org.cyclos.entities.BaseEntity
-
- org.cyclos.entities.NamedEntity
-
- org.cyclos.entities.ConfigurationEntity
-
- org.cyclos.entities.banking.VoucherTemplate
-
- All Implemented Interfaces:
Cloneable,Comparable<NamedEntity>,HasContentScript,HasNetwork,ProcessableForProxying,DefinesNetwork,IEntity,IInternalNamedEntity,INamedEntity,UsesScript
@Entity public class VoucherTemplate extends ConfigurationEntity implements DefinesNetwork, HasContentScript
A voucher template defines a Thymeleaf template for the voucher to be printed to PDF
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.cyclos.entities.SimpleEntity
SimpleEntity.EntityLoadNotifier
-
-
Constructor Summary
Constructors Constructor Description VoucherTemplate()VoucherTemplate(Long id)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LonggetBasedOnId()StringgetContent()CustomScriptgetContentScript()StringgetContentScriptParameters()Set<VoucherTemplateImage>getImages()NetworkgetNetwork()Returns the network this entity belongs toCustomScriptUsedInTypegetScriptUsedInType()Returns the type of script usageStringgetStyle()voidsetBasedOnId(Long basedOnId)voidsetContent(String content)voidsetContentScript(CustomScript contentScript)voidsetContentScriptParameters(String contentScriptParameters)voidsetImages(Set<VoucherTemplateImage> images)voidsetNetwork(Network network)voidsetStyle(String style)-
Methods inherited from class org.cyclos.entities.ConfigurationEntity
getDescription, getInternalName, setDescription, setInternalName, toShortString, toString
-
Methods inherited from class org.cyclos.entities.NamedEntity
compareTo, getName, getNames, setName
-
Methods inherited from class org.cyclos.entities.BaseEntity
getDataTranslationType, 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
-
-
-
-
Constructor Detail
-
VoucherTemplate
public VoucherTemplate()
-
VoucherTemplate
public VoucherTemplate(Long id)
-
-
Method Detail
-
getBasedOnId
public Long getBasedOnId()
-
getContent
public String getContent()
-
getContentScript
public CustomScript getContentScript()
- Specified by:
getContentScriptin interfaceHasContentScript
-
getContentScriptParameters
public String getContentScriptParameters()
- Specified by:
getContentScriptParametersin interfaceHasContentScript
-
getImages
public Set<VoucherTemplateImage> getImages()
-
getNetwork
public Network getNetwork()
Description copied from interface:HasNetworkReturns the network this entity belongs to- Specified by:
getNetworkin interfaceHasNetwork
-
getScriptUsedInType
public CustomScriptUsedInType getScriptUsedInType()
Description copied from interface:UsesScriptReturns the type of script usage- Specified by:
getScriptUsedInTypein interfaceUsesScript
-
getStyle
public String getStyle()
-
setBasedOnId
public void setBasedOnId(Long basedOnId)
-
setContent
public void setContent(String content)
-
setContentScript
public void setContentScript(CustomScript contentScript)
-
setContentScriptParameters
public void setContentScriptParameters(String contentScriptParameters)
-
setImages
public void setImages(Set<VoucherTemplateImage> images)
-
setNetwork
public void setNetwork(Network network)
- Specified by:
setNetworkin interfaceDefinesNetwork
-
setStyle
public void setStyle(String style)
-
-