Source Code Cross Referenced for TagsEntryServiceHttp.java in  » Portal » liferay-portal-4.4.2 » com » liferay » portlet » tags » service » http » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Portal » liferay portal 4.4.2 » com.liferay.portlet.tags.service.http 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /**
002:         * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
003:         *
004:         * Permission is hereby granted, free of charge, to any person obtaining a copy
005:         * of this software and associated documentation files (the "Software"), to deal
006:         * in the Software without restriction, including without limitation the rights
007:         * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
008:         * copies of the Software, and to permit persons to whom the Software is
009:         * furnished to do so, subject to the following conditions:
010:         *
011:         * The above copyright notice and this permission notice shall be included in
012:         * all copies or substantial portions of the Software.
013:         *
014:         * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
015:         * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
016:         * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
017:         * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
018:         * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
019:         * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
020:         * SOFTWARE.
021:         */package com.liferay.portlet.tags.service.http;
022:
023:        import com.liferay.portal.kernel.log.Log;
024:        import com.liferay.portal.kernel.log.LogFactoryUtil;
025:        import com.liferay.portal.kernel.util.IntegerWrapper;
026:        import com.liferay.portal.kernel.util.LongWrapper;
027:        import com.liferay.portal.kernel.util.MethodWrapper;
028:        import com.liferay.portal.kernel.util.NullWrapper;
029:        import com.liferay.portal.security.auth.HttpPrincipal;
030:        import com.liferay.portal.service.http.TunnelUtil;
031:
032:        import com.liferay.portlet.tags.service.TagsEntryServiceUtil;
033:
034:        /**
035:         * <a href="TagsEntryServiceHttp.java.html"><b><i>View Source</i></b></a>
036:         *
037:         * <p>
038:         * ServiceBuilder generated this class. Modifications in this class will be
039:         * overwritten the next time is generated.
040:         * </p>
041:         *
042:         * <p>
043:         * This class provides a HTTP utility for the
044:         * <code>com.liferay.portlet.tags.service.TagsEntryServiceUtil</code> service
045:         * utility. The static methods of this class calls the same methods of the
046:         * service utility. However, the signatures are different because it requires an
047:         * additional <code>com.liferay.portal.security.auth.HttpPrincipal</code>
048:         * parameter.
049:         * </p>
050:         *
051:         * <p>
052:         * The benefits of using the HTTP utility is that it is fast and allows for
053:         * tunneling without the cost of serializing to text. The drawback is that it
054:         * only works with Java.
055:         * </p>
056:         *
057:         * <p>
058:         * Set the property <code>tunnel.servlet.hosts.allowed</code> in
059:         * portal.properties to configure security.
060:         * </p>
061:         *
062:         * <p>
063:         * The HTTP utility is only generated for remote services.
064:         * </p>
065:         *
066:         * @author Brian Wing Shun Chan
067:         *
068:         * @see com.liferay.portal.security.auth.HttpPrincipal
069:         * @see com.liferay.portlet.tags.service.TagsEntryServiceUtil
070:         * @see com.liferay.portlet.tags.service.http.TagsEntryServiceSoap
071:         *
072:         */
073:        public class TagsEntryServiceHttp {
074:            public static com.liferay.portlet.tags.model.TagsEntry addEntry(
075:                    HttpPrincipal httpPrincipal, java.lang.String name)
076:                    throws com.liferay.portal.SystemException,
077:                    com.liferay.portal.PortalException {
078:                try {
079:                    Object paramObj0 = name;
080:
081:                    if (name == null) {
082:                        paramObj0 = new NullWrapper("java.lang.String");
083:                    }
084:
085:                    MethodWrapper methodWrapper = new MethodWrapper(
086:                            TagsEntryServiceUtil.class.getName(), "addEntry",
087:                            new Object[] { paramObj0 });
088:
089:                    Object returnObj = null;
090:
091:                    try {
092:                        returnObj = TunnelUtil.invoke(httpPrincipal,
093:                                methodWrapper);
094:                    } catch (Exception e) {
095:                        if (e instanceof  com.liferay.portal.SystemException) {
096:                            throw (com.liferay.portal.SystemException) e;
097:                        }
098:
099:                        if (e instanceof  com.liferay.portal.PortalException) {
100:                            throw (com.liferay.portal.PortalException) e;
101:                        }
102:
103:                        throw new com.liferay.portal.SystemException(e);
104:                    }
105:
106:                    return (com.liferay.portlet.tags.model.TagsEntry) returnObj;
107:                } catch (com.liferay.portal.SystemException se) {
108:                    _log.error(se, se);
109:
110:                    throw se;
111:                }
112:            }
113:
114:            public static com.liferay.portlet.tags.model.TagsEntry addEntry(
115:                    HttpPrincipal httpPrincipal, java.lang.String name,
116:                    java.lang.String[] properties)
117:                    throws com.liferay.portal.SystemException,
118:                    com.liferay.portal.PortalException {
119:                try {
120:                    Object paramObj0 = name;
121:
122:                    if (name == null) {
123:                        paramObj0 = new NullWrapper("java.lang.String");
124:                    }
125:
126:                    Object paramObj1 = properties;
127:
128:                    if (properties == null) {
129:                        paramObj1 = new NullWrapper("[Ljava.lang.String;");
130:                    }
131:
132:                    MethodWrapper methodWrapper = new MethodWrapper(
133:                            TagsEntryServiceUtil.class.getName(), "addEntry",
134:                            new Object[] { paramObj0, paramObj1 });
135:
136:                    Object returnObj = null;
137:
138:                    try {
139:                        returnObj = TunnelUtil.invoke(httpPrincipal,
140:                                methodWrapper);
141:                    } catch (Exception e) {
142:                        if (e instanceof  com.liferay.portal.SystemException) {
143:                            throw (com.liferay.portal.SystemException) e;
144:                        }
145:
146:                        if (e instanceof  com.liferay.portal.PortalException) {
147:                            throw (com.liferay.portal.PortalException) e;
148:                        }
149:
150:                        throw new com.liferay.portal.SystemException(e);
151:                    }
152:
153:                    return (com.liferay.portlet.tags.model.TagsEntry) returnObj;
154:                } catch (com.liferay.portal.SystemException se) {
155:                    _log.error(se, se);
156:
157:                    throw se;
158:                }
159:            }
160:
161:            public static void deleteEntry(HttpPrincipal httpPrincipal,
162:                    long entryId) throws com.liferay.portal.SystemException,
163:                    com.liferay.portal.PortalException {
164:                try {
165:                    Object paramObj0 = new LongWrapper(entryId);
166:
167:                    MethodWrapper methodWrapper = new MethodWrapper(
168:                            TagsEntryServiceUtil.class.getName(),
169:                            "deleteEntry", new Object[] { paramObj0 });
170:
171:                    try {
172:                        TunnelUtil.invoke(httpPrincipal, methodWrapper);
173:                    } catch (Exception e) {
174:                        if (e instanceof  com.liferay.portal.SystemException) {
175:                            throw (com.liferay.portal.SystemException) e;
176:                        }
177:
178:                        if (e instanceof  com.liferay.portal.PortalException) {
179:                            throw (com.liferay.portal.PortalException) e;
180:                        }
181:
182:                        throw new com.liferay.portal.SystemException(e);
183:                    }
184:                } catch (com.liferay.portal.SystemException se) {
185:                    _log.error(se, se);
186:
187:                    throw se;
188:                }
189:            }
190:
191:            public static java.util.List getEntries(
192:                    HttpPrincipal httpPrincipal, java.lang.String className,
193:                    long classPK) throws com.liferay.portal.SystemException,
194:                    com.liferay.portal.PortalException {
195:                try {
196:                    Object paramObj0 = className;
197:
198:                    if (className == null) {
199:                        paramObj0 = new NullWrapper("java.lang.String");
200:                    }
201:
202:                    Object paramObj1 = new LongWrapper(classPK);
203:
204:                    MethodWrapper methodWrapper = new MethodWrapper(
205:                            TagsEntryServiceUtil.class.getName(), "getEntries",
206:                            new Object[] { paramObj0, paramObj1 });
207:
208:                    Object returnObj = null;
209:
210:                    try {
211:                        returnObj = TunnelUtil.invoke(httpPrincipal,
212:                                methodWrapper);
213:                    } catch (Exception e) {
214:                        if (e instanceof  com.liferay.portal.SystemException) {
215:                            throw (com.liferay.portal.SystemException) e;
216:                        }
217:
218:                        if (e instanceof  com.liferay.portal.PortalException) {
219:                            throw (com.liferay.portal.PortalException) e;
220:                        }
221:
222:                        throw new com.liferay.portal.SystemException(e);
223:                    }
224:
225:                    return (java.util.List) returnObj;
226:                } catch (com.liferay.portal.SystemException se) {
227:                    _log.error(se, se);
228:
229:                    throw se;
230:                }
231:            }
232:
233:            public static java.util.List search(HttpPrincipal httpPrincipal,
234:                    long companyId, java.lang.String name,
235:                    java.lang.String[] properties)
236:                    throws com.liferay.portal.SystemException {
237:                try {
238:                    Object paramObj0 = new LongWrapper(companyId);
239:
240:                    Object paramObj1 = name;
241:
242:                    if (name == null) {
243:                        paramObj1 = new NullWrapper("java.lang.String");
244:                    }
245:
246:                    Object paramObj2 = properties;
247:
248:                    if (properties == null) {
249:                        paramObj2 = new NullWrapper("[Ljava.lang.String;");
250:                    }
251:
252:                    MethodWrapper methodWrapper = new MethodWrapper(
253:                            TagsEntryServiceUtil.class.getName(), "search",
254:                            new Object[] { paramObj0, paramObj1, paramObj2 });
255:
256:                    Object returnObj = null;
257:
258:                    try {
259:                        returnObj = TunnelUtil.invoke(httpPrincipal,
260:                                methodWrapper);
261:                    } catch (Exception e) {
262:                        if (e instanceof  com.liferay.portal.SystemException) {
263:                            throw (com.liferay.portal.SystemException) e;
264:                        }
265:
266:                        throw new com.liferay.portal.SystemException(e);
267:                    }
268:
269:                    return (java.util.List) returnObj;
270:                } catch (com.liferay.portal.SystemException se) {
271:                    _log.error(se, se);
272:
273:                    throw se;
274:                }
275:            }
276:
277:            public static java.util.List search(HttpPrincipal httpPrincipal,
278:                    long companyId, java.lang.String name,
279:                    java.lang.String[] properties, int begin, int end)
280:                    throws com.liferay.portal.SystemException {
281:                try {
282:                    Object paramObj0 = new LongWrapper(companyId);
283:
284:                    Object paramObj1 = name;
285:
286:                    if (name == null) {
287:                        paramObj1 = new NullWrapper("java.lang.String");
288:                    }
289:
290:                    Object paramObj2 = properties;
291:
292:                    if (properties == null) {
293:                        paramObj2 = new NullWrapper("[Ljava.lang.String;");
294:                    }
295:
296:                    Object paramObj3 = new IntegerWrapper(begin);
297:
298:                    Object paramObj4 = new IntegerWrapper(end);
299:
300:                    MethodWrapper methodWrapper = new MethodWrapper(
301:                            TagsEntryServiceUtil.class.getName(), "search",
302:                            new Object[] { paramObj0, paramObj1, paramObj2,
303:                                    paramObj3, paramObj4 });
304:
305:                    Object returnObj = null;
306:
307:                    try {
308:                        returnObj = TunnelUtil.invoke(httpPrincipal,
309:                                methodWrapper);
310:                    } catch (Exception e) {
311:                        if (e instanceof  com.liferay.portal.SystemException) {
312:                            throw (com.liferay.portal.SystemException) e;
313:                        }
314:
315:                        throw new com.liferay.portal.SystemException(e);
316:                    }
317:
318:                    return (java.util.List) returnObj;
319:                } catch (com.liferay.portal.SystemException se) {
320:                    _log.error(se, se);
321:
322:                    throw se;
323:                }
324:            }
325:
326:            public static com.liferay.portal.kernel.json.JSONArrayWrapper searchAutocomplete(
327:                    HttpPrincipal httpPrincipal, long companyId,
328:                    java.lang.String name, java.lang.String[] properties,
329:                    int begin, int end)
330:                    throws com.liferay.portal.SystemException {
331:                try {
332:                    Object paramObj0 = new LongWrapper(companyId);
333:
334:                    Object paramObj1 = name;
335:
336:                    if (name == null) {
337:                        paramObj1 = new NullWrapper("java.lang.String");
338:                    }
339:
340:                    Object paramObj2 = properties;
341:
342:                    if (properties == null) {
343:                        paramObj2 = new NullWrapper("[Ljava.lang.String;");
344:                    }
345:
346:                    Object paramObj3 = new IntegerWrapper(begin);
347:
348:                    Object paramObj4 = new IntegerWrapper(end);
349:
350:                    MethodWrapper methodWrapper = new MethodWrapper(
351:                            TagsEntryServiceUtil.class.getName(),
352:                            "searchAutocomplete",
353:                            new Object[] { paramObj0, paramObj1, paramObj2,
354:                                    paramObj3, paramObj4 });
355:
356:                    Object returnObj = null;
357:
358:                    try {
359:                        returnObj = TunnelUtil.invoke(httpPrincipal,
360:                                methodWrapper);
361:                    } catch (Exception e) {
362:                        if (e instanceof  com.liferay.portal.SystemException) {
363:                            throw (com.liferay.portal.SystemException) e;
364:                        }
365:
366:                        throw new com.liferay.portal.SystemException(e);
367:                    }
368:
369:                    return (com.liferay.portal.kernel.json.JSONArrayWrapper) returnObj;
370:                } catch (com.liferay.portal.SystemException se) {
371:                    _log.error(se, se);
372:
373:                    throw se;
374:                }
375:            }
376:
377:            public static int searchCount(HttpPrincipal httpPrincipal,
378:                    long companyId, java.lang.String name,
379:                    java.lang.String[] properties)
380:                    throws com.liferay.portal.SystemException {
381:                try {
382:                    Object paramObj0 = new LongWrapper(companyId);
383:
384:                    Object paramObj1 = name;
385:
386:                    if (name == null) {
387:                        paramObj1 = new NullWrapper("java.lang.String");
388:                    }
389:
390:                    Object paramObj2 = properties;
391:
392:                    if (properties == null) {
393:                        paramObj2 = new NullWrapper("[Ljava.lang.String;");
394:                    }
395:
396:                    MethodWrapper methodWrapper = new MethodWrapper(
397:                            TagsEntryServiceUtil.class.getName(),
398:                            "searchCount", new Object[] { paramObj0, paramObj1,
399:                                    paramObj2 });
400:
401:                    Object returnObj = null;
402:
403:                    try {
404:                        returnObj = TunnelUtil.invoke(httpPrincipal,
405:                                methodWrapper);
406:                    } catch (Exception e) {
407:                        if (e instanceof  com.liferay.portal.SystemException) {
408:                            throw (com.liferay.portal.SystemException) e;
409:                        }
410:
411:                        throw new com.liferay.portal.SystemException(e);
412:                    }
413:
414:                    return ((Integer) returnObj).intValue();
415:                } catch (com.liferay.portal.SystemException se) {
416:                    _log.error(se, se);
417:
418:                    throw se;
419:                }
420:            }
421:
422:            public static com.liferay.portlet.tags.model.TagsEntry updateEntry(
423:                    HttpPrincipal httpPrincipal, long entryId,
424:                    java.lang.String name)
425:                    throws com.liferay.portal.SystemException,
426:                    com.liferay.portal.PortalException {
427:                try {
428:                    Object paramObj0 = new LongWrapper(entryId);
429:
430:                    Object paramObj1 = name;
431:
432:                    if (name == null) {
433:                        paramObj1 = new NullWrapper("java.lang.String");
434:                    }
435:
436:                    MethodWrapper methodWrapper = new MethodWrapper(
437:                            TagsEntryServiceUtil.class.getName(),
438:                            "updateEntry",
439:                            new Object[] { paramObj0, paramObj1 });
440:
441:                    Object returnObj = null;
442:
443:                    try {
444:                        returnObj = TunnelUtil.invoke(httpPrincipal,
445:                                methodWrapper);
446:                    } catch (Exception e) {
447:                        if (e instanceof  com.liferay.portal.SystemException) {
448:                            throw (com.liferay.portal.SystemException) e;
449:                        }
450:
451:                        if (e instanceof  com.liferay.portal.PortalException) {
452:                            throw (com.liferay.portal.PortalException) e;
453:                        }
454:
455:                        throw new com.liferay.portal.SystemException(e);
456:                    }
457:
458:                    return (com.liferay.portlet.tags.model.TagsEntry) returnObj;
459:                } catch (com.liferay.portal.SystemException se) {
460:                    _log.error(se, se);
461:
462:                    throw se;
463:                }
464:            }
465:
466:            public static com.liferay.portlet.tags.model.TagsEntry updateEntry(
467:                    HttpPrincipal httpPrincipal, long entryId,
468:                    java.lang.String name, java.lang.String[] properties)
469:                    throws com.liferay.portal.SystemException,
470:                    com.liferay.portal.PortalException {
471:                try {
472:                    Object paramObj0 = new LongWrapper(entryId);
473:
474:                    Object paramObj1 = name;
475:
476:                    if (name == null) {
477:                        paramObj1 = new NullWrapper("java.lang.String");
478:                    }
479:
480:                    Object paramObj2 = properties;
481:
482:                    if (properties == null) {
483:                        paramObj2 = new NullWrapper("[Ljava.lang.String;");
484:                    }
485:
486:                    MethodWrapper methodWrapper = new MethodWrapper(
487:                            TagsEntryServiceUtil.class.getName(),
488:                            "updateEntry", new Object[] { paramObj0, paramObj1,
489:                                    paramObj2 });
490:
491:                    Object returnObj = null;
492:
493:                    try {
494:                        returnObj = TunnelUtil.invoke(httpPrincipal,
495:                                methodWrapper);
496:                    } catch (Exception e) {
497:                        if (e instanceof  com.liferay.portal.SystemException) {
498:                            throw (com.liferay.portal.SystemException) e;
499:                        }
500:
501:                        if (e instanceof  com.liferay.portal.PortalException) {
502:                            throw (com.liferay.portal.PortalException) e;
503:                        }
504:
505:                        throw new com.liferay.portal.SystemException(e);
506:                    }
507:
508:                    return (com.liferay.portlet.tags.model.TagsEntry) returnObj;
509:                } catch (com.liferay.portal.SystemException se) {
510:                    _log.error(se, se);
511:
512:                    throw se;
513:                }
514:            }
515:
516:            private static Log _log = LogFactoryUtil
517:                    .getLog(TagsEntryServiceHttp.class);
518:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.