Source Code Cross Referenced for JournalStructureLocalServiceUtil.java in  » Portal » liferay-portal-4.4.2 » com » liferay » portlet » journal » service » 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.portlet.journal.service 
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.portlet.journal.service;
022:
023:        /**
024:         * <a href="JournalStructureLocalServiceUtil.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.journal.service.JournalStructureLocalService</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.journal.service.JournalStructureLocalServiceFactory</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.journal.service.JournalStructureLocalService
047:         * @see com.liferay.portlet.journal.service.JournalStructureLocalServiceFactory
048:         *
049:         */
050:        public class JournalStructureLocalServiceUtil {
051:            public static com.liferay.portlet.journal.model.JournalStructure addJournalStructure(
052:                    com.liferay.portlet.journal.model.JournalStructure model)
053:                    throws com.liferay.portal.SystemException {
054:                JournalStructureLocalService journalStructureLocalService = JournalStructureLocalServiceFactory
055:                        .getService();
056:
057:                return journalStructureLocalService.addJournalStructure(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:                JournalStructureLocalService journalStructureLocalService = JournalStructureLocalServiceFactory
064:                        .getService();
065:
066:                return journalStructureLocalService
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:                JournalStructureLocalService journalStructureLocalService = JournalStructureLocalServiceFactory
075:                        .getService();
076:
077:                return journalStructureLocalService.dynamicQuery(
078:                        queryInitializer, begin, end);
079:            }
080:
081:            public static com.liferay.portlet.journal.model.JournalStructure updateJournalStructure(
082:                    com.liferay.portlet.journal.model.JournalStructure model)
083:                    throws com.liferay.portal.SystemException {
084:                JournalStructureLocalService journalStructureLocalService = JournalStructureLocalServiceFactory
085:                        .getService();
086:
087:                return journalStructureLocalService
088:                        .updateJournalStructure(model);
089:            }
090:
091:            public static com.liferay.portlet.journal.service.persistence.JournalArticlePersistence getJournalArticlePersistence() {
092:                JournalStructureLocalService journalStructureLocalService = JournalStructureLocalServiceFactory
093:                        .getService();
094:
095:                return journalStructureLocalService
096:                        .getJournalArticlePersistence();
097:            }
098:
099:            public static void setJournalArticlePersistence(
100:                    com.liferay.portlet.journal.service.persistence.JournalArticlePersistence journalArticlePersistence) {
101:                JournalStructureLocalService journalStructureLocalService = JournalStructureLocalServiceFactory
102:                        .getService();
103:
104:                journalStructureLocalService
105:                        .setJournalArticlePersistence(journalArticlePersistence);
106:            }
107:
108:            public static com.liferay.portlet.journal.service.persistence.JournalArticleFinder getJournalArticleFinder() {
109:                JournalStructureLocalService journalStructureLocalService = JournalStructureLocalServiceFactory
110:                        .getService();
111:
112:                return journalStructureLocalService.getJournalArticleFinder();
113:            }
114:
115:            public static void setJournalArticleFinder(
116:                    com.liferay.portlet.journal.service.persistence.JournalArticleFinder journalArticleFinder) {
117:                JournalStructureLocalService journalStructureLocalService = JournalStructureLocalServiceFactory
118:                        .getService();
119:
120:                journalStructureLocalService
121:                        .setJournalArticleFinder(journalArticleFinder);
122:            }
123:
124:            public static com.liferay.portlet.journal.service.persistence.JournalArticleImagePersistence getJournalArticleImagePersistence() {
125:                JournalStructureLocalService journalStructureLocalService = JournalStructureLocalServiceFactory
126:                        .getService();
127:
128:                return journalStructureLocalService
129:                        .getJournalArticleImagePersistence();
130:            }
131:
132:            public static void setJournalArticleImagePersistence(
133:                    com.liferay.portlet.journal.service.persistence.JournalArticleImagePersistence journalArticleImagePersistence) {
134:                JournalStructureLocalService journalStructureLocalService = JournalStructureLocalServiceFactory
135:                        .getService();
136:
137:                journalStructureLocalService
138:                        .setJournalArticleImagePersistence(journalArticleImagePersistence);
139:            }
140:
141:            public static com.liferay.portlet.journal.service.persistence.JournalArticleResourcePersistence getJournalArticleResourcePersistence() {
142:                JournalStructureLocalService journalStructureLocalService = JournalStructureLocalServiceFactory
143:                        .getService();
144:
145:                return journalStructureLocalService
146:                        .getJournalArticleResourcePersistence();
147:            }
148:
149:            public static void setJournalArticleResourcePersistence(
150:                    com.liferay.portlet.journal.service.persistence.JournalArticleResourcePersistence journalArticleResourcePersistence) {
151:                JournalStructureLocalService journalStructureLocalService = JournalStructureLocalServiceFactory
152:                        .getService();
153:
154:                journalStructureLocalService
155:                        .setJournalArticleResourcePersistence(journalArticleResourcePersistence);
156:            }
157:
158:            public static com.liferay.portlet.journal.service.persistence.JournalContentSearchPersistence getJournalContentSearchPersistence() {
159:                JournalStructureLocalService journalStructureLocalService = JournalStructureLocalServiceFactory
160:                        .getService();
161:
162:                return journalStructureLocalService
163:                        .getJournalContentSearchPersistence();
164:            }
165:
166:            public static void setJournalContentSearchPersistence(
167:                    com.liferay.portlet.journal.service.persistence.JournalContentSearchPersistence journalContentSearchPersistence) {
168:                JournalStructureLocalService journalStructureLocalService = JournalStructureLocalServiceFactory
169:                        .getService();
170:
171:                journalStructureLocalService
172:                        .setJournalContentSearchPersistence(journalContentSearchPersistence);
173:            }
174:
175:            public static com.liferay.portlet.journal.service.persistence.JournalFeedPersistence getJournalFeedPersistence() {
176:                JournalStructureLocalService journalStructureLocalService = JournalStructureLocalServiceFactory
177:                        .getService();
178:
179:                return journalStructureLocalService.getJournalFeedPersistence();
180:            }
181:
182:            public static void setJournalFeedPersistence(
183:                    com.liferay.portlet.journal.service.persistence.JournalFeedPersistence journalFeedPersistence) {
184:                JournalStructureLocalService journalStructureLocalService = JournalStructureLocalServiceFactory
185:                        .getService();
186:
187:                journalStructureLocalService
188:                        .setJournalFeedPersistence(journalFeedPersistence);
189:            }
190:
191:            public static com.liferay.portlet.journal.service.persistence.JournalFeedFinder getJournalFeedFinder() {
192:                JournalStructureLocalService journalStructureLocalService = JournalStructureLocalServiceFactory
193:                        .getService();
194:
195:                return journalStructureLocalService.getJournalFeedFinder();
196:            }
197:
198:            public static void setJournalFeedFinder(
199:                    com.liferay.portlet.journal.service.persistence.JournalFeedFinder journalFeedFinder) {
200:                JournalStructureLocalService journalStructureLocalService = JournalStructureLocalServiceFactory
201:                        .getService();
202:
203:                journalStructureLocalService
204:                        .setJournalFeedFinder(journalFeedFinder);
205:            }
206:
207:            public static com.liferay.portlet.journal.service.persistence.JournalStructurePersistence getJournalStructurePersistence() {
208:                JournalStructureLocalService journalStructureLocalService = JournalStructureLocalServiceFactory
209:                        .getService();
210:
211:                return journalStructureLocalService
212:                        .getJournalStructurePersistence();
213:            }
214:
215:            public static void setJournalStructurePersistence(
216:                    com.liferay.portlet.journal.service.persistence.JournalStructurePersistence journalStructurePersistence) {
217:                JournalStructureLocalService journalStructureLocalService = JournalStructureLocalServiceFactory
218:                        .getService();
219:
220:                journalStructureLocalService
221:                        .setJournalStructurePersistence(journalStructurePersistence);
222:            }
223:
224:            public static com.liferay.portlet.journal.service.persistence.JournalStructureFinder getJournalStructureFinder() {
225:                JournalStructureLocalService journalStructureLocalService = JournalStructureLocalServiceFactory
226:                        .getService();
227:
228:                return journalStructureLocalService.getJournalStructureFinder();
229:            }
230:
231:            public static void setJournalStructureFinder(
232:                    com.liferay.portlet.journal.service.persistence.JournalStructureFinder journalStructureFinder) {
233:                JournalStructureLocalService journalStructureLocalService = JournalStructureLocalServiceFactory
234:                        .getService();
235:
236:                journalStructureLocalService
237:                        .setJournalStructureFinder(journalStructureFinder);
238:            }
239:
240:            public static com.liferay.portlet.journal.service.persistence.JournalTemplatePersistence getJournalTemplatePersistence() {
241:                JournalStructureLocalService journalStructureLocalService = JournalStructureLocalServiceFactory
242:                        .getService();
243:
244:                return journalStructureLocalService
245:                        .getJournalTemplatePersistence();
246:            }
247:
248:            public static void setJournalTemplatePersistence(
249:                    com.liferay.portlet.journal.service.persistence.JournalTemplatePersistence journalTemplatePersistence) {
250:                JournalStructureLocalService journalStructureLocalService = JournalStructureLocalServiceFactory
251:                        .getService();
252:
253:                journalStructureLocalService
254:                        .setJournalTemplatePersistence(journalTemplatePersistence);
255:            }
256:
257:            public static com.liferay.portlet.journal.service.persistence.JournalTemplateFinder getJournalTemplateFinder() {
258:                JournalStructureLocalService journalStructureLocalService = JournalStructureLocalServiceFactory
259:                        .getService();
260:
261:                return journalStructureLocalService.getJournalTemplateFinder();
262:            }
263:
264:            public static void setJournalTemplateFinder(
265:                    com.liferay.portlet.journal.service.persistence.JournalTemplateFinder journalTemplateFinder) {
266:                JournalStructureLocalService journalStructureLocalService = JournalStructureLocalServiceFactory
267:                        .getService();
268:
269:                journalStructureLocalService
270:                        .setJournalTemplateFinder(journalTemplateFinder);
271:            }
272:
273:            public static com.liferay.portal.service.persistence.ResourcePersistence getResourcePersistence() {
274:                JournalStructureLocalService journalStructureLocalService = JournalStructureLocalServiceFactory
275:                        .getService();
276:
277:                return journalStructureLocalService.getResourcePersistence();
278:            }
279:
280:            public static void setResourcePersistence(
281:                    com.liferay.portal.service.persistence.ResourcePersistence resourcePersistence) {
282:                JournalStructureLocalService journalStructureLocalService = JournalStructureLocalServiceFactory
283:                        .getService();
284:
285:                journalStructureLocalService
286:                        .setResourcePersistence(resourcePersistence);
287:            }
288:
289:            public static com.liferay.portal.service.persistence.ResourceFinder getResourceFinder() {
290:                JournalStructureLocalService journalStructureLocalService = JournalStructureLocalServiceFactory
291:                        .getService();
292:
293:                return journalStructureLocalService.getResourceFinder();
294:            }
295:
296:            public static void setResourceFinder(
297:                    com.liferay.portal.service.persistence.ResourceFinder resourceFinder) {
298:                JournalStructureLocalService journalStructureLocalService = JournalStructureLocalServiceFactory
299:                        .getService();
300:
301:                journalStructureLocalService.setResourceFinder(resourceFinder);
302:            }
303:
304:            public static com.liferay.portal.service.persistence.UserPersistence getUserPersistence() {
305:                JournalStructureLocalService journalStructureLocalService = JournalStructureLocalServiceFactory
306:                        .getService();
307:
308:                return journalStructureLocalService.getUserPersistence();
309:            }
310:
311:            public static void setUserPersistence(
312:                    com.liferay.portal.service.persistence.UserPersistence userPersistence) {
313:                JournalStructureLocalService journalStructureLocalService = JournalStructureLocalServiceFactory
314:                        .getService();
315:
316:                journalStructureLocalService
317:                        .setUserPersistence(userPersistence);
318:            }
319:
320:            public static com.liferay.portal.service.persistence.UserFinder getUserFinder() {
321:                JournalStructureLocalService journalStructureLocalService = JournalStructureLocalServiceFactory
322:                        .getService();
323:
324:                return journalStructureLocalService.getUserFinder();
325:            }
326:
327:            public static void setUserFinder(
328:                    com.liferay.portal.service.persistence.UserFinder userFinder) {
329:                JournalStructureLocalService journalStructureLocalService = JournalStructureLocalServiceFactory
330:                        .getService();
331:
332:                journalStructureLocalService.setUserFinder(userFinder);
333:            }
334:
335:            public static com.liferay.portal.service.persistence.WebDAVPropsPersistence getWebDAVPropsPersistence() {
336:                JournalStructureLocalService journalStructureLocalService = JournalStructureLocalServiceFactory
337:                        .getService();
338:
339:                return journalStructureLocalService.getWebDAVPropsPersistence();
340:            }
341:
342:            public static void setWebDAVPropsPersistence(
343:                    com.liferay.portal.service.persistence.WebDAVPropsPersistence webDAVPropsPersistence) {
344:                JournalStructureLocalService journalStructureLocalService = JournalStructureLocalServiceFactory
345:                        .getService();
346:
347:                journalStructureLocalService
348:                        .setWebDAVPropsPersistence(webDAVPropsPersistence);
349:            }
350:
351:            public static void afterPropertiesSet() {
352:                JournalStructureLocalService journalStructureLocalService = JournalStructureLocalServiceFactory
353:                        .getService();
354:
355:                journalStructureLocalService.afterPropertiesSet();
356:            }
357:
358:            public static com.liferay.portlet.journal.model.JournalStructure addStructure(
359:                    long userId, java.lang.String structureId,
360:                    boolean autoStructureId, long plid, java.lang.String name,
361:                    java.lang.String description, java.lang.String xsd,
362:                    boolean addCommunityPermissions, boolean addGuestPermissions)
363:                    throws com.liferay.portal.PortalException,
364:                    com.liferay.portal.SystemException {
365:                JournalStructureLocalService journalStructureLocalService = JournalStructureLocalServiceFactory
366:                        .getService();
367:
368:                return journalStructureLocalService.addStructure(userId,
369:                        structureId, autoStructureId, plid, name, description,
370:                        xsd, addCommunityPermissions, addGuestPermissions);
371:            }
372:
373:            public static com.liferay.portlet.journal.model.JournalStructure addStructure(
374:                    java.lang.String uuid, long userId,
375:                    java.lang.String structureId, boolean autoStructureId,
376:                    long plid, java.lang.String name,
377:                    java.lang.String description, java.lang.String xsd,
378:                    boolean addCommunityPermissions, boolean addGuestPermissions)
379:                    throws com.liferay.portal.PortalException,
380:                    com.liferay.portal.SystemException {
381:                JournalStructureLocalService journalStructureLocalService = JournalStructureLocalServiceFactory
382:                        .getService();
383:
384:                return journalStructureLocalService.addStructure(uuid, userId,
385:                        structureId, autoStructureId, plid, name, description,
386:                        xsd, addCommunityPermissions, addGuestPermissions);
387:            }
388:
389:            public static com.liferay.portlet.journal.model.JournalStructure addStructure(
390:                    long userId, java.lang.String structureId,
391:                    boolean autoStructureId, long plid, java.lang.String name,
392:                    java.lang.String description, java.lang.String xsd,
393:                    java.lang.String[] communityPermissions,
394:                    java.lang.String[] guestPermissions)
395:                    throws com.liferay.portal.PortalException,
396:                    com.liferay.portal.SystemException {
397:                JournalStructureLocalService journalStructureLocalService = JournalStructureLocalServiceFactory
398:                        .getService();
399:
400:                return journalStructureLocalService.addStructure(userId,
401:                        structureId, autoStructureId, plid, name, description,
402:                        xsd, communityPermissions, guestPermissions);
403:            }
404:
405:            public static com.liferay.portlet.journal.model.JournalStructure addStructure(
406:                    java.lang.String uuid, long userId,
407:                    java.lang.String structureId, boolean autoStructureId,
408:                    long plid, java.lang.String name,
409:                    java.lang.String description, java.lang.String xsd,
410:                    java.lang.Boolean addCommunityPermissions,
411:                    java.lang.Boolean addGuestPermissions,
412:                    java.lang.String[] communityPermissions,
413:                    java.lang.String[] guestPermissions)
414:                    throws com.liferay.portal.PortalException,
415:                    com.liferay.portal.SystemException {
416:                JournalStructureLocalService journalStructureLocalService = JournalStructureLocalServiceFactory
417:                        .getService();
418:
419:                return journalStructureLocalService.addStructure(uuid, userId,
420:                        structureId, autoStructureId, plid, name, description,
421:                        xsd, addCommunityPermissions, addGuestPermissions,
422:                        communityPermissions, guestPermissions);
423:            }
424:
425:            public static com.liferay.portlet.journal.model.JournalStructure addStructureToGroup(
426:                    java.lang.String uuid, long userId,
427:                    java.lang.String structureId, boolean autoStructureId,
428:                    long groupId, java.lang.String name,
429:                    java.lang.String description, java.lang.String xsd,
430:                    java.lang.Boolean addCommunityPermissions,
431:                    java.lang.Boolean addGuestPermissions,
432:                    java.lang.String[] communityPermissions,
433:                    java.lang.String[] guestPermissions)
434:                    throws com.liferay.portal.PortalException,
435:                    com.liferay.portal.SystemException {
436:                JournalStructureLocalService journalStructureLocalService = JournalStructureLocalServiceFactory
437:                        .getService();
438:
439:                return journalStructureLocalService.addStructureToGroup(uuid,
440:                        userId, structureId, autoStructureId, groupId, name,
441:                        description, xsd, addCommunityPermissions,
442:                        addGuestPermissions, communityPermissions,
443:                        guestPermissions);
444:            }
445:
446:            public static void addStructureResources(long groupId,
447:                    java.lang.String structureId,
448:                    boolean addCommunityPermissions, boolean addGuestPermissions)
449:                    throws com.liferay.portal.PortalException,
450:                    com.liferay.portal.SystemException {
451:                JournalStructureLocalService journalStructureLocalService = JournalStructureLocalServiceFactory
452:                        .getService();
453:
454:                journalStructureLocalService.addStructureResources(groupId,
455:                        structureId, addCommunityPermissions,
456:                        addGuestPermissions);
457:            }
458:
459:            public static void addStructureResources(
460:                    com.liferay.portlet.journal.model.JournalStructure structure,
461:                    boolean addCommunityPermissions, boolean addGuestPermissions)
462:                    throws com.liferay.portal.PortalException,
463:                    com.liferay.portal.SystemException {
464:                JournalStructureLocalService journalStructureLocalService = JournalStructureLocalServiceFactory
465:                        .getService();
466:
467:                journalStructureLocalService.addStructureResources(structure,
468:                        addCommunityPermissions, addGuestPermissions);
469:            }
470:
471:            public static void addStructureResources(long groupId,
472:                    java.lang.String structureId,
473:                    java.lang.String[] communityPermissions,
474:                    java.lang.String[] guestPermissions)
475:                    throws com.liferay.portal.PortalException,
476:                    com.liferay.portal.SystemException {
477:                JournalStructureLocalService journalStructureLocalService = JournalStructureLocalServiceFactory
478:                        .getService();
479:
480:                journalStructureLocalService.addStructureResources(groupId,
481:                        structureId, communityPermissions, guestPermissions);
482:            }
483:
484:            public static void addStructureResources(
485:                    com.liferay.portlet.journal.model.JournalStructure structure,
486:                    java.lang.String[] communityPermissions,
487:                    java.lang.String[] guestPermissions)
488:                    throws com.liferay.portal.PortalException,
489:                    com.liferay.portal.SystemException {
490:                JournalStructureLocalService journalStructureLocalService = JournalStructureLocalServiceFactory
491:                        .getService();
492:
493:                journalStructureLocalService.addStructureResources(structure,
494:                        communityPermissions, guestPermissions);
495:            }
496:
497:            public static void checkNewLine(long groupId,
498:                    java.lang.String structureId)
499:                    throws com.liferay.portal.PortalException,
500:                    com.liferay.portal.SystemException {
501:                JournalStructureLocalService journalStructureLocalService = JournalStructureLocalServiceFactory
502:                        .getService();
503:
504:                journalStructureLocalService.checkNewLine(groupId, structureId);
505:            }
506:
507:            public static void deleteStructure(long groupId,
508:                    java.lang.String structureId)
509:                    throws com.liferay.portal.PortalException,
510:                    com.liferay.portal.SystemException {
511:                JournalStructureLocalService journalStructureLocalService = JournalStructureLocalServiceFactory
512:                        .getService();
513:
514:                journalStructureLocalService.deleteStructure(groupId,
515:                        structureId);
516:            }
517:
518:            public static void deleteStructure(
519:                    com.liferay.portlet.journal.model.JournalStructure structure)
520:                    throws com.liferay.portal.PortalException,
521:                    com.liferay.portal.SystemException {
522:                JournalStructureLocalService journalStructureLocalService = JournalStructureLocalServiceFactory
523:                        .getService();
524:
525:                journalStructureLocalService.deleteStructure(structure);
526:            }
527:
528:            public static void deleteStructures(long groupId)
529:                    throws com.liferay.portal.PortalException,
530:                    com.liferay.portal.SystemException {
531:                JournalStructureLocalService journalStructureLocalService = JournalStructureLocalServiceFactory
532:                        .getService();
533:
534:                journalStructureLocalService.deleteStructures(groupId);
535:            }
536:
537:            public static com.liferay.portlet.journal.model.JournalStructure getStructure(
538:                    long id) throws com.liferay.portal.PortalException,
539:                    com.liferay.portal.SystemException {
540:                JournalStructureLocalService journalStructureLocalService = JournalStructureLocalServiceFactory
541:                        .getService();
542:
543:                return journalStructureLocalService.getStructure(id);
544:            }
545:
546:            public static com.liferay.portlet.journal.model.JournalStructure getStructure(
547:                    long groupId, java.lang.String structureId)
548:                    throws com.liferay.portal.PortalException,
549:                    com.liferay.portal.SystemException {
550:                JournalStructureLocalService journalStructureLocalService = JournalStructureLocalServiceFactory
551:                        .getService();
552:
553:                return journalStructureLocalService.getStructure(groupId,
554:                        structureId);
555:            }
556:
557:            public static java.util.List getStructures()
558:                    throws com.liferay.portal.SystemException {
559:                JournalStructureLocalService journalStructureLocalService = JournalStructureLocalServiceFactory
560:                        .getService();
561:
562:                return journalStructureLocalService.getStructures();
563:            }
564:
565:            public static java.util.List getStructures(long groupId)
566:                    throws com.liferay.portal.SystemException {
567:                JournalStructureLocalService journalStructureLocalService = JournalStructureLocalServiceFactory
568:                        .getService();
569:
570:                return journalStructureLocalService.getStructures(groupId);
571:            }
572:
573:            public static java.util.List getStructures(long groupId, int begin,
574:                    int end) throws com.liferay.portal.SystemException {
575:                JournalStructureLocalService journalStructureLocalService = JournalStructureLocalServiceFactory
576:                        .getService();
577:
578:                return journalStructureLocalService.getStructures(groupId,
579:                        begin, end);
580:            }
581:
582:            public static int getStructuresCount(long groupId)
583:                    throws com.liferay.portal.SystemException {
584:                JournalStructureLocalService journalStructureLocalService = JournalStructureLocalServiceFactory
585:                        .getService();
586:
587:                return journalStructureLocalService.getStructuresCount(groupId);
588:            }
589:
590:            public static java.util.List search(long companyId, long groupId,
591:                    java.lang.String keywords, int begin, int end,
592:                    com.liferay.portal.kernel.util.OrderByComparator obc)
593:                    throws com.liferay.portal.SystemException {
594:                JournalStructureLocalService journalStructureLocalService = JournalStructureLocalServiceFactory
595:                        .getService();
596:
597:                return journalStructureLocalService.search(companyId, groupId,
598:                        keywords, begin, end, obc);
599:            }
600:
601:            public static java.util.List search(long companyId, long groupId,
602:                    java.lang.String structureId, java.lang.String name,
603:                    java.lang.String description, boolean andOperator,
604:                    int begin, int end,
605:                    com.liferay.portal.kernel.util.OrderByComparator obc)
606:                    throws com.liferay.portal.SystemException {
607:                JournalStructureLocalService journalStructureLocalService = JournalStructureLocalServiceFactory
608:                        .getService();
609:
610:                return journalStructureLocalService.search(companyId, groupId,
611:                        structureId, name, description, andOperator, begin,
612:                        end, obc);
613:            }
614:
615:            public static int searchCount(long companyId, long groupId,
616:                    java.lang.String keywords)
617:                    throws com.liferay.portal.SystemException {
618:                JournalStructureLocalService journalStructureLocalService = JournalStructureLocalServiceFactory
619:                        .getService();
620:
621:                return journalStructureLocalService.searchCount(companyId,
622:                        groupId, keywords);
623:            }
624:
625:            public static int searchCount(long companyId, long groupId,
626:                    java.lang.String structureId, java.lang.String name,
627:                    java.lang.String description, boolean andOperator)
628:                    throws com.liferay.portal.SystemException {
629:                JournalStructureLocalService journalStructureLocalService = JournalStructureLocalServiceFactory
630:                        .getService();
631:
632:                return journalStructureLocalService.searchCount(companyId,
633:                        groupId, structureId, name, description, andOperator);
634:            }
635:
636:            public static com.liferay.portlet.journal.model.JournalStructure updateStructure(
637:                    long groupId, java.lang.String structureId,
638:                    java.lang.String name, java.lang.String description,
639:                    java.lang.String xsd)
640:                    throws com.liferay.portal.PortalException,
641:                    com.liferay.portal.SystemException {
642:                JournalStructureLocalService journalStructureLocalService = JournalStructureLocalServiceFactory
643:                        .getService();
644:
645:                return journalStructureLocalService.updateStructure(groupId,
646:                        structureId, name, description, xsd);
647:            }
648:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.