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