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