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