001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.flags.messaging;
016    
017    import com.liferay.portal.service.ServiceContext;
018    
019    import java.io.Serializable;
020    
021    /**
022     * @author Michael C. Han
023     * @author Brian Wing Shun Chan
024     */
025    public class FlagsRequest implements Serializable {
026    
027            public FlagsRequest() {
028            }
029    
030            public FlagsRequest(
031                    String className, long classPK, String reporterEmailAddress,
032                    long reportedUserId, String contentTitle, String contentURL,
033                    String reason, ServiceContext serviceContext) {
034    
035                    _className = className;
036                    _classPK = classPK;
037                    _reporterEmailAddress = reporterEmailAddress;
038                    _reportedUserId = reportedUserId;
039                    _contentTitle = contentTitle;
040                    _contentURL = contentURL;
041                    _reason = reason;
042                    _serviceContext = serviceContext;
043            }
044    
045            public String getClassName() {
046                    return _className;
047            }
048    
049            public long getClassPK() {
050                    return _classPK;
051            }
052    
053            public String getComments() {
054                    return _comments;
055            }
056    
057            public String getContentTitle() {
058                    return _contentTitle;
059            }
060    
061            public String getContentURL() {
062                    return _contentURL;
063            }
064    
065            public String getReason() {
066                    return _reason;
067            }
068    
069            public long getReportedUserId() {
070                    return _reportedUserId;
071            }
072    
073            public String getReporterEmailAddress() {
074                    return _reporterEmailAddress;
075            }
076    
077            public ServiceContext getServiceContext() {
078                    return _serviceContext;
079            }
080    
081            public void setClassName(String className) {
082                    _className = className;
083            }
084    
085            public void setClassPK(long classPK) {
086                    _classPK = classPK;
087            }
088    
089            public void setComments(String comments) {
090                    _comments = comments;
091            }
092    
093            public void setContentTitle(String contentTitle) {
094                    _contentTitle = contentTitle;
095            }
096    
097            public void setContentURL(String contentURL) {
098                    _contentURL = contentURL;
099            }
100    
101            public void setReason(String reason) {
102                    this._reason = reason;
103            }
104    
105            public void setReportedUserId(long reportedUserId) {
106                    _reportedUserId = reportedUserId;
107            }
108    
109            public void setReporterEmailAddress(String reporterEmailAddress) {
110                    _reporterEmailAddress = reporterEmailAddress;
111            }
112    
113            public void setServiceContext(ServiceContext serviceContext) {
114                    _serviceContext = serviceContext;
115            }
116    
117            public String toString() {
118                    StringBuilder sb = new StringBuilder();
119    
120                    sb.append("{className=");
121                    sb.append(_className);
122                    sb.append(", classPK=");
123                    sb.append(_classPK);
124                    sb.append(", comments=");
125                    sb.append(_comments);
126                    sb.append(", contentTitle=");
127                    sb.append(_contentTitle);
128                    sb.append(", contentURL=");
129                    sb.append(_contentURL);
130                    sb.append(", reason=");
131                    sb.append(_reason);
132                    sb.append(", reportedUserId=");
133                    sb.append(_reportedUserId);
134                    sb.append(", reporterEmailAddress=");
135                    sb.append(_reporterEmailAddress);
136                    sb.append(", serviceContext=");
137                    sb.append(_serviceContext);
138                    sb.append("}");
139    
140                    return sb.toString();
141            }
142    
143            private String _className;
144            private long _classPK;
145            private String _comments;
146            private String _contentTitle;
147            private String _contentURL;
148            private String _reason;
149            private long _reportedUserId;
150            private String _reporterEmailAddress;
151            private ServiceContext _serviceContext;
152    
153    }