1
22
23 package com.liferay.portlet.journal.service;
24
25
51 public interface JournalTemplateLocalService {
52 public com.liferay.portlet.journal.model.JournalTemplate addJournalTemplate(
53 com.liferay.portlet.journal.model.JournalTemplate model)
54 throws com.liferay.portal.SystemException;
55
56 public java.util.List dynamicQuery(
57 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
58 throws com.liferay.portal.SystemException;
59
60 public java.util.List dynamicQuery(
61 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
62 int begin, int end) throws com.liferay.portal.SystemException;
63
64 public com.liferay.portlet.journal.model.JournalTemplate updateJournalTemplate(
65 com.liferay.portlet.journal.model.JournalTemplate model)
66 throws com.liferay.portal.SystemException;
67
68 public com.liferay.portlet.journal.model.JournalTemplate addTemplate(
69 long userId, java.lang.String templateId, boolean autoTemplateId,
70 long plid, java.lang.String structureId, java.lang.String name,
71 java.lang.String description, java.lang.String xsl, boolean formatXsl,
72 java.lang.String langType, boolean smallImage,
73 java.lang.String smallImageURL, java.io.File smallFile,
74 boolean addCommunityPermissions, boolean addGuestPermissions)
75 throws com.liferay.portal.SystemException,
76 com.liferay.portal.PortalException;
77
78 public com.liferay.portlet.journal.model.JournalTemplate addTemplate(
79 long userId, java.lang.String templateId, boolean autoTemplateId,
80 long plid, java.lang.String structureId, java.lang.String name,
81 java.lang.String description, java.lang.String xsl, boolean formatXsl,
82 java.lang.String langType, boolean smallImage,
83 java.lang.String smallImageURL, java.io.File smallFile,
84 java.lang.String[] communityPermissions,
85 java.lang.String[] guestPermissions)
86 throws com.liferay.portal.SystemException,
87 com.liferay.portal.PortalException;
88
89 public com.liferay.portlet.journal.model.JournalTemplate addTemplate(
90 long userId, java.lang.String templateId, boolean autoTemplateId,
91 long plid, java.lang.String structureId, java.lang.String name,
92 java.lang.String description, java.lang.String xsl, boolean formatXsl,
93 java.lang.String langType, boolean smallImage,
94 java.lang.String smallImageURL, java.io.File smallFile,
95 java.lang.Boolean addCommunityPermissions,
96 java.lang.Boolean addGuestPermissions,
97 java.lang.String[] communityPermissions,
98 java.lang.String[] guestPermissions)
99 throws com.liferay.portal.SystemException,
100 com.liferay.portal.PortalException;
101
102 public com.liferay.portlet.journal.model.JournalTemplate addTemplateToGroup(
103 long userId, java.lang.String templateId, boolean autoTemplateId,
104 long groupId, java.lang.String structureId, java.lang.String name,
105 java.lang.String description, java.lang.String xsl, boolean formatXsl,
106 java.lang.String langType, boolean smallImage,
107 java.lang.String smallImageURL, java.io.File smallFile,
108 java.lang.Boolean addCommunityPermissions,
109 java.lang.Boolean addGuestPermissions,
110 java.lang.String[] communityPermissions,
111 java.lang.String[] guestPermissions)
112 throws com.liferay.portal.SystemException,
113 com.liferay.portal.PortalException;
114
115 public void addTemplateResources(long groupId, java.lang.String templateId,
116 boolean addCommunityPermissions, boolean addGuestPermissions)
117 throws com.liferay.portal.SystemException,
118 com.liferay.portal.PortalException;
119
120 public void addTemplateResources(
121 com.liferay.portlet.journal.model.JournalTemplate template,
122 boolean addCommunityPermissions, boolean addGuestPermissions)
123 throws com.liferay.portal.SystemException,
124 com.liferay.portal.PortalException;
125
126 public void addTemplateResources(long groupId, java.lang.String templateId,
127 java.lang.String[] communityPermissions,
128 java.lang.String[] guestPermissions)
129 throws com.liferay.portal.SystemException,
130 com.liferay.portal.PortalException;
131
132 public void addTemplateResources(
133 com.liferay.portlet.journal.model.JournalTemplate template,
134 java.lang.String[] communityPermissions,
135 java.lang.String[] guestPermissions)
136 throws com.liferay.portal.SystemException,
137 com.liferay.portal.PortalException;
138
139 public void checkNewLine(long groupId, java.lang.String templateId)
140 throws com.liferay.portal.SystemException,
141 com.liferay.portal.PortalException;
142
143 public void deleteTemplate(long groupId, java.lang.String templateId)
144 throws com.liferay.portal.SystemException,
145 com.liferay.portal.PortalException;
146
147 public void deleteTemplate(
148 com.liferay.portlet.journal.model.JournalTemplate template)
149 throws com.liferay.portal.SystemException,
150 com.liferay.portal.PortalException;
151
152 public java.util.List getStructureTemplates(long groupId,
153 java.lang.String structureId) throws com.liferay.portal.SystemException;
154
155 public java.util.List getStructureTemplates(long groupId,
156 java.lang.String structureId, int begin, int end)
157 throws com.liferay.portal.SystemException;
158
159 public int getStructureTemplatesCount(long groupId,
160 java.lang.String structureId) throws com.liferay.portal.SystemException;
161
162 public com.liferay.portlet.journal.model.JournalTemplate getTemplate(
163 long id)
164 throws com.liferay.portal.SystemException,
165 com.liferay.portal.PortalException;
166
167 public com.liferay.portlet.journal.model.JournalTemplate getTemplate(
168 long groupId, java.lang.String templateId)
169 throws com.liferay.portal.SystemException,
170 com.liferay.portal.PortalException;
171
172 public java.util.List getTemplates()
173 throws com.liferay.portal.SystemException;
174
175 public java.util.List getTemplates(long groupId)
176 throws com.liferay.portal.SystemException;
177
178 public java.util.List getTemplates(long groupId, int begin, int end)
179 throws com.liferay.portal.SystemException;
180
181 public int getTemplatesCount(long groupId)
182 throws com.liferay.portal.SystemException;
183
184 public boolean hasTemplate(long groupId, java.lang.String templateId)
185 throws com.liferay.portal.SystemException;
186
187 public java.util.List search(long companyId, long groupId,
188 java.lang.String keywords, java.lang.String structureId,
189 java.lang.String structureIdComparator, int begin, int end,
190 com.liferay.portal.kernel.util.OrderByComparator obc)
191 throws com.liferay.portal.SystemException;
192
193 public java.util.List search(long companyId, long groupId,
194 java.lang.String templateId, java.lang.String structureId,
195 java.lang.String structureIdComparator, java.lang.String name,
196 java.lang.String description, boolean andOperator, int begin, int end,
197 com.liferay.portal.kernel.util.OrderByComparator obc)
198 throws com.liferay.portal.SystemException;
199
200 public int searchCount(long companyId, long groupId,
201 java.lang.String keywords, java.lang.String structureId,
202 java.lang.String structureIdComparator)
203 throws com.liferay.portal.SystemException;
204
205 public int searchCount(long companyId, long groupId,
206 java.lang.String templateId, java.lang.String structureId,
207 java.lang.String structureIdComparator, java.lang.String name,
208 java.lang.String description, boolean andOperator)
209 throws com.liferay.portal.SystemException;
210
211 public com.liferay.portlet.journal.model.JournalTemplate updateTemplate(
212 long groupId, java.lang.String templateId,
213 java.lang.String structureId, java.lang.String name,
214 java.lang.String description, java.lang.String xsl, boolean formatXsl,
215 java.lang.String langType, boolean smallImage,
216 java.lang.String smallImageURL, java.io.File smallFile)
217 throws com.liferay.portal.SystemException,
218 com.liferay.portal.PortalException;
219 }