001: /*
002: * Copyright (c) JForum Team
003: * All rights reserved.
004: *
005: * Redistribution and use in source and binary forms,
006: * with or without modification, are permitted provided
007: * that the following conditions are met:
008: *
009: * 1) Redistributions of source code must retain the above
010: * copyright notice, this list of conditions and the
011: * following disclaimer.
012: * 2) Redistributions in binary form must reproduce the
013: * above copyright notice, this list of conditions and
014: * the following disclaimer in the documentation and/or
015: * other materials provided with the distribution.
016: * 3) Neither the name of "Rafael Steil" nor
017: * the names of its contributors may be used to endorse
018: * or promote products derived from this software without
019: * specific prior written permission.
020: *
021: * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT
022: * HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
023: * EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
024: * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
025: * MERCHANTABILITY AND FITNESS FOR A PARTICULAR
026: * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
027: * THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
028: * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
029: * EXEMPLARY, OR CONSEQUENTIAL DAMAGES
030: * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
031: * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
032: * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
033: * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
034: * IN CONTRACT, STRICT LIABILITY, OR TORT
035: * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
036: * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
037: * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE
038: *
039: * Created on Jan 17, 2005 8:21:32 PM
040: * The JForum Project
041: * http://www.jforum.net
042: */
043: package net.jforum.entities;
044:
045: /**
046: * @author Rafael Steil
047: * @version $Id: AttachmentExtension.java,v 1.7 2006/08/20 22:47:35 rafaelsteil Exp $
048: */
049: public class AttachmentExtension {
050: private int id;
051: private int extensionGroupId;
052:
053: private boolean allow;
054: private boolean unknown;
055:
056: private String comment;
057: private String extension;
058: private String uploadIcon;
059:
060: /**
061: * @return Returns the allow.
062: */
063: public boolean isAllow() {
064: return this .allow;
065: }
066:
067: /**
068: * @param allow The allow to set.
069: */
070: public void setAllow(boolean allow) {
071: this .allow = allow;
072: }
073:
074: /**
075: * @return Returns the comment.
076: */
077: public String getComment() {
078: return this .comment;
079: }
080:
081: /**
082: * @param comment The comment to set.
083: */
084: public void setComment(String comment) {
085: this .comment = comment;
086: }
087:
088: /**
089: * @return Returns the extension.
090: */
091: public String getExtension() {
092: return this .extension;
093: }
094:
095: /**
096: * @param extension The extension to set.
097: */
098: public void setExtension(String extension) {
099: if (extension != null) {
100: this .extension = extension.toLowerCase();
101: }
102: }
103:
104: /**
105: * @return Returns the extensionGroupId.
106: */
107: public int getExtensionGroupId() {
108: return this .extensionGroupId;
109: }
110:
111: /**
112: * @param extensionGroupId The extensionGroupId to set.
113: */
114: public void setExtensionGroupId(int extensionGroupId) {
115: this .extensionGroupId = extensionGroupId;
116: }
117:
118: /**
119: * @return Returns the id.
120: */
121: public int getId() {
122: return this .id;
123: }
124:
125: /**
126: * @param id The id to set.
127: */
128: public void setId(int id) {
129: this .id = id;
130: }
131:
132: /**
133: * @return Returns the upload_icon.
134: */
135: public String getUploadIcon() {
136: return this .uploadIcon;
137: }
138:
139: /**
140: * @param uploadIcon The upload_icon to set.
141: */
142: public void setUploadIcon(String uploadIcon) {
143: this .uploadIcon = uploadIcon;
144: }
145:
146: /**
147: * @return Returns the unknown.
148: */
149: public boolean isUnknown() {
150: return this .unknown;
151: }
152:
153: /**
154: * @param unknown The unknown to set.
155: */
156: public void setUnknown(boolean unknown) {
157: this.unknown = unknown;
158: }
159: }
|