001
014
015 package com.liferay.portlet.journal.service;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018 import com.liferay.portal.kernel.util.ReferenceRegistry;
019
020
036 public class JournalStructureLocalServiceUtil {
037
042
043
048 public static java.lang.String getBeanIdentifier() {
049 return getService().getBeanIdentifier();
050 }
051
052
057 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
058 getService().setBeanIdentifier(beanIdentifier);
059 }
060
061 public static com.liferay.portlet.journal.model.JournalStructure addJournalStructure(
062 com.liferay.portlet.journal.model.JournalStructure structure)
063 throws com.liferay.portal.kernel.exception.PortalException,
064 com.liferay.portal.kernel.exception.SystemException {
065 return getService().addJournalStructure(structure);
066 }
067
068 public static com.liferay.portlet.journal.model.JournalStructure addStructure(
069 long userId, long groupId, java.lang.String structureId,
070 boolean autoStructureId, java.lang.String parentStructureId,
071 java.util.Map<java.util.Locale, java.lang.String> nameMap,
072 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
073 java.lang.String xsd,
074 com.liferay.portal.service.ServiceContext serviceContext)
075 throws com.liferay.portal.kernel.exception.PortalException,
076 com.liferay.portal.kernel.exception.SystemException {
077 return getService()
078 .addStructure(userId, groupId, structureId, autoStructureId,
079 parentStructureId, nameMap, descriptionMap, xsd, serviceContext);
080 }
081
082 public static void addStructureResources(
083 com.liferay.portlet.journal.model.JournalStructure structure,
084 boolean addGroupPermissions, boolean addGuestPermissions)
085 throws com.liferay.portal.kernel.exception.PortalException,
086 com.liferay.portal.kernel.exception.SystemException {
087 getService()
088 .addStructureResources(structure, addGroupPermissions,
089 addGuestPermissions);
090 }
091
092 public static void addStructureResources(
093 com.liferay.portlet.journal.model.JournalStructure structure,
094 java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
095 throws com.liferay.portal.kernel.exception.PortalException,
096 com.liferay.portal.kernel.exception.SystemException {
097 getService()
098 .addStructureResources(structure, groupPermissions, guestPermissions);
099 }
100
101 public static void addStructureResources(long groupId,
102 java.lang.String structureId, boolean addGroupPermissions,
103 boolean addGuestPermissions)
104 throws com.liferay.portal.kernel.exception.PortalException,
105 com.liferay.portal.kernel.exception.SystemException {
106 getService()
107 .addStructureResources(groupId, structureId, addGroupPermissions,
108 addGuestPermissions);
109 }
110
111 public static void addStructureResources(long groupId,
112 java.lang.String structureId, java.lang.String[] groupPermissions,
113 java.lang.String[] guestPermissions)
114 throws com.liferay.portal.kernel.exception.PortalException,
115 com.liferay.portal.kernel.exception.SystemException {
116 getService()
117 .addStructureResources(groupId, structureId, groupPermissions,
118 guestPermissions);
119 }
120
121 public static void checkNewLine(long groupId, java.lang.String structureId)
122 throws com.liferay.portal.kernel.exception.PortalException,
123 com.liferay.portal.kernel.exception.SystemException {
124 getService().checkNewLine(groupId, structureId);
125 }
126
127 public static com.liferay.portlet.journal.model.JournalStructure copyStructure(
128 long userId, long groupId, java.lang.String oldStructureId,
129 java.lang.String newStructureId, boolean autoStructureId)
130 throws com.liferay.portal.kernel.exception.PortalException,
131 com.liferay.portal.kernel.exception.SystemException {
132 return getService()
133 .copyStructure(userId, groupId, oldStructureId,
134 newStructureId, autoStructureId);
135 }
136
137 public static com.liferay.portlet.journal.model.JournalStructure createJournalStructure(
138 long id) throws com.liferay.portal.kernel.exception.SystemException {
139 return getService().createJournalStructure(id);
140 }
141
142 public static void deleteStructure(
143 com.liferay.portlet.journal.model.JournalStructure structure)
144 throws com.liferay.portal.kernel.exception.PortalException,
145 com.liferay.portal.kernel.exception.SystemException {
146 getService().deleteStructure(structure);
147 }
148
149 public static void deleteStructure(long groupId,
150 java.lang.String structureId)
151 throws com.liferay.portal.kernel.exception.PortalException,
152 com.liferay.portal.kernel.exception.SystemException {
153 getService().deleteStructure(groupId, structureId);
154 }
155
156 public static void deleteStructures(long groupId)
157 throws com.liferay.portal.kernel.exception.PortalException,
158 com.liferay.portal.kernel.exception.SystemException {
159 getService().deleteStructures(groupId);
160 }
161
162 public static com.liferay.portlet.journal.model.JournalStructure fetchStructure(
163 long groupId, java.lang.String structureId)
164 throws com.liferay.portal.kernel.exception.SystemException {
165 return getService().fetchStructure(groupId, structureId);
166 }
167
168 public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> findAll()
169 throws com.liferay.portal.kernel.exception.SystemException {
170 return getService().findAll();
171 }
172
173 public static com.liferay.portlet.journal.model.JournalStructure getStructure(
174 long groupId, java.lang.String structureId)
175 throws com.liferay.portal.kernel.exception.PortalException,
176 com.liferay.portal.kernel.exception.SystemException {
177 return getService().getStructure(groupId, structureId);
178 }
179
180 public static com.liferay.portlet.journal.model.JournalStructure getStructure(
181 long groupId, java.lang.String structureId,
182 boolean includeGlobalStructures)
183 throws com.liferay.portal.kernel.exception.PortalException,
184 com.liferay.portal.kernel.exception.SystemException {
185 return getService()
186 .getStructure(groupId, structureId, includeGlobalStructures);
187 }
188
189 public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> getStructures()
190 throws com.liferay.portal.kernel.exception.SystemException {
191 return getService().getStructures();
192 }
193
194 public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> getStructures(
195 long groupId)
196 throws com.liferay.portal.kernel.exception.SystemException {
197 return getService().getStructures(groupId);
198 }
199
200 public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> getStructures(
201 long groupId, int start, int end)
202 throws com.liferay.portal.kernel.exception.SystemException {
203 return getService().getStructures(groupId, start, end);
204 }
205
206 public static int getStructuresCount(long groupId)
207 throws com.liferay.portal.kernel.exception.SystemException {
208 return getService().getStructuresCount(groupId);
209 }
210
211 public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> search(
212 long companyId, long[] groupIds, java.lang.String keywords, int start,
213 int end, com.liferay.portal.kernel.util.OrderByComparator obc)
214 throws com.liferay.portal.kernel.exception.SystemException {
215 return getService()
216 .search(companyId, groupIds, keywords, start, end, obc);
217 }
218
219 public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> search(
220 long companyId, long[] groupIds, java.lang.String structureId,
221 java.lang.String name, java.lang.String description,
222 boolean andOperator, int start, int end,
223 com.liferay.portal.kernel.util.OrderByComparator obc)
224 throws com.liferay.portal.kernel.exception.SystemException {
225 return getService()
226 .search(companyId, groupIds, structureId, name, description,
227 andOperator, start, end, obc);
228 }
229
230 public static int searchCount(long companyId, long[] groupIds,
231 java.lang.String keywords)
232 throws com.liferay.portal.kernel.exception.SystemException {
233 return getService().searchCount(companyId, groupIds, keywords);
234 }
235
236 public static int searchCount(long companyId, long[] groupIds,
237 java.lang.String structureId, java.lang.String name,
238 java.lang.String description, boolean andOperator)
239 throws com.liferay.portal.kernel.exception.SystemException {
240 return getService()
241 .searchCount(companyId, groupIds, structureId, name,
242 description, andOperator);
243 }
244
245 public static com.liferay.portlet.journal.model.JournalStructure updateJournalStructure(
246 com.liferay.portlet.journal.model.JournalStructure structure)
247 throws com.liferay.portal.kernel.exception.PortalException,
248 com.liferay.portal.kernel.exception.SystemException {
249 return getService().updateJournalStructure(structure);
250 }
251
252 public static com.liferay.portlet.journal.model.JournalStructure updateStructure(
253 long groupId, java.lang.String structureId,
254 java.lang.String parentStructureId,
255 java.util.Map<java.util.Locale, java.lang.String> nameMap,
256 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
257 java.lang.String xsd,
258 com.liferay.portal.service.ServiceContext serviceContext)
259 throws com.liferay.portal.kernel.exception.PortalException,
260 com.liferay.portal.kernel.exception.SystemException {
261 return getService()
262 .updateStructure(groupId, structureId, parentStructureId,
263 nameMap, descriptionMap, xsd, serviceContext);
264 }
265
266 public static JournalStructureLocalService getService() {
267 if (_service == null) {
268 _service = (JournalStructureLocalService)PortalBeanLocatorUtil.locate(JournalStructureLocalService.class.getName());
269
270 ReferenceRegistry.registerReference(JournalStructureLocalServiceUtil.class,
271 "_service");
272 }
273
274 return _service;
275 }
276
277
280 public void setService(JournalStructureLocalService service) {
281 }
282
283 private static JournalStructureLocalService _service;
284 }