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="JournalTemplateLocalService.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 interface defines the service. The default implementation is
033: * <code>com.liferay.portlet.journal.service.impl.JournalTemplateLocalServiceImpl</code>.
034: * Modify methods in that class and rerun ServiceBuilder to populate this class
035: * and all other generated classes.
036: * </p>
037: *
038: * <p>
039: * This is a local service. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM.
040: * </p>
041: *
042: * @author Brian Wing Shun Chan
043: *
044: * @see com.liferay.portlet.journal.service.JournalTemplateLocalServiceFactory
045: * @see com.liferay.portlet.journal.service.JournalTemplateLocalServiceUtil
046: *
047: */
048: public interface JournalTemplateLocalService {
049: public com.liferay.portlet.journal.model.JournalTemplate addJournalTemplate(
050: com.liferay.portlet.journal.model.JournalTemplate model)
051: throws com.liferay.portal.SystemException;
052:
053: public java.util.List dynamicQuery(
054: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
055: throws com.liferay.portal.SystemException;
056:
057: public java.util.List dynamicQuery(
058: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
059: int begin, int end)
060: throws com.liferay.portal.SystemException;
061:
062: public com.liferay.portlet.journal.model.JournalTemplate updateJournalTemplate(
063: com.liferay.portlet.journal.model.JournalTemplate model)
064: throws com.liferay.portal.SystemException;
065:
066: public com.liferay.portlet.journal.service.persistence.JournalArticlePersistence getJournalArticlePersistence();
067:
068: public void setJournalArticlePersistence(
069: com.liferay.portlet.journal.service.persistence.JournalArticlePersistence journalArticlePersistence);
070:
071: public com.liferay.portlet.journal.service.persistence.JournalArticleFinder getJournalArticleFinder();
072:
073: public void setJournalArticleFinder(
074: com.liferay.portlet.journal.service.persistence.JournalArticleFinder journalArticleFinder);
075:
076: public com.liferay.portlet.journal.service.persistence.JournalArticleImagePersistence getJournalArticleImagePersistence();
077:
078: public void setJournalArticleImagePersistence(
079: com.liferay.portlet.journal.service.persistence.JournalArticleImagePersistence journalArticleImagePersistence);
080:
081: public com.liferay.portlet.journal.service.persistence.JournalArticleResourcePersistence getJournalArticleResourcePersistence();
082:
083: public void setJournalArticleResourcePersistence(
084: com.liferay.portlet.journal.service.persistence.JournalArticleResourcePersistence journalArticleResourcePersistence);
085:
086: public com.liferay.portlet.journal.service.persistence.JournalContentSearchPersistence getJournalContentSearchPersistence();
087:
088: public void setJournalContentSearchPersistence(
089: com.liferay.portlet.journal.service.persistence.JournalContentSearchPersistence journalContentSearchPersistence);
090:
091: public com.liferay.portlet.journal.service.persistence.JournalFeedPersistence getJournalFeedPersistence();
092:
093: public void setJournalFeedPersistence(
094: com.liferay.portlet.journal.service.persistence.JournalFeedPersistence journalFeedPersistence);
095:
096: public com.liferay.portlet.journal.service.persistence.JournalFeedFinder getJournalFeedFinder();
097:
098: public void setJournalFeedFinder(
099: com.liferay.portlet.journal.service.persistence.JournalFeedFinder journalFeedFinder);
100:
101: public com.liferay.portlet.journal.service.persistence.JournalStructurePersistence getJournalStructurePersistence();
102:
103: public void setJournalStructurePersistence(
104: com.liferay.portlet.journal.service.persistence.JournalStructurePersistence journalStructurePersistence);
105:
106: public com.liferay.portlet.journal.service.persistence.JournalStructureFinder getJournalStructureFinder();
107:
108: public void setJournalStructureFinder(
109: com.liferay.portlet.journal.service.persistence.JournalStructureFinder journalStructureFinder);
110:
111: public com.liferay.portlet.journal.service.persistence.JournalTemplatePersistence getJournalTemplatePersistence();
112:
113: public void setJournalTemplatePersistence(
114: com.liferay.portlet.journal.service.persistence.JournalTemplatePersistence journalTemplatePersistence);
115:
116: public com.liferay.portlet.journal.service.persistence.JournalTemplateFinder getJournalTemplateFinder();
117:
118: public void setJournalTemplateFinder(
119: com.liferay.portlet.journal.service.persistence.JournalTemplateFinder journalTemplateFinder);
120:
121: public com.liferay.portal.service.persistence.ResourcePersistence getResourcePersistence();
122:
123: public void setResourcePersistence(
124: com.liferay.portal.service.persistence.ResourcePersistence resourcePersistence);
125:
126: public com.liferay.portal.service.persistence.ResourceFinder getResourceFinder();
127:
128: public void setResourceFinder(
129: com.liferay.portal.service.persistence.ResourceFinder resourceFinder);
130:
131: public com.liferay.portal.service.persistence.UserPersistence getUserPersistence();
132:
133: public void setUserPersistence(
134: com.liferay.portal.service.persistence.UserPersistence userPersistence);
135:
136: public com.liferay.portal.service.persistence.UserFinder getUserFinder();
137:
138: public void setUserFinder(
139: com.liferay.portal.service.persistence.UserFinder userFinder);
140:
141: public com.liferay.portal.service.persistence.WebDAVPropsPersistence getWebDAVPropsPersistence();
142:
143: public void setWebDAVPropsPersistence(
144: com.liferay.portal.service.persistence.WebDAVPropsPersistence webDAVPropsPersistence);
145:
146: public void afterPropertiesSet();
147:
148: public com.liferay.portlet.journal.model.JournalTemplate addTemplate(
149: long userId, java.lang.String templateId,
150: boolean autoTemplateId, long plid,
151: java.lang.String structureId, java.lang.String name,
152: java.lang.String description, java.lang.String xsl,
153: boolean formatXsl, java.lang.String langType,
154: boolean cacheable, boolean smallImage,
155: java.lang.String smallImageURL, java.io.File smallFile,
156: boolean addCommunityPermissions, boolean addGuestPermissions)
157: throws com.liferay.portal.SystemException,
158: com.liferay.portal.PortalException;
159:
160: public com.liferay.portlet.journal.model.JournalTemplate addTemplate(
161: java.lang.String uuid, long userId,
162: java.lang.String templateId, boolean autoTemplateId,
163: long plid, java.lang.String structureId,
164: java.lang.String name, java.lang.String description,
165: java.lang.String xsl, boolean formatXsl,
166: java.lang.String langType, boolean cacheable,
167: boolean smallImage, java.lang.String smallImageURL,
168: java.io.File smallFile, boolean addCommunityPermissions,
169: boolean addGuestPermissions)
170: throws com.liferay.portal.SystemException,
171: com.liferay.portal.PortalException;
172:
173: public com.liferay.portlet.journal.model.JournalTemplate addTemplate(
174: long userId, java.lang.String templateId,
175: boolean autoTemplateId, long plid,
176: java.lang.String structureId, java.lang.String name,
177: java.lang.String description, java.lang.String xsl,
178: boolean formatXsl, java.lang.String langType,
179: boolean cacheable, boolean smallImage,
180: java.lang.String smallImageURL, java.io.File smallFile,
181: java.lang.String[] communityPermissions,
182: java.lang.String[] guestPermissions)
183: throws com.liferay.portal.SystemException,
184: com.liferay.portal.PortalException;
185:
186: public com.liferay.portlet.journal.model.JournalTemplate addTemplate(
187: java.lang.String uuid, long userId,
188: java.lang.String templateId, boolean autoTemplateId,
189: long plid, java.lang.String structureId,
190: java.lang.String name, java.lang.String description,
191: java.lang.String xsl, boolean formatXsl,
192: java.lang.String langType, boolean cacheable,
193: boolean smallImage, java.lang.String smallImageURL,
194: java.io.File smallFile,
195: java.lang.Boolean addCommunityPermissions,
196: java.lang.Boolean addGuestPermissions,
197: java.lang.String[] communityPermissions,
198: java.lang.String[] guestPermissions)
199: throws com.liferay.portal.SystemException,
200: com.liferay.portal.PortalException;
201:
202: public com.liferay.portlet.journal.model.JournalTemplate addTemplateToGroup(
203: java.lang.String uuid, long userId,
204: java.lang.String templateId, boolean autoTemplateId,
205: long groupId, java.lang.String structureId,
206: java.lang.String name, java.lang.String description,
207: java.lang.String xsl, boolean formatXsl,
208: java.lang.String langType, boolean cacheable,
209: boolean smallImage, java.lang.String smallImageURL,
210: java.io.File smallFile,
211: java.lang.Boolean addCommunityPermissions,
212: java.lang.Boolean addGuestPermissions,
213: java.lang.String[] communityPermissions,
214: java.lang.String[] guestPermissions)
215: throws com.liferay.portal.SystemException,
216: com.liferay.portal.PortalException;
217:
218: public void addTemplateResources(long groupId,
219: java.lang.String templateId,
220: boolean addCommunityPermissions, boolean addGuestPermissions)
221: throws com.liferay.portal.SystemException,
222: com.liferay.portal.PortalException;
223:
224: public void addTemplateResources(
225: com.liferay.portlet.journal.model.JournalTemplate template,
226: boolean addCommunityPermissions, boolean addGuestPermissions)
227: throws com.liferay.portal.SystemException,
228: com.liferay.portal.PortalException;
229:
230: public void addTemplateResources(long groupId,
231: java.lang.String templateId,
232: java.lang.String[] communityPermissions,
233: java.lang.String[] guestPermissions)
234: throws com.liferay.portal.SystemException,
235: com.liferay.portal.PortalException;
236:
237: public void addTemplateResources(
238: com.liferay.portlet.journal.model.JournalTemplate template,
239: java.lang.String[] communityPermissions,
240: java.lang.String[] guestPermissions)
241: throws com.liferay.portal.SystemException,
242: com.liferay.portal.PortalException;
243:
244: public void checkNewLine(long groupId, java.lang.String templateId)
245: throws com.liferay.portal.SystemException,
246: com.liferay.portal.PortalException;
247:
248: public void deleteTemplate(long groupId, java.lang.String templateId)
249: throws com.liferay.portal.SystemException,
250: com.liferay.portal.PortalException;
251:
252: public void deleteTemplate(
253: com.liferay.portlet.journal.model.JournalTemplate template)
254: throws com.liferay.portal.SystemException,
255: com.liferay.portal.PortalException;
256:
257: public void deleteTemplates(long groupId)
258: throws com.liferay.portal.SystemException,
259: com.liferay.portal.PortalException;
260:
261: public java.util.List getStructureTemplates(long groupId,
262: java.lang.String structureId)
263: throws com.liferay.portal.SystemException;
264:
265: public java.util.List getStructureTemplates(long groupId,
266: java.lang.String structureId, int begin, int end)
267: throws com.liferay.portal.SystemException;
268:
269: public int getStructureTemplatesCount(long groupId,
270: java.lang.String structureId)
271: throws com.liferay.portal.SystemException;
272:
273: public com.liferay.portlet.journal.model.JournalTemplate getTemplate(
274: long id) throws com.liferay.portal.SystemException,
275: com.liferay.portal.PortalException;
276:
277: public com.liferay.portlet.journal.model.JournalTemplate getTemplate(
278: long groupId, java.lang.String templateId)
279: throws com.liferay.portal.SystemException,
280: com.liferay.portal.PortalException;
281:
282: public com.liferay.portlet.journal.model.JournalTemplate getTemplateBySmallImageId(
283: long smallImageId)
284: throws com.liferay.portal.SystemException,
285: com.liferay.portal.PortalException;
286:
287: public java.util.List getTemplates()
288: throws com.liferay.portal.SystemException;
289:
290: public java.util.List getTemplates(long groupId)
291: throws com.liferay.portal.SystemException;
292:
293: public java.util.List getTemplates(long groupId, int begin, int end)
294: throws com.liferay.portal.SystemException;
295:
296: public int getTemplatesCount(long groupId)
297: throws com.liferay.portal.SystemException;
298:
299: public boolean hasTemplate(long groupId, java.lang.String templateId)
300: throws com.liferay.portal.SystemException;
301:
302: public java.util.List search(long companyId, long groupId,
303: java.lang.String keywords, java.lang.String structureId,
304: java.lang.String structureIdComparator, int begin, int end,
305: com.liferay.portal.kernel.util.OrderByComparator obc)
306: throws com.liferay.portal.SystemException;
307:
308: public java.util.List search(long companyId, long groupId,
309: java.lang.String templateId, java.lang.String structureId,
310: java.lang.String structureIdComparator,
311: java.lang.String name, java.lang.String description,
312: boolean andOperator, int begin, int end,
313: com.liferay.portal.kernel.util.OrderByComparator obc)
314: throws com.liferay.portal.SystemException;
315:
316: public int searchCount(long companyId, long groupId,
317: java.lang.String keywords, java.lang.String structureId,
318: java.lang.String structureIdComparator)
319: throws com.liferay.portal.SystemException;
320:
321: public int searchCount(long companyId, long groupId,
322: java.lang.String templateId, java.lang.String structureId,
323: java.lang.String structureIdComparator,
324: java.lang.String name, java.lang.String description,
325: boolean andOperator)
326: throws com.liferay.portal.SystemException;
327:
328: public com.liferay.portlet.journal.model.JournalTemplate updateTemplate(
329: long groupId, java.lang.String templateId,
330: java.lang.String structureId, java.lang.String name,
331: java.lang.String description, java.lang.String xsl,
332: boolean formatXsl, java.lang.String langType,
333: boolean cacheable, boolean smallImage,
334: java.lang.String smallImageURL, java.io.File smallFile)
335: throws com.liferay.portal.SystemException,
336: com.liferay.portal.PortalException;
337: }
|