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