001
014
015 package com.liferay.portlet.flags.messaging;
016
017 import com.liferay.portal.service.ServiceContext;
018
019 import java.io.Serializable;
020
021
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 @Override
118 public String toString() {
119 StringBuilder sb = new StringBuilder();
120
121 sb.append("{className=");
122 sb.append(_className);
123 sb.append(", classPK=");
124 sb.append(_classPK);
125 sb.append(", comments=");
126 sb.append(_comments);
127 sb.append(", contentTitle=");
128 sb.append(_contentTitle);
129 sb.append(", contentURL=");
130 sb.append(_contentURL);
131 sb.append(", reason=");
132 sb.append(_reason);
133 sb.append(", reportedUserId=");
134 sb.append(_reportedUserId);
135 sb.append(", reporterEmailAddress=");
136 sb.append(_reporterEmailAddress);
137 sb.append(", serviceContext=");
138 sb.append(_serviceContext);
139 sb.append("}");
140
141 return sb.toString();
142 }
143
144 private String _className;
145 private long _classPK;
146 private String _comments;
147 private String _contentTitle;
148 private String _contentURL;
149 private String _reason;
150 private long _reportedUserId;
151 private String _reporterEmailAddress;
152 private ServiceContext _serviceContext;
153
154 }