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 com.liferay.portlet.journal.model.JournalStructure createJournalStructure(
56          long id);
57  
58      public void deleteJournalStructure(long id)
59          throws com.liferay.portal.SystemException,
60              com.liferay.portal.PortalException;
61  
62      public void deleteJournalStructure(
63          com.liferay.portlet.journal.model.JournalStructure journalStructure)
64          throws com.liferay.portal.SystemException;
65  
66      public java.util.List<Object> dynamicQuery(
67          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
68          throws com.liferay.portal.SystemException;
69  
70      public java.util.List<Object> dynamicQuery(
71          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
72          int end) throws com.liferay.portal.SystemException;
73  
74      public com.liferay.portlet.journal.model.JournalStructure getJournalStructure(
75          long id)
76          throws com.liferay.portal.SystemException,
77              com.liferay.portal.PortalException;
78  
79      public java.util.List<com.liferay.portlet.journal.model.JournalStructure> getJournalStructures(
80          int start, int end) throws com.liferay.portal.SystemException;
81  
82      public int getJournalStructuresCount()
83          throws com.liferay.portal.SystemException;
84  
85      public com.liferay.portlet.journal.model.JournalStructure updateJournalStructure(
86          com.liferay.portlet.journal.model.JournalStructure journalStructure)
87          throws com.liferay.portal.SystemException;
88  
89      public com.liferay.portlet.journal.model.JournalStructure addStructure(
90          long userId, java.lang.String structureId, boolean autoStructureId,
91          long plid, java.lang.String name, java.lang.String description,
92          java.lang.String xsd, boolean addCommunityPermissions,
93          boolean addGuestPermissions)
94          throws com.liferay.portal.PortalException,
95              com.liferay.portal.SystemException;
96  
97      public com.liferay.portlet.journal.model.JournalStructure addStructure(
98          java.lang.String uuid, long userId, java.lang.String structureId,
99          boolean autoStructureId, long plid, java.lang.String name,
100         java.lang.String description, java.lang.String xsd,
101         boolean addCommunityPermissions, boolean addGuestPermissions)
102         throws com.liferay.portal.PortalException,
103             com.liferay.portal.SystemException;
104 
105     public com.liferay.portlet.journal.model.JournalStructure addStructure(
106         long userId, java.lang.String structureId, boolean autoStructureId,
107         long plid, java.lang.String name, java.lang.String description,
108         java.lang.String xsd, java.lang.String[] communityPermissions,
109         java.lang.String[] guestPermissions)
110         throws com.liferay.portal.PortalException,
111             com.liferay.portal.SystemException;
112 
113     public com.liferay.portlet.journal.model.JournalStructure addStructure(
114         java.lang.String uuid, long userId, java.lang.String structureId,
115         boolean autoStructureId, long plid, java.lang.String name,
116         java.lang.String description, java.lang.String xsd,
117         java.lang.Boolean addCommunityPermissions,
118         java.lang.Boolean addGuestPermissions,
119         java.lang.String[] communityPermissions,
120         java.lang.String[] guestPermissions)
121         throws com.liferay.portal.PortalException,
122             com.liferay.portal.SystemException;
123 
124     public com.liferay.portlet.journal.model.JournalStructure addStructureToGroup(
125         java.lang.String uuid, long userId, java.lang.String structureId,
126         boolean autoStructureId, long groupId, java.lang.String name,
127         java.lang.String description, java.lang.String xsd,
128         java.lang.Boolean addCommunityPermissions,
129         java.lang.Boolean addGuestPermissions,
130         java.lang.String[] communityPermissions,
131         java.lang.String[] guestPermissions)
132         throws com.liferay.portal.PortalException,
133             com.liferay.portal.SystemException;
134 
135     public void addStructureResources(long groupId,
136         java.lang.String structureId, boolean addCommunityPermissions,
137         boolean addGuestPermissions)
138         throws com.liferay.portal.PortalException,
139             com.liferay.portal.SystemException;
140 
141     public void addStructureResources(
142         com.liferay.portlet.journal.model.JournalStructure structure,
143         boolean addCommunityPermissions, boolean addGuestPermissions)
144         throws com.liferay.portal.PortalException,
145             com.liferay.portal.SystemException;
146 
147     public void addStructureResources(long groupId,
148         java.lang.String structureId, java.lang.String[] communityPermissions,
149         java.lang.String[] guestPermissions)
150         throws com.liferay.portal.PortalException,
151             com.liferay.portal.SystemException;
152 
153     public void addStructureResources(
154         com.liferay.portlet.journal.model.JournalStructure structure,
155         java.lang.String[] communityPermissions,
156         java.lang.String[] guestPermissions)
157         throws com.liferay.portal.PortalException,
158             com.liferay.portal.SystemException;
159 
160     public void checkNewLine(long groupId, java.lang.String structureId)
161         throws com.liferay.portal.PortalException,
162             com.liferay.portal.SystemException;
163 
164     public com.liferay.portlet.journal.model.JournalStructure copyStructure(
165         long userId, long groupId, java.lang.String oldStructureId,
166         java.lang.String newStructureId, boolean autoStructureId)
167         throws com.liferay.portal.PortalException,
168             com.liferay.portal.SystemException;
169 
170     public void deleteStructure(long groupId, java.lang.String structureId)
171         throws com.liferay.portal.PortalException,
172             com.liferay.portal.SystemException;
173 
174     public void deleteStructure(
175         com.liferay.portlet.journal.model.JournalStructure structure)
176         throws com.liferay.portal.PortalException,
177             com.liferay.portal.SystemException;
178 
179     public void deleteStructures(long groupId)
180         throws com.liferay.portal.PortalException,
181             com.liferay.portal.SystemException;
182 
183     public com.liferay.portlet.journal.model.JournalStructure getStructure(
184         long id)
185         throws com.liferay.portal.PortalException,
186             com.liferay.portal.SystemException;
187 
188     public com.liferay.portlet.journal.model.JournalStructure getStructure(
189         long groupId, java.lang.String structureId)
190         throws com.liferay.portal.PortalException,
191             com.liferay.portal.SystemException;
192 
193     public java.util.List<com.liferay.portlet.journal.model.JournalStructure> getStructures()
194         throws com.liferay.portal.SystemException;
195 
196     public java.util.List<com.liferay.portlet.journal.model.JournalStructure> getStructures(
197         long groupId) throws com.liferay.portal.SystemException;
198 
199     public java.util.List<com.liferay.portlet.journal.model.JournalStructure> getStructures(
200         long groupId, int start, int end)
201         throws com.liferay.portal.SystemException;
202 
203     public int getStructuresCount(long groupId)
204         throws com.liferay.portal.SystemException;
205 
206     public java.util.List<com.liferay.portlet.journal.model.JournalStructure> search(
207         long companyId, long groupId, java.lang.String keywords, int start,
208         int end, com.liferay.portal.kernel.util.OrderByComparator obc)
209         throws com.liferay.portal.SystemException;
210 
211     public java.util.List<com.liferay.portlet.journal.model.JournalStructure> search(
212         long companyId, long groupId, java.lang.String structureId,
213         java.lang.String name, java.lang.String description,
214         boolean andOperator, int start, int end,
215         com.liferay.portal.kernel.util.OrderByComparator obc)
216         throws com.liferay.portal.SystemException;
217 
218     public int searchCount(long companyId, long groupId,
219         java.lang.String keywords) throws com.liferay.portal.SystemException;
220 
221     public int searchCount(long companyId, long groupId,
222         java.lang.String structureId, java.lang.String name,
223         java.lang.String description, boolean andOperator)
224         throws com.liferay.portal.SystemException;
225 
226     public com.liferay.portlet.journal.model.JournalStructure updateStructure(
227         long groupId, java.lang.String structureId, java.lang.String name,
228         java.lang.String description, java.lang.String xsd)
229         throws com.liferay.portal.PortalException,
230             com.liferay.portal.SystemException;
231 }