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  
26  /**
27   * <a href="JournalStructureLocalService.java.html"><b><i>View Source</i></b></a>
28   *
29   * <p>
30   * ServiceBuilder generated this class. Modifications in this class will be
31   * overwritten the next time is generated.
32   * </p>
33   *
34   * <p>
35   * This interface defines the service. The default implementation is
36   * <code>com.liferay.portlet.journal.service.impl.JournalStructureLocalServiceImpl</code>.
37   * Modify methods in that class and rerun ServiceBuilder to populate this class
38   * and all other generated classes.
39   * </p>
40   *
41   * <p>
42   * 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.
43   * </p>
44   *
45   * @author Brian Wing Shun Chan
46   *
47   * @see com.liferay.portlet.journal.service.JournalStructureLocalServiceUtil
48   *
49   */
50  public interface JournalStructureLocalService {
51      public com.liferay.portlet.journal.model.JournalStructure addJournalStructure(
52          com.liferay.portlet.journal.model.JournalStructure journalStructure)
53          throws com.liferay.portal.SystemException;
54  
55      public void deleteJournalStructure(long id)
56          throws com.liferay.portal.SystemException,
57              com.liferay.portal.PortalException;
58  
59      public void deleteJournalStructure(
60          com.liferay.portlet.journal.model.JournalStructure journalStructure)
61          throws com.liferay.portal.SystemException;
62  
63      public java.util.List<Object> dynamicQuery(
64          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
65          throws com.liferay.portal.SystemException;
66  
67      public java.util.List<Object> dynamicQuery(
68          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
69          int end) throws com.liferay.portal.SystemException;
70  
71      public com.liferay.portlet.journal.model.JournalStructure getJournalStructure(
72          long id)
73          throws com.liferay.portal.SystemException,
74              com.liferay.portal.PortalException;
75  
76      public java.util.List<com.liferay.portlet.journal.model.JournalStructure> getJournalStructures(
77          int start, int end) throws com.liferay.portal.SystemException;
78  
79      public int getJournalStructuresCount()
80          throws com.liferay.portal.SystemException;
81  
82      public com.liferay.portlet.journal.model.JournalStructure updateJournalStructure(
83          com.liferay.portlet.journal.model.JournalStructure journalStructure)
84          throws com.liferay.portal.SystemException;
85  
86      public com.liferay.portlet.journal.model.JournalStructure addStructure(
87          long userId, java.lang.String structureId, boolean autoStructureId,
88          long plid, java.lang.String name, java.lang.String description,
89          java.lang.String xsd, boolean addCommunityPermissions,
90          boolean addGuestPermissions)
91          throws com.liferay.portal.PortalException,
92              com.liferay.portal.SystemException;
93  
94      public com.liferay.portlet.journal.model.JournalStructure addStructure(
95          java.lang.String uuid, long userId, java.lang.String structureId,
96          boolean autoStructureId, long plid, java.lang.String name,
97          java.lang.String description, java.lang.String xsd,
98          boolean addCommunityPermissions, boolean addGuestPermissions)
99          throws com.liferay.portal.PortalException,
100             com.liferay.portal.SystemException;
101 
102     public com.liferay.portlet.journal.model.JournalStructure addStructure(
103         long userId, java.lang.String structureId, boolean autoStructureId,
104         long plid, java.lang.String name, java.lang.String description,
105         java.lang.String xsd, java.lang.String[] communityPermissions,
106         java.lang.String[] guestPermissions)
107         throws com.liferay.portal.PortalException,
108             com.liferay.portal.SystemException;
109 
110     public com.liferay.portlet.journal.model.JournalStructure addStructure(
111         java.lang.String uuid, long userId, java.lang.String structureId,
112         boolean autoStructureId, long plid, java.lang.String name,
113         java.lang.String description, java.lang.String xsd,
114         java.lang.Boolean addCommunityPermissions,
115         java.lang.Boolean addGuestPermissions,
116         java.lang.String[] communityPermissions,
117         java.lang.String[] guestPermissions)
118         throws com.liferay.portal.PortalException,
119             com.liferay.portal.SystemException;
120 
121     public com.liferay.portlet.journal.model.JournalStructure addStructureToGroup(
122         java.lang.String uuid, long userId, java.lang.String structureId,
123         boolean autoStructureId, long groupId, java.lang.String name,
124         java.lang.String description, java.lang.String xsd,
125         java.lang.Boolean addCommunityPermissions,
126         java.lang.Boolean addGuestPermissions,
127         java.lang.String[] communityPermissions,
128         java.lang.String[] guestPermissions)
129         throws com.liferay.portal.PortalException,
130             com.liferay.portal.SystemException;
131 
132     public void addStructureResources(long groupId,
133         java.lang.String structureId, boolean addCommunityPermissions,
134         boolean addGuestPermissions)
135         throws com.liferay.portal.PortalException,
136             com.liferay.portal.SystemException;
137 
138     public void addStructureResources(
139         com.liferay.portlet.journal.model.JournalStructure structure,
140         boolean addCommunityPermissions, boolean addGuestPermissions)
141         throws com.liferay.portal.PortalException,
142             com.liferay.portal.SystemException;
143 
144     public void addStructureResources(long groupId,
145         java.lang.String structureId, java.lang.String[] communityPermissions,
146         java.lang.String[] guestPermissions)
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         java.lang.String[] communityPermissions,
153         java.lang.String[] guestPermissions)
154         throws com.liferay.portal.PortalException,
155             com.liferay.portal.SystemException;
156 
157     public void checkNewLine(long groupId, java.lang.String structureId)
158         throws com.liferay.portal.PortalException,
159             com.liferay.portal.SystemException;
160 
161     public com.liferay.portlet.journal.model.JournalStructure copyStructure(
162         long userId, long groupId, java.lang.String oldStructureId,
163         java.lang.String newStructureId, boolean autoStructureId)
164         throws com.liferay.portal.PortalException,
165             com.liferay.portal.SystemException;
166 
167     public void deleteStructure(long groupId, java.lang.String structureId)
168         throws com.liferay.portal.PortalException,
169             com.liferay.portal.SystemException;
170 
171     public void deleteStructure(
172         com.liferay.portlet.journal.model.JournalStructure structure)
173         throws com.liferay.portal.PortalException,
174             com.liferay.portal.SystemException;
175 
176     public void deleteStructures(long groupId)
177         throws com.liferay.portal.PortalException,
178             com.liferay.portal.SystemException;
179 
180     public com.liferay.portlet.journal.model.JournalStructure getStructure(
181         long id)
182         throws com.liferay.portal.PortalException,
183             com.liferay.portal.SystemException;
184 
185     public com.liferay.portlet.journal.model.JournalStructure getStructure(
186         long groupId, java.lang.String structureId)
187         throws com.liferay.portal.PortalException,
188             com.liferay.portal.SystemException;
189 
190     public java.util.List<com.liferay.portlet.journal.model.JournalStructure> getStructures()
191         throws com.liferay.portal.SystemException;
192 
193     public java.util.List<com.liferay.portlet.journal.model.JournalStructure> getStructures(
194         long groupId) throws com.liferay.portal.SystemException;
195 
196     public java.util.List<com.liferay.portlet.journal.model.JournalStructure> getStructures(
197         long groupId, int start, int end)
198         throws com.liferay.portal.SystemException;
199 
200     public int getStructuresCount(long groupId)
201         throws com.liferay.portal.SystemException;
202 
203     public java.util.List<com.liferay.portlet.journal.model.JournalStructure> search(
204         long companyId, long groupId, java.lang.String keywords, int start,
205         int end, com.liferay.portal.kernel.util.OrderByComparator obc)
206         throws com.liferay.portal.SystemException;
207 
208     public java.util.List<com.liferay.portlet.journal.model.JournalStructure> search(
209         long companyId, long groupId, java.lang.String structureId,
210         java.lang.String name, java.lang.String description,
211         boolean andOperator, int start, int end,
212         com.liferay.portal.kernel.util.OrderByComparator obc)
213         throws com.liferay.portal.SystemException;
214 
215     public int searchCount(long companyId, long groupId,
216         java.lang.String keywords) throws com.liferay.portal.SystemException;
217 
218     public int searchCount(long companyId, long groupId,
219         java.lang.String structureId, java.lang.String name,
220         java.lang.String description, boolean andOperator)
221         throws com.liferay.portal.SystemException;
222 
223     public com.liferay.portlet.journal.model.JournalStructure updateStructure(
224         long groupId, java.lang.String structureId, java.lang.String name,
225         java.lang.String description, java.lang.String xsd)
226         throws com.liferay.portal.PortalException,
227             com.liferay.portal.SystemException;
228 }