@Entity public class TemplateResource extends Object implements Resource
Resource of an appNG template.| Constructor and Description |
|---|
TemplateResource() |
| Modifier and Type | Method and Description |
|---|---|
String |
calculateChecksum() |
boolean |
equals(Object o) |
byte[] |
getBytes()
Returns the byte data of the
Resource. |
File |
getCachedFile()
Returns a cached version of the
Resources file. |
String |
getCheckSum()
Returns the checksum of the byte data
|
String |
getDescription()
Returns the description.
|
Date |
getFileVersion() |
Integer |
getId()
Returns the id.
|
String |
getName()
Returns the name.
|
ResourceType |
getResourceType()
Returns the type of this
Resource. |
int |
getSize()
Returns the size (in bytes) of this
Resource. |
Template |
getTemplate() |
Date |
getVersion() |
int |
hashCode() |
void |
setBytes(byte[] bytes) |
void |
setCachedFile(File cachedFile)
Sets the cached version of the
Resources file. |
void |
setCheckSum(String checkSum) |
void |
setDescription(String description) |
void |
setFileVersion(Date fileVersion) |
void |
setId(Integer id) |
void |
setName(String name) |
void |
setResourceType(ResourceType type) |
void |
setTemplate(Template template) |
void |
setVersion(Date version) |
public Integer getId()
IdentifiablegetId in interface Identifiable<Integer>public void setId(Integer id)
public void setName(String name)
public String getDescription()
NameablegetDescription in interface Nameablepublic void setDescription(String description)
public Date getFileVersion()
public void setFileVersion(Date fileVersion)
public Date getVersion()
public void setVersion(Date version)
public Template getTemplate()
public void setTemplate(Template template)
public ResourceType getResourceType()
ResourceResource.getResourceType in interface Resourcepublic void setResourceType(ResourceType type)
public byte[] getBytes()
ResourceResource.public void setBytes(byte[] bytes)
public File getCachedFile()
ResourceResources file.getCachedFile in interface Resourcepublic void setCachedFile(File cachedFile)
ResourceResources file.setCachedFile in interface ResourcecachedFile - the cached filepublic String getCheckSum()
ResourcegetCheckSum in interface Resourcepublic void setCheckSum(String checkSum)
public int getSize()
ResourceResource.public String calculateChecksum()
Copyright © 2011–2022 aiticon GmbH. All rights reserved.