@Entity public class ResourceImpl extends Object implements Resource, Auditable<Integer>, Closeable
Resource-implementation| Constructor and Description |
|---|
ResourceImpl() |
ResourceImpl(Application application,
Resource resource) |
| Modifier and Type | Method and Description |
|---|---|
void |
calculateChecksum() |
void |
close() |
Application |
getApplication() |
String |
getAuditName() |
@NotNull 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.
|
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. |
Date |
getVersion()
Returns the version.
|
void |
setApplication(Application application) |
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 |
setId(Integer id) |
void |
setName(String name) |
void |
setResourceType(ResourceType type) |
void |
setVersion(Date version) |
public ResourceImpl()
public ResourceImpl(Application application, Resource resource)
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 getVersion()
VersionablegetVersion in interface Versionable<Date>public void setVersion(Date version)
public Application getApplication()
public void setApplication(Application application)
public ResourceType getResourceType()
ResourceResource.getResourceType in interface Resourcepublic void setResourceType(ResourceType type)
@NotNull public @NotNull byte[] getBytes()
ResourceResource.public void setBytes(byte[] bytes)
public String getCheckSum()
ResourcegetCheckSum in interface Resourcepublic void setCheckSum(String checkSum)
public File getCachedFile()
ResourceResources file.getCachedFile in interface Resourcepublic void setCachedFile(File cachedFile)
ResourceResources file.setCachedFile in interface ResourcecachedFile - the cached filepublic int getSize()
ResourceResource.public void calculateChecksum()
public void close()
close in interface Closeableclose in interface AutoCloseablepublic String getAuditName()
getAuditName in interface Auditable<Integer>Copyright © 2011–2018 aiticon GmbH. All rights reserved.