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