1
22
23 package com.liferay.portlet.journal.service;
24
25
26
50 public interface JournalTemplateLocalService {
51 public com.liferay.portlet.journal.model.JournalTemplate addJournalTemplate(
52 com.liferay.portlet.journal.model.JournalTemplate journalTemplate)
53 throws com.liferay.portal.SystemException;
54
55 public void deleteJournalTemplate(long id)
56 throws com.liferay.portal.SystemException,
57 com.liferay.portal.PortalException;
58
59 public void deleteJournalTemplate(
60 com.liferay.portlet.journal.model.JournalTemplate journalTemplate)
61 throws com.liferay.portal.SystemException;
62
63 public java.util.List<Object> dynamicQuery(
64 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
65 throws com.liferay.portal.SystemException;
66
67 public java.util.List<Object> dynamicQuery(
68 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
69 int end) throws com.liferay.portal.SystemException;
70
71 public com.liferay.portlet.journal.model.JournalTemplate getJournalTemplate(
72 long id)
73 throws com.liferay.portal.SystemException,
74 com.liferay.portal.PortalException;
75
76 public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> getJournalTemplates(
77 int start, int end) throws com.liferay.portal.SystemException;
78
79 public int getJournalTemplatesCount()
80 throws com.liferay.portal.SystemException;
81
82 public com.liferay.portlet.journal.model.JournalTemplate updateJournalTemplate(
83 com.liferay.portlet.journal.model.JournalTemplate journalTemplate)
84 throws com.liferay.portal.SystemException;
85
86 public com.liferay.portlet.journal.model.JournalTemplate addTemplate(
87 long userId, java.lang.String templateId, boolean autoTemplateId,
88 long plid, java.lang.String structureId, java.lang.String name,
89 java.lang.String description, java.lang.String xsl, boolean formatXsl,
90 java.lang.String langType, boolean cacheable, boolean smallImage,
91 java.lang.String smallImageURL, java.io.File smallFile,
92 boolean addCommunityPermissions, boolean addGuestPermissions)
93 throws com.liferay.portal.PortalException,
94 com.liferay.portal.SystemException;
95
96 public com.liferay.portlet.journal.model.JournalTemplate addTemplate(
97 java.lang.String uuid, long userId, java.lang.String templateId,
98 boolean autoTemplateId, long plid, java.lang.String structureId,
99 java.lang.String name, java.lang.String description,
100 java.lang.String xsl, boolean formatXsl, java.lang.String langType,
101 boolean cacheable, boolean smallImage, java.lang.String smallImageURL,
102 java.io.File smallFile, boolean addCommunityPermissions,
103 boolean addGuestPermissions)
104 throws com.liferay.portal.PortalException,
105 com.liferay.portal.SystemException;
106
107 public com.liferay.portlet.journal.model.JournalTemplate addTemplate(
108 long userId, java.lang.String templateId, boolean autoTemplateId,
109 long plid, java.lang.String structureId, java.lang.String name,
110 java.lang.String description, java.lang.String xsl, boolean formatXsl,
111 java.lang.String langType, boolean cacheable, boolean smallImage,
112 java.lang.String smallImageURL, java.io.File smallFile,
113 java.lang.String[] communityPermissions,
114 java.lang.String[] guestPermissions)
115 throws com.liferay.portal.PortalException,
116 com.liferay.portal.SystemException;
117
118 public com.liferay.portlet.journal.model.JournalTemplate addTemplate(
119 java.lang.String uuid, long userId, java.lang.String templateId,
120 boolean autoTemplateId, long plid, java.lang.String structureId,
121 java.lang.String name, java.lang.String description,
122 java.lang.String xsl, boolean formatXsl, java.lang.String langType,
123 boolean cacheable, boolean smallImage, java.lang.String smallImageURL,
124 java.io.File smallFile, java.lang.Boolean addCommunityPermissions,
125 java.lang.Boolean addGuestPermissions,
126 java.lang.String[] communityPermissions,
127 java.lang.String[] guestPermissions)
128 throws com.liferay.portal.PortalException,
129 com.liferay.portal.SystemException;
130
131 public com.liferay.portlet.journal.model.JournalTemplate addTemplateToGroup(
132 java.lang.String uuid, long userId, java.lang.String templateId,
133 boolean autoTemplateId, long groupId, java.lang.String structureId,
134 java.lang.String name, java.lang.String description,
135 java.lang.String xsl, boolean formatXsl, java.lang.String langType,
136 boolean cacheable, boolean smallImage, java.lang.String smallImageURL,
137 java.io.File smallFile, java.lang.Boolean addCommunityPermissions,
138 java.lang.Boolean addGuestPermissions,
139 java.lang.String[] communityPermissions,
140 java.lang.String[] guestPermissions)
141 throws com.liferay.portal.PortalException,
142 com.liferay.portal.SystemException;
143
144 public void addTemplateResources(long groupId, java.lang.String templateId,
145 boolean addCommunityPermissions, boolean addGuestPermissions)
146 throws com.liferay.portal.PortalException,
147 com.liferay.portal.SystemException;
148
149 public void addTemplateResources(
150 com.liferay.portlet.journal.model.JournalTemplate template,
151 boolean addCommunityPermissions, boolean addGuestPermissions)
152 throws com.liferay.portal.PortalException,
153 com.liferay.portal.SystemException;
154
155 public void addTemplateResources(long groupId, java.lang.String templateId,
156 java.lang.String[] communityPermissions,
157 java.lang.String[] guestPermissions)
158 throws com.liferay.portal.PortalException,
159 com.liferay.portal.SystemException;
160
161 public void addTemplateResources(
162 com.liferay.portlet.journal.model.JournalTemplate template,
163 java.lang.String[] communityPermissions,
164 java.lang.String[] guestPermissions)
165 throws com.liferay.portal.PortalException,
166 com.liferay.portal.SystemException;
167
168 public void checkNewLine(long groupId, java.lang.String templateId)
169 throws com.liferay.portal.PortalException,
170 com.liferay.portal.SystemException;
171
172 public com.liferay.portlet.journal.model.JournalTemplate copyTemplate(
173 long userId, long groupId, java.lang.String oldTemplateId,
174 java.lang.String newTemplateId, boolean autoTemplateId)
175 throws com.liferay.portal.PortalException,
176 com.liferay.portal.SystemException;
177
178 public void deleteTemplate(long groupId, java.lang.String templateId)
179 throws com.liferay.portal.PortalException,
180 com.liferay.portal.SystemException;
181
182 public void deleteTemplate(
183 com.liferay.portlet.journal.model.JournalTemplate template)
184 throws com.liferay.portal.PortalException,
185 com.liferay.portal.SystemException;
186
187 public void deleteTemplates(long groupId)
188 throws com.liferay.portal.PortalException,
189 com.liferay.portal.SystemException;
190
191 public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> getStructureTemplates(
192 long groupId, java.lang.String structureId)
193 throws com.liferay.portal.SystemException;
194
195 public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> getStructureTemplates(
196 long groupId, java.lang.String structureId, int start, int end)
197 throws com.liferay.portal.SystemException;
198
199 public int getStructureTemplatesCount(long groupId,
200 java.lang.String structureId) throws com.liferay.portal.SystemException;
201
202 public com.liferay.portlet.journal.model.JournalTemplate getTemplate(
203 long id)
204 throws com.liferay.portal.PortalException,
205 com.liferay.portal.SystemException;
206
207 public com.liferay.portlet.journal.model.JournalTemplate getTemplate(
208 long groupId, java.lang.String templateId)
209 throws com.liferay.portal.PortalException,
210 com.liferay.portal.SystemException;
211
212 public com.liferay.portlet.journal.model.JournalTemplate getTemplateBySmallImageId(
213 long smallImageId)
214 throws com.liferay.portal.PortalException,
215 com.liferay.portal.SystemException;
216
217 public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> getTemplates()
218 throws com.liferay.portal.SystemException;
219
220 public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> getTemplates(
221 long groupId) throws com.liferay.portal.SystemException;
222
223 public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> getTemplates(
224 long groupId, int start, int end)
225 throws com.liferay.portal.SystemException;
226
227 public int getTemplatesCount(long groupId)
228 throws com.liferay.portal.SystemException;
229
230 public boolean hasTemplate(long groupId, java.lang.String templateId)
231 throws com.liferay.portal.SystemException;
232
233 public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> search(
234 long companyId, long groupId, java.lang.String keywords,
235 java.lang.String structureId, java.lang.String structureIdComparator,
236 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
237 throws com.liferay.portal.SystemException;
238
239 public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> search(
240 long companyId, long groupId, java.lang.String templateId,
241 java.lang.String structureId, java.lang.String structureIdComparator,
242 java.lang.String name, java.lang.String description,
243 boolean andOperator, int start, int end,
244 com.liferay.portal.kernel.util.OrderByComparator obc)
245 throws com.liferay.portal.SystemException;
246
247 public int searchCount(long companyId, long groupId,
248 java.lang.String keywords, java.lang.String structureId,
249 java.lang.String structureIdComparator)
250 throws com.liferay.portal.SystemException;
251
252 public int searchCount(long companyId, long groupId,
253 java.lang.String templateId, java.lang.String structureId,
254 java.lang.String structureIdComparator, java.lang.String name,
255 java.lang.String description, boolean andOperator)
256 throws com.liferay.portal.SystemException;
257
258 public com.liferay.portlet.journal.model.JournalTemplate updateTemplate(
259 long groupId, java.lang.String templateId,
260 java.lang.String structureId, java.lang.String name,
261 java.lang.String description, java.lang.String xsl, boolean formatXsl,
262 java.lang.String langType, boolean cacheable, boolean smallImage,
263 java.lang.String smallImageURL, java.io.File smallFile)
264 throws com.liferay.portal.PortalException,
265 com.liferay.portal.SystemException;
266 }