Source Code Cross Referenced for WebsiteServiceSoap.java in  » Portal » liferay-portal-4.4.2 » com » liferay » portal » 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.portal.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.portal.service.http;
022:
023:        import com.liferay.portal.kernel.log.Log;
024:        import com.liferay.portal.kernel.log.LogFactoryUtil;
025:        import com.liferay.portal.service.WebsiteServiceUtil;
026:
027:        import java.rmi.RemoteException;
028:
029:        /**
030:         * <a href="WebsiteServiceSoap.java.html"><b><i>View Source</i></b></a>
031:         *
032:         * <p>
033:         * ServiceBuilder generated this class. Modifications in this class will be
034:         * overwritten the next time is generated.
035:         * </p>
036:         *
037:         * <p>
038:         * This class provides a SOAP utility for the
039:         * <code>com.liferay.portal.service.WebsiteServiceUtil</code> service
040:         * utility. The static methods of this class calls the same methods of the
041:         * service utility. However, the signatures are different because it is
042:         * difficult for SOAP to support certain types.
043:         * </p>
044:         *
045:         * <p>
046:         * ServiceBuilder follows certain rules in translating the methods. For example,
047:         * if the method in the service utility returns a <code>java.util.List</code>,
048:         * that is translated to an array of
049:         * <code>com.liferay.portal.model.WebsiteSoap</code>. If the method in the
050:         * service utility returns a <code>com.liferay.portal.model.Website</code>,
051:         * that is translated to a <code>com.liferay.portal.model.WebsiteSoap</code>.
052:         * Methods that SOAP cannot safely wire are skipped.
053:         * </p>
054:         *
055:         * <p>
056:         * The benefits of using the SOAP utility is that it is cross platform
057:         * compatible. SOAP allows different languages like Java, .NET, C++, PHP, and
058:         * even Perl, to call the generated services. One drawback of SOAP is that it is
059:         * slow because it needs to serialize all calls into a text format (XML).
060:         * </p>
061:         *
062:         * <p>
063:         * You can see a list of services at
064:         * http://localhost:8080/tunnel-web/secure/axis. Set the property
065:         * <code>tunnel.servlet.hosts.allowed</code> in portal.properties to configure
066:         * security.
067:         * </p>
068:         *
069:         * <p>
070:         * The SOAP utility is only generated for remote services.
071:         * </p>
072:         *
073:         * @author Brian Wing Shun Chan
074:         *
075:         * @see com.liferay.portal.service.WebsiteServiceUtil
076:         * @see com.liferay.portal.service.http.WebsiteServiceHttp
077:         * @see com.liferay.portal.service.model.WebsiteSoap
078:         *
079:         */
080:        public class WebsiteServiceSoap {
081:            public static com.liferay.portal.model.WebsiteSoap addWebsite(
082:                    java.lang.String className, long classPK,
083:                    java.lang.String url, int typeId, boolean primary)
084:                    throws RemoteException {
085:                try {
086:                    com.liferay.portal.model.Website returnValue = WebsiteServiceUtil
087:                            .addWebsite(className, classPK, url, typeId,
088:                                    primary);
089:
090:                    return com.liferay.portal.model.WebsiteSoap
091:                            .toSoapModel(returnValue);
092:                } catch (Exception e) {
093:                    _log.error(e, e);
094:
095:                    throw new RemoteException(e.getMessage());
096:                }
097:            }
098:
099:            public static void deleteWebsite(long websiteId)
100:                    throws RemoteException {
101:                try {
102:                    WebsiteServiceUtil.deleteWebsite(websiteId);
103:                } catch (Exception e) {
104:                    _log.error(e, e);
105:
106:                    throw new RemoteException(e.getMessage());
107:                }
108:            }
109:
110:            public static com.liferay.portal.model.WebsiteSoap getWebsite(
111:                    long websiteId) throws RemoteException {
112:                try {
113:                    com.liferay.portal.model.Website returnValue = WebsiteServiceUtil
114:                            .getWebsite(websiteId);
115:
116:                    return com.liferay.portal.model.WebsiteSoap
117:                            .toSoapModel(returnValue);
118:                } catch (Exception e) {
119:                    _log.error(e, e);
120:
121:                    throw new RemoteException(e.getMessage());
122:                }
123:            }
124:
125:            public static com.liferay.portal.model.WebsiteSoap[] getWebsites(
126:                    java.lang.String className, long classPK)
127:                    throws RemoteException {
128:                try {
129:                    java.util.List returnValue = WebsiteServiceUtil
130:                            .getWebsites(className, classPK);
131:
132:                    return com.liferay.portal.model.WebsiteSoap
133:                            .toSoapModels(returnValue);
134:                } catch (Exception e) {
135:                    _log.error(e, e);
136:
137:                    throw new RemoteException(e.getMessage());
138:                }
139:            }
140:
141:            public static com.liferay.portal.model.WebsiteSoap updateWebsite(
142:                    long websiteId, java.lang.String url, int typeId,
143:                    boolean primary) throws RemoteException {
144:                try {
145:                    com.liferay.portal.model.Website returnValue = WebsiteServiceUtil
146:                            .updateWebsite(websiteId, url, typeId, primary);
147:
148:                    return com.liferay.portal.model.WebsiteSoap
149:                            .toSoapModel(returnValue);
150:                } catch (Exception e) {
151:                    _log.error(e, e);
152:
153:                    throw new RemoteException(e.getMessage());
154:                }
155:            }
156:
157:            private static Log _log = LogFactoryUtil
158:                    .getLog(WebsiteServiceSoap.class);
159:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.