1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   * 
13   */
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  /**
24   * <a href="JournalStructureLocalService.java.html"><b><i>View Source</i></b></a>
25   *
26   * <p>
27   * ServiceBuilder generated this class. Modifications in this class will be
28   * overwritten the next time is generated.
29   * </p>
30   *
31   * <p>
32   * This interface defines the service. The default implementation is
33   * {@link
34   * com.liferay.portlet.journal.service.impl.JournalStructureLocalServiceImpl}}.
35   * Modify methods in that class and rerun ServiceBuilder to populate this class
36   * and all other generated classes.
37   * </p>
38   *
39   * <p>
40   * 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.
41   * </p>
42   *
43   * @author    Brian Wing Shun Chan
44   * @see       JournalStructureLocalServiceUtil
45   * @generated
46   */
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      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
74      public com.liferay.portlet.journal.model.JournalStructure getJournalStructure(
75          long id)
76          throws com.liferay.portal.PortalException,
77              com.liferay.portal.SystemException;
78  
79      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
80      public java.util.List<com.liferay.portlet.journal.model.JournalStructure> getJournalStructures(
81          int start, int end) throws com.liferay.portal.SystemException;
82  
83      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
84      public int getJournalStructuresCount()
85          throws com.liferay.portal.SystemException;
86  
87      public com.liferay.portlet.journal.model.JournalStructure updateJournalStructure(
88          com.liferay.portlet.journal.model.JournalStructure journalStructure)
89          throws com.liferay.portal.SystemException;
90  
91      public com.liferay.portlet.journal.model.JournalStructure updateJournalStructure(
92          com.liferay.portlet.journal.model.JournalStructure journalStructure,
93          boolean merge) throws com.liferay.portal.SystemException;
94  
95      public com.liferay.portlet.journal.model.JournalStructure addStructure(
96          long userId, java.lang.String structureId, boolean autoStructureId,
97          long plid, java.lang.String name, java.lang.String description,
98          java.lang.String xsd, boolean addCommunityPermissions,
99          boolean addGuestPermissions)
100         throws com.liferay.portal.PortalException,
101             com.liferay.portal.SystemException;
102 
103     public com.liferay.portlet.journal.model.JournalStructure addStructure(
104         java.lang.String uuid, long userId, java.lang.String structureId,
105         boolean autoStructureId, long plid, java.lang.String name,
106         java.lang.String description, java.lang.String xsd,
107         boolean addCommunityPermissions, boolean addGuestPermissions)
108         throws com.liferay.portal.PortalException,
109             com.liferay.portal.SystemException;
110 
111     public com.liferay.portlet.journal.model.JournalStructure addStructure(
112         long userId, java.lang.String structureId, boolean autoStructureId,
113         long plid, java.lang.String name, java.lang.String description,
114         java.lang.String xsd, java.lang.String[] communityPermissions,
115         java.lang.String[] guestPermissions)
116         throws com.liferay.portal.PortalException,
117             com.liferay.portal.SystemException;
118 
119     public com.liferay.portlet.journal.model.JournalStructure addStructure(
120         java.lang.String uuid, long userId, java.lang.String structureId,
121         boolean autoStructureId, long plid, java.lang.String name,
122         java.lang.String description, java.lang.String xsd,
123         java.lang.Boolean addCommunityPermissions,
124         java.lang.Boolean addGuestPermissions,
125         java.lang.String[] communityPermissions,
126         java.lang.String[] guestPermissions)
127         throws com.liferay.portal.PortalException,
128             com.liferay.portal.SystemException;
129 
130     public com.liferay.portlet.journal.model.JournalStructure addStructureToGroup(
131         java.lang.String uuid, long userId, java.lang.String structureId,
132         boolean autoStructureId, long groupId, java.lang.String name,
133         java.lang.String description, java.lang.String xsd,
134         java.lang.Boolean addCommunityPermissions,
135         java.lang.Boolean addGuestPermissions,
136         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(long groupId,
142         java.lang.String structureId, boolean addCommunityPermissions,
143         boolean addGuestPermissions)
144         throws com.liferay.portal.PortalException,
145             com.liferay.portal.SystemException;
146 
147     public void addStructureResources(
148         com.liferay.portlet.journal.model.JournalStructure structure,
149         boolean addCommunityPermissions, boolean addGuestPermissions)
150         throws com.liferay.portal.PortalException,
151             com.liferay.portal.SystemException;
152 
153     public void addStructureResources(long groupId,
154         java.lang.String structureId, java.lang.String[] communityPermissions,
155         java.lang.String[] guestPermissions)
156         throws com.liferay.portal.PortalException,
157             com.liferay.portal.SystemException;
158 
159     public void addStructureResources(
160         com.liferay.portlet.journal.model.JournalStructure structure,
161         java.lang.String[] communityPermissions,
162         java.lang.String[] guestPermissions)
163         throws com.liferay.portal.PortalException,
164             com.liferay.portal.SystemException;
165 
166     public void checkNewLine(long groupId, java.lang.String structureId)
167         throws com.liferay.portal.PortalException,
168             com.liferay.portal.SystemException;
169 
170     public com.liferay.portlet.journal.model.JournalStructure copyStructure(
171         long userId, long groupId, java.lang.String oldStructureId,
172         java.lang.String newStructureId, boolean autoStructureId)
173         throws com.liferay.portal.PortalException,
174             com.liferay.portal.SystemException;
175 
176     public void deleteStructure(long groupId, java.lang.String structureId)
177         throws com.liferay.portal.PortalException,
178             com.liferay.portal.SystemException;
179 
180     public void deleteStructure(
181         com.liferay.portlet.journal.model.JournalStructure structure)
182         throws com.liferay.portal.PortalException,
183             com.liferay.portal.SystemException;
184 
185     public void deleteStructures(long groupId)
186         throws com.liferay.portal.PortalException,
187             com.liferay.portal.SystemException;
188 
189     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
190     public com.liferay.portlet.journal.model.JournalStructure getStructure(
191         long id)
192         throws com.liferay.portal.PortalException,
193             com.liferay.portal.SystemException;
194 
195     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
196     public com.liferay.portlet.journal.model.JournalStructure getStructure(
197         long groupId, java.lang.String structureId)
198         throws com.liferay.portal.PortalException,
199             com.liferay.portal.SystemException;
200 
201     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
202     public java.util.List<com.liferay.portlet.journal.model.JournalStructure> getStructures()
203         throws com.liferay.portal.SystemException;
204 
205     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
206     public java.util.List<com.liferay.portlet.journal.model.JournalStructure> getStructures(
207         long groupId) throws 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         long groupId, int start, int end)
212         throws com.liferay.portal.SystemException;
213 
214     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
215     public int getStructuresCount(long groupId)
216         throws com.liferay.portal.SystemException;
217 
218     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
219     public java.util.List<com.liferay.portlet.journal.model.JournalStructure> search(
220         long companyId, long groupId, java.lang.String keywords, int start,
221         int end, com.liferay.portal.kernel.util.OrderByComparator obc)
222         throws com.liferay.portal.SystemException;
223 
224     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
225     public java.util.List<com.liferay.portlet.journal.model.JournalStructure> search(
226         long companyId, long groupId, java.lang.String structureId,
227         java.lang.String name, java.lang.String description,
228         boolean andOperator, int start, int end,
229         com.liferay.portal.kernel.util.OrderByComparator obc)
230         throws com.liferay.portal.SystemException;
231 
232     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
233     public int searchCount(long companyId, long groupId,
234         java.lang.String keywords) throws com.liferay.portal.SystemException;
235 
236     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
237     public int searchCount(long companyId, long groupId,
238         java.lang.String structureId, java.lang.String name,
239         java.lang.String description, boolean andOperator)
240         throws com.liferay.portal.SystemException;
241 
242     public com.liferay.portlet.journal.model.JournalStructure updateStructure(
243         long groupId, java.lang.String structureId, java.lang.String name,
244         java.lang.String description, java.lang.String xsd)
245         throws com.liferay.portal.PortalException,
246             com.liferay.portal.SystemException;
247 }