1
14
15 package com.liferay.portlet.flags.service.http;
16
17 import com.liferay.portal.kernel.log.Log;
18 import com.liferay.portal.kernel.log.LogFactoryUtil;
19 import com.liferay.portal.kernel.util.LongWrapper;
20 import com.liferay.portal.kernel.util.MethodWrapper;
21 import com.liferay.portal.kernel.util.NullWrapper;
22 import com.liferay.portal.security.auth.HttpPrincipal;
23 import com.liferay.portal.service.http.TunnelUtil;
24
25 import com.liferay.portlet.flags.service.FlagsEntryServiceUtil;
26
27
64 public class FlagsEntryServiceHttp {
65 public static void addEntry(HttpPrincipal httpPrincipal,
66 java.lang.String className, long classPK,
67 java.lang.String reporterEmailAddress, long reportedUserId,
68 java.lang.String contentTitle, java.lang.String contentURL,
69 java.lang.String reason,
70 com.liferay.portal.service.ServiceContext serviceContext)
71 throws com.liferay.portal.kernel.exception.SystemException {
72 try {
73 Object paramObj0 = className;
74
75 if (className == null) {
76 paramObj0 = new NullWrapper("java.lang.String");
77 }
78
79 Object paramObj1 = new LongWrapper(classPK);
80
81 Object paramObj2 = reporterEmailAddress;
82
83 if (reporterEmailAddress == null) {
84 paramObj2 = new NullWrapper("java.lang.String");
85 }
86
87 Object paramObj3 = new LongWrapper(reportedUserId);
88
89 Object paramObj4 = contentTitle;
90
91 if (contentTitle == null) {
92 paramObj4 = new NullWrapper("java.lang.String");
93 }
94
95 Object paramObj5 = contentURL;
96
97 if (contentURL == null) {
98 paramObj5 = new NullWrapper("java.lang.String");
99 }
100
101 Object paramObj6 = reason;
102
103 if (reason == null) {
104 paramObj6 = new NullWrapper("java.lang.String");
105 }
106
107 Object paramObj7 = serviceContext;
108
109 if (serviceContext == null) {
110 paramObj7 = new NullWrapper(
111 "com.liferay.portal.service.ServiceContext");
112 }
113
114 MethodWrapper methodWrapper = new MethodWrapper(FlagsEntryServiceUtil.class.getName(),
115 "addEntry",
116 new Object[] {
117 paramObj0, paramObj1, paramObj2, paramObj3, paramObj4,
118 paramObj5, paramObj6, paramObj7
119 });
120
121 try {
122 TunnelUtil.invoke(httpPrincipal, methodWrapper);
123 }
124 catch (Exception e) {
125 throw new com.liferay.portal.kernel.exception.SystemException(e);
126 }
127 }
128 catch (com.liferay.portal.kernel.exception.SystemException se) {
129 _log.error(se, se);
130
131 throw se;
132 }
133 }
134
135 private static Log _log = LogFactoryUtil.getLog(FlagsEntryServiceHttp.class);
136 }