1
19
20 package com.liferay.portlet.journal.service;
21
22 import com.liferay.portal.PortalException;
23 import com.liferay.portal.SystemException;
24 import com.liferay.portal.kernel.annotation.Propagation;
25 import com.liferay.portal.kernel.annotation.Transactional;
26
27
51 @Transactional(rollbackFor = {
52 PortalException.class, SystemException.class})
53 public interface JournalTemplateService {
54 public com.liferay.portlet.journal.model.JournalTemplate addTemplate(
55 java.lang.String templateId, boolean autoTemplateId, long plid,
56 java.lang.String structureId, java.lang.String name,
57 java.lang.String description, java.lang.String xsl, boolean formatXsl,
58 java.lang.String langType, boolean cacheable, boolean smallImage,
59 java.lang.String smallImageURL, java.io.File smallFile,
60 boolean addCommunityPermissions, boolean addGuestPermissions)
61 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
62 com.liferay.portal.SystemException;
63
64 public com.liferay.portlet.journal.model.JournalTemplate addTemplate(
65 java.lang.String templateId, boolean autoTemplateId, long plid,
66 java.lang.String structureId, java.lang.String name,
67 java.lang.String description, java.lang.String xsl, boolean formatXsl,
68 java.lang.String langType, boolean cacheable, boolean smallImage,
69 java.lang.String smallImageURL, java.io.File smallFile,
70 java.lang.String[] communityPermissions,
71 java.lang.String[] guestPermissions)
72 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
73 com.liferay.portal.SystemException;
74
75 public com.liferay.portlet.journal.model.JournalTemplate copyTemplate(
76 long groupId, java.lang.String oldTemplateId,
77 java.lang.String newTemplateId, boolean autoTemplateId)
78 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
79 com.liferay.portal.SystemException;
80
81 public void deleteTemplate(long groupId, java.lang.String templateId)
82 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
83 com.liferay.portal.SystemException;
84
85 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
86 public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> getStructureTemplates(
87 long groupId, java.lang.String structureId)
88 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
89 com.liferay.portal.SystemException;
90
91 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
92 public com.liferay.portlet.journal.model.JournalTemplate getTemplate(
93 long groupId, java.lang.String templateId)
94 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
95 com.liferay.portal.SystemException;
96
97 public com.liferay.portlet.journal.model.JournalTemplate updateTemplate(
98 long groupId, java.lang.String templateId,
99 java.lang.String structureId, java.lang.String name,
100 java.lang.String description, java.lang.String xsl, boolean formatXsl,
101 java.lang.String langType, boolean cacheable, boolean smallImage,
102 java.lang.String smallImageURL, java.io.File smallFile)
103 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
104 com.liferay.portal.SystemException;
105 }