1
14
15 package com.liferay.portlet.wiki.service;
16
17 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18 import com.liferay.portal.kernel.util.MethodCache;
19 import com.liferay.portal.kernel.util.ReferenceRegistry;
20
21
41 public class WikiPageResourceLocalServiceUtil {
42 public static com.liferay.portlet.wiki.model.WikiPageResource addWikiPageResource(
43 com.liferay.portlet.wiki.model.WikiPageResource wikiPageResource)
44 throws com.liferay.portal.SystemException {
45 return getService().addWikiPageResource(wikiPageResource);
46 }
47
48 public static com.liferay.portlet.wiki.model.WikiPageResource createWikiPageResource(
49 long resourcePrimKey) {
50 return getService().createWikiPageResource(resourcePrimKey);
51 }
52
53 public static void deleteWikiPageResource(long resourcePrimKey)
54 throws com.liferay.portal.PortalException,
55 com.liferay.portal.SystemException {
56 getService().deleteWikiPageResource(resourcePrimKey);
57 }
58
59 public static void deleteWikiPageResource(
60 com.liferay.portlet.wiki.model.WikiPageResource wikiPageResource)
61 throws com.liferay.portal.SystemException {
62 getService().deleteWikiPageResource(wikiPageResource);
63 }
64
65 @SuppressWarnings("rawtypes")
66 public static java.util.List dynamicQuery(
67 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
68 throws com.liferay.portal.SystemException {
69 return getService().dynamicQuery(dynamicQuery);
70 }
71
72 @SuppressWarnings("rawtypes")
73 public static java.util.List dynamicQuery(
74 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
75 int end) throws com.liferay.portal.SystemException {
76 return getService().dynamicQuery(dynamicQuery, start, end);
77 }
78
79 @SuppressWarnings("rawtypes")
80 public static java.util.List dynamicQuery(
81 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
82 int end,
83 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
84 throws com.liferay.portal.SystemException {
85 return getService()
86 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
87 }
88
89 public static int dynamicQueryCount(
90 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
91 throws com.liferay.portal.SystemException {
92 return getService().dynamicQueryCount(dynamicQuery);
93 }
94
95 public static com.liferay.portlet.wiki.model.WikiPageResource getWikiPageResource(
96 long resourcePrimKey)
97 throws com.liferay.portal.PortalException,
98 com.liferay.portal.SystemException {
99 return getService().getWikiPageResource(resourcePrimKey);
100 }
101
102 public static java.util.List<com.liferay.portlet.wiki.model.WikiPageResource> getWikiPageResources(
103 int start, int end) throws com.liferay.portal.SystemException {
104 return getService().getWikiPageResources(start, end);
105 }
106
107 public static int getWikiPageResourcesCount()
108 throws com.liferay.portal.SystemException {
109 return getService().getWikiPageResourcesCount();
110 }
111
112 public static com.liferay.portlet.wiki.model.WikiPageResource updateWikiPageResource(
113 com.liferay.portlet.wiki.model.WikiPageResource wikiPageResource)
114 throws com.liferay.portal.SystemException {
115 return getService().updateWikiPageResource(wikiPageResource);
116 }
117
118 public static com.liferay.portlet.wiki.model.WikiPageResource updateWikiPageResource(
119 com.liferay.portlet.wiki.model.WikiPageResource wikiPageResource,
120 boolean merge) throws com.liferay.portal.SystemException {
121 return getService().updateWikiPageResource(wikiPageResource, merge);
122 }
123
124 public static void deletePageResource(long nodeId, java.lang.String title)
125 throws com.liferay.portal.PortalException,
126 com.liferay.portal.SystemException {
127 getService().deletePageResource(nodeId, title);
128 }
129
130 public static com.liferay.portlet.wiki.model.WikiPageResource getPageResource(
131 long pageResourcePrimKey)
132 throws com.liferay.portal.PortalException,
133 com.liferay.portal.SystemException {
134 return getService().getPageResource(pageResourcePrimKey);
135 }
136
137 public static long getPageResourcePrimKey(long nodeId,
138 java.lang.String title) throws com.liferay.portal.SystemException {
139 return getService().getPageResourcePrimKey(nodeId, title);
140 }
141
142 public static WikiPageResourceLocalService getService() {
143 if (_service == null) {
144 _service = (WikiPageResourceLocalService)PortalBeanLocatorUtil.locate(WikiPageResourceLocalService.class.getName());
145
146 ReferenceRegistry.registerReference(WikiPageResourceLocalServiceUtil.class,
147 "_service");
148 MethodCache.remove(WikiPageResourceLocalService.class);
149 }
150
151 return _service;
152 }
153
154 public void setService(WikiPageResourceLocalService service) {
155 MethodCache.remove(WikiPageResourceLocalService.class);
156
157 _service = service;
158
159 ReferenceRegistry.registerReference(WikiPageResourceLocalServiceUtil.class,
160 "_service");
161 MethodCache.remove(WikiPageResourceLocalService.class);
162 }
163
164 private static WikiPageResourceLocalService _service;
165 }