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