1
14
15 package com.liferay.portlet.journal.service;
16
17 import com.liferay.portal.PortalException;
18 import com.liferay.portal.SystemException;
19 import com.liferay.portal.kernel.annotation.Isolation;
20 import com.liferay.portal.kernel.annotation.Propagation;
21 import com.liferay.portal.kernel.annotation.Transactional;
22
23
47 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
48 PortalException.class, SystemException.class})
49 public interface JournalStructureLocalService {
50 public com.liferay.portlet.journal.model.JournalStructure addJournalStructure(
51 com.liferay.portlet.journal.model.JournalStructure journalStructure)
52 throws com.liferay.portal.SystemException;
53
54 public com.liferay.portlet.journal.model.JournalStructure createJournalStructure(
55 long id);
56
57 public void deleteJournalStructure(long id)
58 throws com.liferay.portal.PortalException,
59 com.liferay.portal.SystemException;
60
61 public void deleteJournalStructure(
62 com.liferay.portlet.journal.model.JournalStructure journalStructure)
63 throws com.liferay.portal.SystemException;
64
65 @SuppressWarnings("rawtypes")
66 public java.util.List dynamicQuery(
67 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
68 throws com.liferay.portal.SystemException;
69
70 @SuppressWarnings("rawtypes")
71 public java.util.List dynamicQuery(
72 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
73 int end) throws com.liferay.portal.SystemException;
74
75 @SuppressWarnings("rawtypes")
76 public java.util.List dynamicQuery(
77 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
78 int end,
79 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
80 throws com.liferay.portal.SystemException;
81
82 public int dynamicQueryCount(
83 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
84 throws com.liferay.portal.SystemException;
85
86 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
87 public com.liferay.portlet.journal.model.JournalStructure getJournalStructure(
88 long id)
89 throws com.liferay.portal.PortalException,
90 com.liferay.portal.SystemException;
91
92 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
93 public com.liferay.portlet.journal.model.JournalStructure getJournalStructureByUuidAndGroupId(
94 java.lang.String uuid, long groupId)
95 throws com.liferay.portal.PortalException,
96 com.liferay.portal.SystemException;
97
98 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
99 public java.util.List<com.liferay.portlet.journal.model.JournalStructure> getJournalStructures(
100 int start, int end) throws com.liferay.portal.SystemException;
101
102 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
103 public int getJournalStructuresCount()
104 throws com.liferay.portal.SystemException;
105
106 public com.liferay.portlet.journal.model.JournalStructure updateJournalStructure(
107 com.liferay.portlet.journal.model.JournalStructure journalStructure)
108 throws com.liferay.portal.SystemException;
109
110 public com.liferay.portlet.journal.model.JournalStructure updateJournalStructure(
111 com.liferay.portlet.journal.model.JournalStructure journalStructure,
112 boolean merge) throws com.liferay.portal.SystemException;
113
114 public com.liferay.portlet.journal.model.JournalStructure addStructure(
115 long userId, long groupId, java.lang.String structureId,
116 boolean autoStructureId, java.lang.String parentStructureId,
117 java.lang.String name, java.lang.String description,
118 java.lang.String xsd,
119 com.liferay.portal.service.ServiceContext serviceContext)
120 throws com.liferay.portal.PortalException,
121 com.liferay.portal.SystemException;
122
123 public com.liferay.portlet.journal.model.JournalStructure addStructure(
124 java.lang.String uuid, long userId, long groupId,
125 java.lang.String structureId, boolean autoStructureId,
126 java.lang.String parentStructureId, java.lang.String name,
127 java.lang.String description, java.lang.String xsd,
128 com.liferay.portal.service.ServiceContext serviceContext)
129 throws com.liferay.portal.PortalException,
130 com.liferay.portal.SystemException;
131
132 public void addStructureResources(long groupId,
133 java.lang.String structureId, boolean addCommunityPermissions,
134 boolean addGuestPermissions)
135 throws com.liferay.portal.PortalException,
136 com.liferay.portal.SystemException;
137
138 public void addStructureResources(
139 com.liferay.portlet.journal.model.JournalStructure structure,
140 boolean addCommunityPermissions, boolean addGuestPermissions)
141 throws com.liferay.portal.PortalException,
142 com.liferay.portal.SystemException;
143
144 public void addStructureResources(long groupId,
145 java.lang.String structureId, java.lang.String[] communityPermissions,
146 java.lang.String[] guestPermissions)
147 throws com.liferay.portal.PortalException,
148 com.liferay.portal.SystemException;
149
150 public void addStructureResources(
151 com.liferay.portlet.journal.model.JournalStructure structure,
152 java.lang.String[] communityPermissions,
153 java.lang.String[] guestPermissions)
154 throws com.liferay.portal.PortalException,
155 com.liferay.portal.SystemException;
156
157 public void checkNewLine(long groupId, java.lang.String structureId)
158 throws com.liferay.portal.PortalException,
159 com.liferay.portal.SystemException;
160
161 public com.liferay.portlet.journal.model.JournalStructure copyStructure(
162 long userId, long groupId, java.lang.String oldStructureId,
163 java.lang.String newStructureId, boolean autoStructureId)
164 throws com.liferay.portal.PortalException,
165 com.liferay.portal.SystemException;
166
167 public void deleteStructure(long groupId, java.lang.String structureId)
168 throws com.liferay.portal.PortalException,
169 com.liferay.portal.SystemException;
170
171 public void deleteStructure(
172 com.liferay.portlet.journal.model.JournalStructure structure)
173 throws com.liferay.portal.PortalException,
174 com.liferay.portal.SystemException;
175
176 public void deleteStructures(long groupId)
177 throws com.liferay.portal.PortalException,
178 com.liferay.portal.SystemException;
179
180 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
181 public com.liferay.portlet.journal.model.JournalStructure getStructure(
182 long id)
183 throws com.liferay.portal.PortalException,
184 com.liferay.portal.SystemException;
185
186 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
187 public com.liferay.portlet.journal.model.JournalStructure getStructure(
188 long groupId, java.lang.String structureId)
189 throws com.liferay.portal.PortalException,
190 com.liferay.portal.SystemException;
191
192 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
193 public java.util.List<com.liferay.portlet.journal.model.JournalStructure> getStructures()
194 throws com.liferay.portal.SystemException;
195
196 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
197 public java.util.List<com.liferay.portlet.journal.model.JournalStructure> getStructures(
198 long groupId) throws com.liferay.portal.SystemException;
199
200 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
201 public java.util.List<com.liferay.portlet.journal.model.JournalStructure> getStructures(
202 long groupId, int start, int end)
203 throws com.liferay.portal.SystemException;
204
205 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
206 public int getStructuresCount(long groupId)
207 throws com.liferay.portal.SystemException;
208
209 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
210 public java.util.List<com.liferay.portlet.journal.model.JournalStructure> search(
211 long companyId, long groupId, java.lang.String keywords, int start,
212 int end, com.liferay.portal.kernel.util.OrderByComparator obc)
213 throws com.liferay.portal.SystemException;
214
215 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
216 public java.util.List<com.liferay.portlet.journal.model.JournalStructure> search(
217 long companyId, long groupId, java.lang.String structureId,
218 java.lang.String name, java.lang.String description,
219 boolean andOperator, int start, int end,
220 com.liferay.portal.kernel.util.OrderByComparator obc)
221 throws com.liferay.portal.SystemException;
222
223 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
224 public int searchCount(long companyId, long groupId,
225 java.lang.String keywords) throws com.liferay.portal.SystemException;
226
227 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
228 public int searchCount(long companyId, long groupId,
229 java.lang.String structureId, java.lang.String name,
230 java.lang.String description, boolean andOperator)
231 throws com.liferay.portal.SystemException;
232
233 public com.liferay.portlet.journal.model.JournalStructure updateStructure(
234 long groupId, java.lang.String structureId,
235 java.lang.String parentStructureId, java.lang.String name,
236 java.lang.String description, java.lang.String xsd,
237 com.liferay.portal.service.ServiceContext serviceContext)
238 throws com.liferay.portal.PortalException,
239 com.liferay.portal.SystemException;
240 }