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