Class BaseFileTransferMappedRecord

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, java.util.Map, javax.resource.cci.MappedRecord, javax.resource.cci.Record

    public class BaseFileTransferMappedRecord
    extends java.lang.Object
    implements javax.resource.cci.MappedRecord
    This class holds the file, its checksum and some meta data
    Author:
    Ikasan Development Team
    See Also:
    Serialized Form
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface java.util.Map

        java.util.Map.Entry<K extends java.lang.Object,​V extends java.lang.Object>
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void clear()  
      java.lang.Object clone()  
      boolean containsKey​(java.lang.Object key)  
      boolean containsValue​(java.lang.Object value)  
      java.util.Set<java.util.Map.Entry<java.lang.String,​java.lang.Object>> entrySet()  
      java.lang.Object get​(java.lang.Object key)  
      java.lang.String getChecksum()  
      java.lang.String getChecksumAlgorithm()  
      byte[] getContent()  
      java.util.Date getCreatedDayTime()  
      java.util.HashMap<java.lang.String,​java.lang.Object> getMappedRecord()  
      java.lang.String getName()  
      java.lang.String getRecordName()  
      java.lang.String getRecordShortDescription()  
      long getSize()  
      boolean isEmpty()  
      java.util.Set<java.lang.String> keySet()  
      java.lang.Object put​(java.lang.Object key, java.lang.Object value)  
      void putAll​(java.util.Map map)  
      java.lang.Object remove​(java.lang.Object key)  
      java.lang.Object remove​(java.lang.String key)
      Remove the key
      void setChecksum​(java.lang.String checksum, java.lang.String algorithmName)  
      void setContent​(byte[] content)  
      void setCreatedDayTime​(java.util.Date createdDayTime)  
      void setMappedRecord​(java.util.HashMap<java.lang.String,​java.lang.Object> mappedRecord)  
      void setName​(java.lang.String name)  
      void setRecordName​(java.lang.String recordName)  
      void setRecordShortDescription​(java.lang.String recordDescription)  
      void setSize​(long size)  
      int size()  
      java.util.Collection<java.lang.Object> values()  
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.Map

        compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
      • Methods inherited from interface javax.resource.cci.Record

        equals, hashCode
    • Constructor Detail

      • BaseFileTransferMappedRecord

        public BaseFileTransferMappedRecord()
        Default constructor
      • BaseFileTransferMappedRecord

        public BaseFileTransferMappedRecord​(java.lang.String recordName,
                                            java.lang.String recordDescription)
        Parameters:
        recordName -
        recordDescription -
      • BaseFileTransferMappedRecord

        public BaseFileTransferMappedRecord​(java.lang.String name,
                                            long size,
                                            java.lang.String checksum,
                                            java.lang.String checksumAlgorithmName,
                                            java.util.Date createdDayTime,
                                            byte[] payload)
        Complete constructor
        Parameters:
        name -
        size -
        checksum -
        checksumAlgorithmName -
        createdDayTime -
        payload -
    • Method Detail

      • getChecksum

        public java.lang.String getChecksum()
        Returns:
        the checksum
      • setChecksum

        public void setChecksum​(java.lang.String checksum,
                                java.lang.String algorithmName)
        Parameters:
        checksum - the checksum to set
        algorithmName -
      • getChecksumAlgorithm

        public java.lang.String getChecksumAlgorithm()
        Returns:
        checksum algorithm
      • getCreatedDayTime

        public java.util.Date getCreatedDayTime()
        Returns:
        the createdDayTime
      • setCreatedDayTime

        public void setCreatedDayTime​(java.util.Date createdDayTime)
        Parameters:
        createdDayTime - the createdDayTime to set
      • getMappedRecord

        public java.util.HashMap<java.lang.String,​java.lang.Object> getMappedRecord()
        Returns:
        the mappedRecord
      • setMappedRecord

        public void setMappedRecord​(java.util.HashMap<java.lang.String,​java.lang.Object> mappedRecord)
        Parameters:
        mappedRecord - the mappedRecord to set
      • getName

        public java.lang.String getName()
        Returns:
        the name
      • setName

        public void setName​(java.lang.String name)
        Parameters:
        name - the name to set
      • getContent

        public byte[] getContent()
        Returns:
        the payload
      • setContent

        public void setContent​(byte[] content)
        Parameters:
        content - the payload to set
      • getSize

        public long getSize()
        Returns:
        the size
      • setSize

        public void setSize​(long size)
        Parameters:
        size - the size to set
      • clear

        public void clear()
        Specified by:
        clear in interface java.util.Map
      • containsValue

        public boolean containsValue​(java.lang.Object value)
        Specified by:
        containsValue in interface java.util.Map
      • entrySet

        public java.util.Set<java.util.Map.Entry<java.lang.String,​java.lang.Object>> entrySet()
        Specified by:
        entrySet in interface java.util.Map
      • isEmpty

        public boolean isEmpty()
        Specified by:
        isEmpty in interface java.util.Map
      • keySet

        public java.util.Set<java.lang.String> keySet()
        Specified by:
        keySet in interface java.util.Map
      • remove

        public java.lang.Object remove​(java.lang.String key)
        Remove the key
        Parameters:
        key -
        Returns:
        The previous value or null
      • remove

        public java.lang.Object remove​(java.lang.Object key)
        Specified by:
        remove in interface java.util.Map
      • size

        public int size()
        Specified by:
        size in interface java.util.Map
      • values

        public java.util.Collection<java.lang.Object> values()
        Specified by:
        values in interface java.util.Map
      • containsKey

        public boolean containsKey​(java.lang.Object key)
        Specified by:
        containsKey in interface java.util.Map
      • get

        public java.lang.Object get​(java.lang.Object key)
        Specified by:
        get in interface java.util.Map
      • put

        public java.lang.Object put​(java.lang.Object key,
                                    java.lang.Object value)
        Specified by:
        put in interface java.util.Map
      • putAll

        public void putAll​(java.util.Map map)
        Specified by:
        putAll in interface java.util.Map
      • getRecordName

        public java.lang.String getRecordName()
        Specified by:
        getRecordName in interface javax.resource.cci.Record
      • getRecordShortDescription

        public java.lang.String getRecordShortDescription()
        Specified by:
        getRecordShortDescription in interface javax.resource.cci.Record
      • setRecordName

        public void setRecordName​(java.lang.String recordName)
        Specified by:
        setRecordName in interface javax.resource.cci.Record
      • setRecordShortDescription

        public void setRecordShortDescription​(java.lang.String recordDescription)
        Specified by:
        setRecordShortDescription in interface javax.resource.cci.Record
      • clone

        public java.lang.Object clone()
                               throws java.lang.CloneNotSupportedException
        Specified by:
        clone in interface javax.resource.cci.Record
        Overrides:
        clone in class java.lang.Object
        Throws:
        java.lang.CloneNotSupportedException