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