1   /**
2    * Copyright (c) 2000-2008 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.Propagation;
28  import com.liferay.portal.kernel.annotation.Transactional;
29  
30  /**
31   * <a href="JournalStructureLocalService.java.html"><b><i>View Source</i></b></a>
32   *
33   * <p>
34   * ServiceBuilder generated this class. Modifications in this class will be
35   * overwritten the next time is generated.
36   * </p>
37   *
38   * <p>
39   * This interface defines the service. The default implementation is
40   * <code>com.liferay.portlet.journal.service.impl.JournalStructureLocalServiceImpl</code>.
41   * Modify methods in that class and rerun ServiceBuilder to populate this class
42   * and all other generated classes.
43   * </p>
44   *
45   * <p>
46   * 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.
47   * </p>
48   *
49   * @author Brian Wing Shun Chan
50   *
51   * @see com.liferay.portlet.journal.service.JournalStructureLocalServiceUtil
52   *
53   */
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, java.lang.String structureId, boolean autoStructureId,
100         long plid, java.lang.String name, java.lang.String description,
101         java.lang.String xsd, boolean addCommunityPermissions,
102         boolean addGuestPermissions)
103         throws com.liferay.portal.PortalException,
104             com.liferay.portal.SystemException;
105 
106     public com.liferay.portlet.journal.model.JournalStructure addStructure(
107         java.lang.String uuid, long userId, java.lang.String structureId,
108         boolean autoStructureId, long plid, java.lang.String name,
109         java.lang.String description, java.lang.String xsd,
110         boolean addCommunityPermissions, boolean addGuestPermissions)
111         throws com.liferay.portal.PortalException,
112             com.liferay.portal.SystemException;
113 
114     public com.liferay.portlet.journal.model.JournalStructure addStructure(
115         long userId, java.lang.String structureId, boolean autoStructureId,
116         long plid, java.lang.String name, java.lang.String description,
117         java.lang.String xsd, java.lang.String[] communityPermissions,
118         java.lang.String[] guestPermissions)
119         throws com.liferay.portal.PortalException,
120             com.liferay.portal.SystemException;
121 
122     public com.liferay.portlet.journal.model.JournalStructure addStructure(
123         java.lang.String uuid, long userId, java.lang.String structureId,
124         boolean autoStructureId, long plid, java.lang.String name,
125         java.lang.String description, java.lang.String xsd,
126         java.lang.Boolean addCommunityPermissions,
127         java.lang.Boolean addGuestPermissions,
128         java.lang.String[] communityPermissions,
129         java.lang.String[] guestPermissions)
130         throws com.liferay.portal.PortalException,
131             com.liferay.portal.SystemException;
132 
133     public com.liferay.portlet.journal.model.JournalStructure addStructureToGroup(
134         java.lang.String uuid, long userId, java.lang.String structureId,
135         boolean autoStructureId, long groupId, java.lang.String name,
136         java.lang.String description, java.lang.String xsd,
137         java.lang.Boolean addCommunityPermissions,
138         java.lang.Boolean addGuestPermissions,
139         java.lang.String[] communityPermissions,
140         java.lang.String[] guestPermissions)
141         throws com.liferay.portal.PortalException,
142             com.liferay.portal.SystemException;
143 
144     public void addStructureResources(long groupId,
145         java.lang.String structureId, boolean addCommunityPermissions,
146         boolean addGuestPermissions)
147         throws com.liferay.portal.PortalException,
148             com.liferay.portal.SystemException;
149 
150     public void addStructureResources(
151         com.liferay.portlet.journal.model.JournalStructure structure,
152         boolean addCommunityPermissions, boolean addGuestPermissions)
153         throws com.liferay.portal.PortalException,
154             com.liferay.portal.SystemException;
155 
156     public void addStructureResources(long groupId,
157         java.lang.String structureId, java.lang.String[] communityPermissions,
158         java.lang.String[] guestPermissions)
159         throws com.liferay.portal.PortalException,
160             com.liferay.portal.SystemException;
161 
162     public void addStructureResources(
163         com.liferay.portlet.journal.model.JournalStructure structure,
164         java.lang.String[] communityPermissions,
165         java.lang.String[] guestPermissions)
166         throws com.liferay.portal.PortalException,
167             com.liferay.portal.SystemException;
168 
169     public void checkNewLine(long groupId, java.lang.String structureId)
170         throws com.liferay.portal.PortalException,
171             com.liferay.portal.SystemException;
172 
173     public com.liferay.portlet.journal.model.JournalStructure copyStructure(
174         long userId, long groupId, java.lang.String oldStructureId,
175         java.lang.String newStructureId, boolean autoStructureId)
176         throws com.liferay.portal.PortalException,
177             com.liferay.portal.SystemException;
178 
179     public void deleteStructure(long groupId, java.lang.String structureId)
180         throws com.liferay.portal.PortalException,
181             com.liferay.portal.SystemException;
182 
183     public void deleteStructure(
184         com.liferay.portlet.journal.model.JournalStructure structure)
185         throws com.liferay.portal.PortalException,
186             com.liferay.portal.SystemException;
187 
188     public void deleteStructures(long groupId)
189         throws com.liferay.portal.PortalException,
190             com.liferay.portal.SystemException;
191 
192     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
193     public com.liferay.portlet.journal.model.JournalStructure getStructure(
194         long id)
195         throws com.liferay.portal.PortalException,
196             com.liferay.portal.SystemException;
197 
198     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
199     public com.liferay.portlet.journal.model.JournalStructure getStructure(
200         long groupId, java.lang.String structureId)
201         throws com.liferay.portal.PortalException,
202             com.liferay.portal.SystemException;
203 
204     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
205     public java.util.List<com.liferay.portlet.journal.model.JournalStructure> getStructures()
206         throws com.liferay.portal.SystemException;
207 
208     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
209     public java.util.List<com.liferay.portlet.journal.model.JournalStructure> getStructures(
210         long groupId) throws com.liferay.portal.SystemException;
211 
212     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
213     public java.util.List<com.liferay.portlet.journal.model.JournalStructure> getStructures(
214         long groupId, int start, int end)
215         throws com.liferay.portal.SystemException;
216 
217     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
218     public int getStructuresCount(long groupId)
219         throws com.liferay.portal.SystemException;
220 
221     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
222     public java.util.List<com.liferay.portlet.journal.model.JournalStructure> search(
223         long companyId, long groupId, java.lang.String keywords, int start,
224         int end, com.liferay.portal.kernel.util.OrderByComparator obc)
225         throws com.liferay.portal.SystemException;
226 
227     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
228     public java.util.List<com.liferay.portlet.journal.model.JournalStructure> search(
229         long companyId, long groupId, java.lang.String structureId,
230         java.lang.String name, java.lang.String description,
231         boolean andOperator, int start, int end,
232         com.liferay.portal.kernel.util.OrderByComparator obc)
233         throws com.liferay.portal.SystemException;
234 
235     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
236     public int searchCount(long companyId, long groupId,
237         java.lang.String keywords) throws com.liferay.portal.SystemException;
238 
239     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
240     public int searchCount(long companyId, long groupId,
241         java.lang.String structureId, java.lang.String name,
242         java.lang.String description, boolean andOperator)
243         throws com.liferay.portal.SystemException;
244 
245     public com.liferay.portlet.journal.model.JournalStructure updateStructure(
246         long groupId, java.lang.String structureId, java.lang.String name,
247         java.lang.String description, java.lang.String xsd)
248         throws com.liferay.portal.PortalException,
249             com.liferay.portal.SystemException;
250 }