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.wiki.service;
022:
023: /**
024: * <a href="WikiNodeServiceUtil.java.html"><b><i>View Source</i></b></a>
025: *
026: * <p>
027: * ServiceBuilder generated this class. Modifications in this class will be
028: * overwritten the next time is generated.
029: * </p>
030: *
031: * <p>
032: * This class provides static methods for the
033: * <code>com.liferay.portlet.wiki.service.WikiNodeService</code>
034: * bean. The static methods of this class calls the same methods of the bean
035: * instance. It's convenient to be able to just write one line to call a method
036: * on a bean instead of writing a lookup call and a method call.
037: * </p>
038: *
039: * <p>
040: * <code>com.liferay.portlet.wiki.service.WikiNodeServiceFactory</code>
041: * is responsible for the lookup of the bean.
042: * </p>
043: *
044: * @author Brian Wing Shun Chan
045: *
046: * @see com.liferay.portlet.wiki.service.WikiNodeService
047: * @see com.liferay.portlet.wiki.service.WikiNodeServiceFactory
048: *
049: */
050: public class WikiNodeServiceUtil {
051: public static com.liferay.portlet.wiki.model.WikiNode addNode(
052: long plid, java.lang.String name,
053: java.lang.String description,
054: boolean addCommunityPermissions, boolean addGuestPermissions)
055: throws com.liferay.portal.PortalException,
056: com.liferay.portal.SystemException,
057: java.rmi.RemoteException {
058: WikiNodeService wikiNodeService = WikiNodeServiceFactory
059: .getService();
060:
061: return wikiNodeService.addNode(plid, name, description,
062: addCommunityPermissions, addGuestPermissions);
063: }
064:
065: public static com.liferay.portlet.wiki.model.WikiNode addNode(
066: long plid, java.lang.String name,
067: java.lang.String description,
068: java.lang.String[] communityPermissions,
069: java.lang.String[] guestPermissions)
070: throws com.liferay.portal.PortalException,
071: com.liferay.portal.SystemException,
072: java.rmi.RemoteException {
073: WikiNodeService wikiNodeService = WikiNodeServiceFactory
074: .getService();
075:
076: return wikiNodeService.addNode(plid, name, description,
077: communityPermissions, guestPermissions);
078: }
079:
080: public static void deleteNode(long nodeId)
081: throws com.liferay.portal.PortalException,
082: com.liferay.portal.SystemException,
083: java.rmi.RemoteException {
084: WikiNodeService wikiNodeService = WikiNodeServiceFactory
085: .getService();
086:
087: wikiNodeService.deleteNode(nodeId);
088: }
089:
090: public static com.liferay.portlet.wiki.model.WikiNode getNode(
091: long nodeId) throws com.liferay.portal.PortalException,
092: com.liferay.portal.SystemException,
093: java.rmi.RemoteException {
094: WikiNodeService wikiNodeService = WikiNodeServiceFactory
095: .getService();
096:
097: return wikiNodeService.getNode(nodeId);
098: }
099:
100: public static com.liferay.portlet.wiki.model.WikiNode updateNode(
101: long nodeId, java.lang.String name,
102: java.lang.String description)
103: throws com.liferay.portal.PortalException,
104: com.liferay.portal.SystemException,
105: java.rmi.RemoteException {
106: WikiNodeService wikiNodeService = WikiNodeServiceFactory
107: .getService();
108:
109: return wikiNodeService.updateNode(nodeId, name, description);
110: }
111: }
|