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="WikiPageResourceLocalServiceUtil.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.WikiPageResourceLocalService</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.WikiPageResourceLocalServiceFactory</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.WikiPageResourceLocalService
047: * @see com.liferay.portlet.wiki.service.WikiPageResourceLocalServiceFactory
048: *
049: */
050: public class WikiPageResourceLocalServiceUtil {
051: public static com.liferay.portlet.wiki.model.WikiPageResource addWikiPageResource(
052: com.liferay.portlet.wiki.model.WikiPageResource model)
053: throws com.liferay.portal.SystemException {
054: WikiPageResourceLocalService wikiPageResourceLocalService = WikiPageResourceLocalServiceFactory
055: .getService();
056:
057: return wikiPageResourceLocalService.addWikiPageResource(model);
058: }
059:
060: public static java.util.List dynamicQuery(
061: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
062: throws com.liferay.portal.SystemException {
063: WikiPageResourceLocalService wikiPageResourceLocalService = WikiPageResourceLocalServiceFactory
064: .getService();
065:
066: return wikiPageResourceLocalService
067: .dynamicQuery(queryInitializer);
068: }
069:
070: public static java.util.List dynamicQuery(
071: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
072: int begin, int end)
073: throws com.liferay.portal.SystemException {
074: WikiPageResourceLocalService wikiPageResourceLocalService = WikiPageResourceLocalServiceFactory
075: .getService();
076:
077: return wikiPageResourceLocalService.dynamicQuery(
078: queryInitializer, begin, end);
079: }
080:
081: public static com.liferay.portlet.wiki.model.WikiPageResource updateWikiPageResource(
082: com.liferay.portlet.wiki.model.WikiPageResource model)
083: throws com.liferay.portal.SystemException {
084: WikiPageResourceLocalService wikiPageResourceLocalService = WikiPageResourceLocalServiceFactory
085: .getService();
086:
087: return wikiPageResourceLocalService
088: .updateWikiPageResource(model);
089: }
090:
091: public static com.liferay.portlet.wiki.service.persistence.WikiNodePersistence getWikiNodePersistence() {
092: WikiPageResourceLocalService wikiPageResourceLocalService = WikiPageResourceLocalServiceFactory
093: .getService();
094:
095: return wikiPageResourceLocalService.getWikiNodePersistence();
096: }
097:
098: public static void setWikiNodePersistence(
099: com.liferay.portlet.wiki.service.persistence.WikiNodePersistence wikiNodePersistence) {
100: WikiPageResourceLocalService wikiPageResourceLocalService = WikiPageResourceLocalServiceFactory
101: .getService();
102:
103: wikiPageResourceLocalService
104: .setWikiNodePersistence(wikiNodePersistence);
105: }
106:
107: public static com.liferay.portlet.wiki.service.persistence.WikiPagePersistence getWikiPagePersistence() {
108: WikiPageResourceLocalService wikiPageResourceLocalService = WikiPageResourceLocalServiceFactory
109: .getService();
110:
111: return wikiPageResourceLocalService.getWikiPagePersistence();
112: }
113:
114: public static void setWikiPagePersistence(
115: com.liferay.portlet.wiki.service.persistence.WikiPagePersistence wikiPagePersistence) {
116: WikiPageResourceLocalService wikiPageResourceLocalService = WikiPageResourceLocalServiceFactory
117: .getService();
118:
119: wikiPageResourceLocalService
120: .setWikiPagePersistence(wikiPagePersistence);
121: }
122:
123: public static com.liferay.portlet.wiki.service.persistence.WikiPageFinder getWikiPageFinder() {
124: WikiPageResourceLocalService wikiPageResourceLocalService = WikiPageResourceLocalServiceFactory
125: .getService();
126:
127: return wikiPageResourceLocalService.getWikiPageFinder();
128: }
129:
130: public static void setWikiPageFinder(
131: com.liferay.portlet.wiki.service.persistence.WikiPageFinder wikiPageFinder) {
132: WikiPageResourceLocalService wikiPageResourceLocalService = WikiPageResourceLocalServiceFactory
133: .getService();
134:
135: wikiPageResourceLocalService.setWikiPageFinder(wikiPageFinder);
136: }
137:
138: public static com.liferay.portlet.wiki.service.persistence.WikiPageResourcePersistence getWikiPageResourcePersistence() {
139: WikiPageResourceLocalService wikiPageResourceLocalService = WikiPageResourceLocalServiceFactory
140: .getService();
141:
142: return wikiPageResourceLocalService
143: .getWikiPageResourcePersistence();
144: }
145:
146: public static void setWikiPageResourcePersistence(
147: com.liferay.portlet.wiki.service.persistence.WikiPageResourcePersistence wikiPageResourcePersistence) {
148: WikiPageResourceLocalService wikiPageResourceLocalService = WikiPageResourceLocalServiceFactory
149: .getService();
150:
151: wikiPageResourceLocalService
152: .setWikiPageResourcePersistence(wikiPageResourcePersistence);
153: }
154:
155: public static void afterPropertiesSet() {
156: WikiPageResourceLocalService wikiPageResourceLocalService = WikiPageResourceLocalServiceFactory
157: .getService();
158:
159: wikiPageResourceLocalService.afterPropertiesSet();
160: }
161:
162: public static void deletePageResource(long nodeId,
163: java.lang.String title)
164: throws com.liferay.portal.PortalException,
165: com.liferay.portal.SystemException {
166: WikiPageResourceLocalService wikiPageResourceLocalService = WikiPageResourceLocalServiceFactory
167: .getService();
168:
169: wikiPageResourceLocalService.deletePageResource(nodeId, title);
170: }
171:
172: public static com.liferay.portlet.wiki.model.WikiPageResource getPageResource(
173: long pageResourceId)
174: throws com.liferay.portal.PortalException,
175: com.liferay.portal.SystemException {
176: WikiPageResourceLocalService wikiPageResourceLocalService = WikiPageResourceLocalServiceFactory
177: .getService();
178:
179: return wikiPageResourceLocalService
180: .getPageResource(pageResourceId);
181: }
182:
183: public static long getPageResourcePrimKey(long nodeId,
184: java.lang.String title)
185: throws com.liferay.portal.PortalException,
186: com.liferay.portal.SystemException {
187: WikiPageResourceLocalService wikiPageResourceLocalService = WikiPageResourceLocalServiceFactory
188: .getService();
189:
190: return wikiPageResourceLocalService.getPageResourcePrimKey(
191: nodeId, title);
192: }
193: }
|