Class ResourceImpl

    • Constructor Detail

      • ResourceImpl

        public ResourceImpl()
    • 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)
      • setVersion

        public void setVersion​(Date version)
      • setApplication

        public void setApplication​(Application application)
      • setResourceType

        public void setResourceType​(ResourceType type)
      • getBytes

        @NotNull
        public @javax.validation.constraints.NotNull 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)
      • 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)
      • 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
      • 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 void calculateChecksum()