001// --------------------------------------------------------------------------------
002// Copyright 2002-2024 Echo Three, LLC
003//
004// Licensed under the Apache License, Version 2.0 (the "License");
005// you may not use this file except in compliance with the License.
006// You may obtain a copy of the License at
007//
008//     http://www.apache.org/licenses/LICENSE-2.0
009//
010// Unless required by applicable law or agreed to in writing, software
011// distributed under the License is distributed on an "AS IS" BASIS,
012// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013// See the License for the specific language governing permissions and
014// limitations under the License.
015// --------------------------------------------------------------------------------
016
017package com.echothree.model.control.forum.common.transfer;
018
019import com.echothree.model.control.core.common.transfer.MimeTypeTransfer;
020import com.echothree.util.common.persistence.type.ByteArray;
021import com.echothree.util.common.transfer.BaseTransfer;
022
023public class ForumMessageAttachmentTransfer
024        extends BaseTransfer {
025    
026    private ForumMessageTransfer forumMessage;
027    private Integer forumMessageAttachmentSequence;
028    private MimeTypeTransfer mimeType;
029    private String description;
030    private ByteArray blob;
031    private String clob;
032    private String eTag;
033    
034    /** Creates a new instance of ForumMessageAttachmentTransfer */
035    public ForumMessageAttachmentTransfer(ForumMessageTransfer forumMessage, Integer forumMessageAttachmentSequence, MimeTypeTransfer mimeType,
036            String description, ByteArray blob, String clob, String eTag) {
037        this.forumMessage = forumMessage;
038        this.forumMessageAttachmentSequence = forumMessageAttachmentSequence;
039        this.mimeType = mimeType;
040        this.description = description;
041        this.blob = blob;
042        this.clob = clob;
043        this.eTag = eTag;
044    }
045
046    /**
047     * Returns the forumMessage.
048     * @return the forumMessage
049     */
050    public ForumMessageTransfer getForumMessage() {
051        return forumMessage;
052    }
053
054    /**
055     * Sets the forumMessage.
056     * @param forumMessage the forumMessage to set
057     */
058    public void setForumMessage(ForumMessageTransfer forumMessage) {
059        this.forumMessage = forumMessage;
060    }
061
062    /**
063     * Returns the forumMessageAttachmentSequence.
064     * @return the forumMessageAttachmentSequence
065     */
066    public Integer getForumMessageAttachmentSequence() {
067        return forumMessageAttachmentSequence;
068    }
069
070    /**
071     * Sets the forumMessageAttachmentSequence.
072     * @param forumMessageAttachmentSequence the forumMessageAttachmentSequence to set
073     */
074    public void setForumMessageAttachmentSequence(Integer forumMessageAttachmentSequence) {
075        this.forumMessageAttachmentSequence = forumMessageAttachmentSequence;
076    }
077
078    /**
079     * Returns the mimeType.
080     * @return the mimeType
081     */
082    public MimeTypeTransfer getMimeType() {
083        return mimeType;
084    }
085
086    /**
087     * Sets the mimeType.
088     * @param mimeType the mimeType to set
089     */
090    public void setMimeType(MimeTypeTransfer mimeType) {
091        this.mimeType = mimeType;
092    }
093
094    /**
095     * Returns the description.
096     * @return the description
097     */
098    public String getDescription() {
099        return description;
100    }
101
102    /**
103     * Sets the description.
104     * @param description the description to set
105     */
106    public void setDescription(String description) {
107        this.description = description;
108    }
109
110    /**
111     * Returns the blob.
112     * @return the blob
113     */
114    public ByteArray getBlob() {
115        return blob;
116    }
117
118    /**
119     * Sets the blob.
120     * @param blob the blob to set
121     */
122    public void setBlob(ByteArray blob) {
123        this.blob = blob;
124    }
125
126    /**
127     * Returns the clob.
128     * @return the clob
129     */
130    public String getClob() {
131        return clob;
132    }
133
134    /**
135     * Sets the clob.
136     * @param clob the clob to set
137     */
138    public void setClob(String clob) {
139        this.clob = clob;
140    }
141
142    /**
143     * Returns the eTag.
144     * @return the eTag
145     */
146    public String geteTag() {
147        return eTag;
148    }
149
150    /**
151     * Sets the eTag.
152     * @param eTag the eTag to set
153     */
154    public void seteTag(String eTag) {
155        this.eTag = eTag;
156    }
157
158}