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, 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 }