1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
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  /**
32   * <a href="JournalStructureLocalService.java.html"><b><i>View Source</i></b></a>
33   *
34   * <p>
35   * ServiceBuilder generated this class. Modifications in this class will be
36   * overwritten the next time is generated.
37   * </p>
38   *
39   * <p>
40   * This interface defines the service. The default implementation is
41   * <code>com.liferay.portlet.journal.service.impl.JournalStructureLocalServiceImpl</code>.
42   * Modify methods in that class and rerun ServiceBuilder to populate this class
43   * and all other generated classes.
44   * </p>
45   *
46   * <p>
47   * This is a local service. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM.
48   * </p>
49   *
50   * @author Brian Wing Shun Chan
51   *
52   * @see com.liferay.portlet.journal.service.JournalStructureLocalServiceUtil
53   *
54   */
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.SystemException,
67              com.liferay.portal.PortalException;
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.SystemException,
85              com.liferay.portal.PortalException;
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, java.lang.String structureId, boolean autoStructureId,
105         long plid, java.lang.String name, java.lang.String description,
106         java.lang.String xsd, boolean addCommunityPermissions,
107         boolean addGuestPermissions)
108         throws com.liferay.portal.PortalException,
109             com.liferay.portal.SystemException;
110 
111     public com.liferay.portlet.journal.model.JournalStructure addStructure(
112         java.lang.String uuid, long userId, java.lang.String structureId,
113         boolean autoStructureId, long plid, java.lang.String name,
114         java.lang.String description, java.lang.String xsd,
115         boolean addCommunityPermissions, boolean addGuestPermissions)
116         throws com.liferay.portal.PortalException,
117             com.liferay.portal.SystemException;
118 
119     public com.liferay.portlet.journal.model.JournalStructure addStructure(
120         long userId, java.lang.String structureId, boolean autoStructureId,
121         long plid, java.lang.String name, java.lang.String description,
122         java.lang.String xsd, java.lang.String[] communityPermissions,
123         java.lang.String[] guestPermissions)
124         throws com.liferay.portal.PortalException,
125             com.liferay.portal.SystemException;
126 
127     public com.liferay.portlet.journal.model.JournalStructure addStructure(
128         java.lang.String uuid, long userId, java.lang.String structureId,
129         boolean autoStructureId, long plid, java.lang.String name,
130         java.lang.String description, java.lang.String xsd,
131         java.lang.Boolean addCommunityPermissions,
132         java.lang.Boolean addGuestPermissions,
133         java.lang.String[] communityPermissions,
134         java.lang.String[] guestPermissions)
135         throws com.liferay.portal.PortalException,
136             com.liferay.portal.SystemException;
137 
138     public com.liferay.portlet.journal.model.JournalStructure addStructureToGroup(
139         java.lang.String uuid, long userId, java.lang.String structureId,
140         boolean autoStructureId, long groupId, java.lang.String name,
141         java.lang.String description, java.lang.String xsd,
142         java.lang.Boolean addCommunityPermissions,
143         java.lang.Boolean addGuestPermissions,
144         java.lang.String[] communityPermissions,
145         java.lang.String[] guestPermissions)
146         throws com.liferay.portal.PortalException,
147             com.liferay.portal.SystemException;
148 
149     public void addStructureResources(long groupId,
150         java.lang.String structureId, boolean addCommunityPermissions,
151         boolean addGuestPermissions)
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         boolean addCommunityPermissions, boolean addGuestPermissions)
158         throws com.liferay.portal.PortalException,
159             com.liferay.portal.SystemException;
160 
161     public void addStructureResources(long groupId,
162         java.lang.String structureId, java.lang.String[] communityPermissions,
163         java.lang.String[] guestPermissions)
164         throws com.liferay.portal.PortalException,
165             com.liferay.portal.SystemException;
166 
167     public void addStructureResources(
168         com.liferay.portlet.journal.model.JournalStructure structure,
169         java.lang.String[] communityPermissions,
170         java.lang.String[] guestPermissions)
171         throws com.liferay.portal.PortalException,
172             com.liferay.portal.SystemException;
173 
174     public void checkNewLine(long groupId, java.lang.String structureId)
175         throws com.liferay.portal.PortalException,
176             com.liferay.portal.SystemException;
177 
178     public com.liferay.portlet.journal.model.JournalStructure copyStructure(
179         long userId, long groupId, java.lang.String oldStructureId,
180         java.lang.String newStructureId, boolean autoStructureId)
181         throws com.liferay.portal.PortalException,
182             com.liferay.portal.SystemException;
183 
184     public void deleteStructure(long groupId, java.lang.String structureId)
185         throws com.liferay.portal.PortalException,
186             com.liferay.portal.SystemException;
187 
188     public void deleteStructure(
189         com.liferay.portlet.journal.model.JournalStructure structure)
190         throws com.liferay.portal.PortalException,
191             com.liferay.portal.SystemException;
192 
193     public void deleteStructures(long groupId)
194         throws com.liferay.portal.PortalException,
195             com.liferay.portal.SystemException;
196 
197     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
198     public com.liferay.portlet.journal.model.JournalStructure getStructure(
199         long id)
200         throws com.liferay.portal.PortalException,
201             com.liferay.portal.SystemException;
202 
203     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
204     public com.liferay.portlet.journal.model.JournalStructure getStructure(
205         long groupId, java.lang.String structureId)
206         throws com.liferay.portal.PortalException,
207             com.liferay.portal.SystemException;
208 
209     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
210     public java.util.List<com.liferay.portlet.journal.model.JournalStructure> getStructures()
211         throws com.liferay.portal.SystemException;
212 
213     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
214     public java.util.List<com.liferay.portlet.journal.model.JournalStructure> getStructures(
215         long groupId) throws com.liferay.portal.SystemException;
216 
217     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
218     public java.util.List<com.liferay.portlet.journal.model.JournalStructure> getStructures(
219         long groupId, int start, int end)
220         throws com.liferay.portal.SystemException;
221 
222     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
223     public int getStructuresCount(long groupId)
224         throws com.liferay.portal.SystemException;
225 
226     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
227     public java.util.List<com.liferay.portlet.journal.model.JournalStructure> search(
228         long companyId, long groupId, java.lang.String keywords, int start,
229         int end, com.liferay.portal.kernel.util.OrderByComparator obc)
230         throws com.liferay.portal.SystemException;
231 
232     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
233     public java.util.List<com.liferay.portlet.journal.model.JournalStructure> search(
234         long companyId, long groupId, java.lang.String structureId,
235         java.lang.String name, java.lang.String description,
236         boolean andOperator, int start, int end,
237         com.liferay.portal.kernel.util.OrderByComparator obc)
238         throws com.liferay.portal.SystemException;
239 
240     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
241     public int searchCount(long companyId, long groupId,
242         java.lang.String keywords) throws com.liferay.portal.SystemException;
243 
244     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
245     public int searchCount(long companyId, long groupId,
246         java.lang.String structureId, java.lang.String name,
247         java.lang.String description, boolean andOperator)
248         throws com.liferay.portal.SystemException;
249 
250     public com.liferay.portlet.journal.model.JournalStructure updateStructure(
251         long groupId, java.lang.String structureId, java.lang.String name,
252         java.lang.String description, java.lang.String xsd)
253         throws com.liferay.portal.PortalException,
254             com.liferay.portal.SystemException;
255 }