1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   *
13   */
14  
15  package com.liferay.portlet.flags.messaging;
16  
17  import com.liferay.portal.service.ServiceContext;
18  
19  import java.io.Serializable;
20  
21  /**
22   * <a href="FlagsRequest.java.html"><b><i>View Source</i></b></a>
23   *
24   * @author Michael C. Han
25   * @author Brian Wing Shun Chan
26   */
27  public class FlagsRequest implements Serializable {
28  
29      public FlagsRequest() {
30      }
31  
32      public FlagsRequest(
33          String className, long classPK, String reporterEmailAddress,
34          long reportedUserId, String contentTitle, String contentURL,
35          String reason, ServiceContext serviceContext) {
36  
37          _className = className;
38          _classPK = classPK;
39          _reporterEmailAddress = reporterEmailAddress;
40          _reportedUserId = reportedUserId;
41          _contentTitle = contentTitle;
42          _contentURL = contentURL;
43          _reason = reason;
44          _serviceContext = serviceContext;
45      }
46  
47      public String getClassName() {
48          return _className;
49      }
50  
51      public long getClassPK() {
52          return _classPK;
53      }
54  
55      public String getComments() {
56          return _comments;
57      }
58  
59      public String getContentTitle() {
60          return _contentTitle;
61      }
62  
63      public String getContentURL() {
64          return _contentURL;
65      }
66  
67      public String getReason() {
68          return _reason;
69      }
70  
71      public long getReportedUserId() {
72          return _reportedUserId;
73      }
74  
75      public String getReporterEmailAddress() {
76          return _reporterEmailAddress;
77      }
78  
79      public ServiceContext getServiceContext() {
80          return _serviceContext;
81      }
82  
83      public void setClassName(String className) {
84          _className = className;
85      }
86  
87      public void setClassPK(long classPK) {
88          _classPK = classPK;
89      }
90  
91      public void setComments(String comments) {
92          _comments = comments;
93      }
94  
95      public void setContentTitle(String contentTitle) {
96          _contentTitle = contentTitle;
97      }
98  
99      public void setContentURL(String contentURL) {
100         _contentURL = contentURL;
101     }
102 
103     public void setReason(String reason) {
104         this._reason = reason;
105     }
106 
107     public void setReportedUserId(long reportedUserId) {
108         _reportedUserId = reportedUserId;
109     }
110 
111     public void setReporterEmailAddress(String reporterEmailAddress) {
112         _reporterEmailAddress = reporterEmailAddress;
113     }
114 
115     public void setServiceContext(ServiceContext serviceContext) {
116         _serviceContext = serviceContext;
117     }
118 
119     public String toString() {
120         StringBuilder sb = new StringBuilder();
121 
122         sb.append("{className=");
123         sb.append(_className);
124         sb.append(", classPK=");
125         sb.append(_classPK);
126         sb.append(", comments=");
127         sb.append(_comments);
128         sb.append(", contentTitle=");
129         sb.append(_contentTitle);
130         sb.append(", contentURL=");
131         sb.append(_contentURL);
132         sb.append(", reason=");
133         sb.append(_reason);
134         sb.append(", reportedUserId=");
135         sb.append(_reportedUserId);
136         sb.append(", reporterEmailAddress=");
137         sb.append(_reporterEmailAddress);
138         sb.append(", serviceContext=");
139         sb.append(_serviceContext);
140         sb.append("}");
141 
142         return sb.toString();
143     }
144 
145     private String _className;
146     private long _classPK;
147     private String _comments;
148     private String _contentTitle;
149     private String _contentURL;
150     private String _reason;
151     private long _reportedUserId;
152     private String _reporterEmailAddress;
153     private ServiceContext _serviceContext;
154 
155 }