Class TemplateResource

    • Constructor Detail

      • TemplateResource

        public TemplateResource()
    • Method Detail

      • setId

        public void setId​(Integer id)
      • getName

        public String getName()
        Description copied from interface: Nameable
        Returns the name.
        Specified by:
        getName in interface Nameable
        Returns:
        the name
      • setName

        public void setName​(String name)
      • getDescription

        public String getDescription()
        Description copied from interface: Nameable
        Returns the description.
        Specified by:
        getDescription in interface Nameable
        Returns:
        the description
      • setDescription

        public void setDescription​(String description)
      • getFileVersion

        public Date getFileVersion()
      • setFileVersion

        public void setFileVersion​(Date fileVersion)
      • getVersion

        public Date getVersion()
      • setVersion

        public void setVersion​(Date version)
      • getTemplate

        public Template getTemplate()
      • setTemplate

        public void setTemplate​(Template template)
      • setResourceType

        public void setResourceType​(ResourceType type)
      • getBytes

        public byte[] getBytes()
        Description copied from interface: Resource
        Returns the byte data of the Resource.
        Specified by:
        getBytes in interface Resource
        Returns:
        the byte data
      • setBytes

        public void setBytes​(byte[] bytes)
      • getCachedFile

        public File getCachedFile()
        Description copied from interface: Resource
        Returns a cached version of the Resources file.
        Specified by:
        getCachedFile in interface Resource
        Returns:
        the cached file
      • setCachedFile

        public void setCachedFile​(File cachedFile)
        Description copied from interface: Resource
        Sets the cached version of the Resources file.
        Specified by:
        setCachedFile in interface Resource
        Parameters:
        cachedFile - the cached file
      • getCheckSum

        public String getCheckSum()
        Description copied from interface: Resource
        Returns the checksum of the byte data
        Specified by:
        getCheckSum in interface Resource
        Returns:
        the checksum of the byte data
      • setCheckSum

        public void setCheckSum​(String checkSum)
      • getSize

        public int getSize()
        Description copied from interface: Resource
        Returns the size (in bytes) of this Resource.
        Specified by:
        getSize in interface Resource
        Returns:
        the size (in bytes)
      • calculateChecksum

        public String calculateChecksum()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object