1   /**
2    * Copyright (c) 2000-2007 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   * <a href="JournalStructureLocalService.java.html"><b><i>View Source</i></b></a>
27   *
28   * <p>
29   * ServiceBuilder generated this class. Modifications in this class will be overwritten
30   * the next time is generated.
31   * </p>
32   *
33   * <p>
34   * This interface defines the service. The default implementation is <code>com.liferay.portlet.journal.service.impl.JournalStructureLocalServiceImpl</code>.
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
41   * based on the propagated JAAS credentials because this service can only be accessed
42   * from within the same VM.
43   * </p>
44   *
45   * @author Brian Wing Shun Chan
46   *
47   * @see com.liferay.portlet.journal.service.JournalStructureServiceFactory
48   * @see com.liferay.portlet.journal.service.JournalStructureServiceUtil
49   *
50   */
51  public interface JournalStructureLocalService {
52      public com.liferay.portlet.journal.model.JournalStructure addJournalStructure(
53          com.liferay.portlet.journal.model.JournalStructure model)
54          throws com.liferay.portal.SystemException;
55  
56      public java.util.List dynamicQuery(
57          com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
58          throws com.liferay.portal.SystemException;
59  
60      public java.util.List dynamicQuery(
61          com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
62          int begin, int end) throws com.liferay.portal.SystemException;
63  
64      public com.liferay.portlet.journal.model.JournalStructure updateJournalStructure(
65          com.liferay.portlet.journal.model.JournalStructure model)
66          throws com.liferay.portal.SystemException;
67  
68      public com.liferay.portlet.journal.model.JournalStructure addStructure(
69          long userId, java.lang.String structureId, boolean autoStructureId,
70          long plid, java.lang.String name, java.lang.String description,
71          java.lang.String xsd, boolean addCommunityPermissions,
72          boolean addGuestPermissions)
73          throws com.liferay.portal.SystemException, 
74              com.liferay.portal.PortalException;
75  
76      public com.liferay.portlet.journal.model.JournalStructure addStructure(
77          long userId, java.lang.String structureId, boolean autoStructureId,
78          long plid, java.lang.String name, java.lang.String description,
79          java.lang.String xsd, java.lang.String[] communityPermissions,
80          java.lang.String[] guestPermissions)
81          throws com.liferay.portal.SystemException, 
82              com.liferay.portal.PortalException;
83  
84      public com.liferay.portlet.journal.model.JournalStructure addStructure(
85          long userId, java.lang.String structureId, boolean autoStructureId,
86          long plid, java.lang.String name, java.lang.String description,
87          java.lang.String xsd, java.lang.Boolean addCommunityPermissions,
88          java.lang.Boolean addGuestPermissions,
89          java.lang.String[] communityPermissions,
90          java.lang.String[] guestPermissions)
91          throws com.liferay.portal.SystemException, 
92              com.liferay.portal.PortalException;
93  
94      public com.liferay.portlet.journal.model.JournalStructure addStructureToGroup(
95          long userId, java.lang.String structureId, boolean autoStructureId,
96          long groupId, java.lang.String name, java.lang.String description,
97          java.lang.String xsd, java.lang.Boolean addCommunityPermissions,
98          java.lang.Boolean addGuestPermissions,
99          java.lang.String[] communityPermissions,
100         java.lang.String[] guestPermissions)
101         throws com.liferay.portal.SystemException, 
102             com.liferay.portal.PortalException;
103 
104     public void addStructureResources(long groupId,
105         java.lang.String structureId, boolean addCommunityPermissions,
106         boolean addGuestPermissions)
107         throws com.liferay.portal.SystemException, 
108             com.liferay.portal.PortalException;
109 
110     public void addStructureResources(
111         com.liferay.portlet.journal.model.JournalStructure structure,
112         boolean addCommunityPermissions, boolean addGuestPermissions)
113         throws com.liferay.portal.SystemException, 
114             com.liferay.portal.PortalException;
115 
116     public void addStructureResources(long groupId,
117         java.lang.String structureId, java.lang.String[] communityPermissions,
118         java.lang.String[] guestPermissions)
119         throws com.liferay.portal.SystemException, 
120             com.liferay.portal.PortalException;
121 
122     public void addStructureResources(
123         com.liferay.portlet.journal.model.JournalStructure structure,
124         java.lang.String[] communityPermissions,
125         java.lang.String[] guestPermissions)
126         throws com.liferay.portal.SystemException, 
127             com.liferay.portal.PortalException;
128 
129     public void checkNewLine(long groupId, java.lang.String structureId)
130         throws com.liferay.portal.SystemException, 
131             com.liferay.portal.PortalException;
132 
133     public void deleteStructure(long groupId, java.lang.String structureId)
134         throws com.liferay.portal.SystemException, 
135             com.liferay.portal.PortalException;
136 
137     public void deleteStructure(
138         com.liferay.portlet.journal.model.JournalStructure structure)
139         throws com.liferay.portal.SystemException, 
140             com.liferay.portal.PortalException;
141 
142     public com.liferay.portlet.journal.model.JournalStructure getStructure(
143         long id)
144         throws com.liferay.portal.SystemException, 
145             com.liferay.portal.PortalException;
146 
147     public com.liferay.portlet.journal.model.JournalStructure getStructure(
148         long groupId, java.lang.String structureId)
149         throws com.liferay.portal.SystemException, 
150             com.liferay.portal.PortalException;
151 
152     public java.util.List getStructures()
153         throws com.liferay.portal.SystemException;
154 
155     public java.util.List getStructures(long groupId)
156         throws com.liferay.portal.SystemException;
157 
158     public java.util.List getStructures(long groupId, int begin, int end)
159         throws com.liferay.portal.SystemException;
160 
161     public int getStructuresCount(long groupId)
162         throws com.liferay.portal.SystemException;
163 
164     public java.util.List search(long companyId, long groupId,
165         java.lang.String keywords, int begin, int end,
166         com.liferay.portal.kernel.util.OrderByComparator obc)
167         throws com.liferay.portal.SystemException;
168 
169     public java.util.List search(long companyId, long groupId,
170         java.lang.String structureId, java.lang.String name,
171         java.lang.String description, boolean andOperator, int begin, int end,
172         com.liferay.portal.kernel.util.OrderByComparator obc)
173         throws com.liferay.portal.SystemException;
174 
175     public int searchCount(long companyId, long groupId,
176         java.lang.String keywords) throws com.liferay.portal.SystemException;
177 
178     public int searchCount(long companyId, long groupId,
179         java.lang.String structureId, java.lang.String name,
180         java.lang.String description, boolean andOperator)
181         throws com.liferay.portal.SystemException;
182 
183     public com.liferay.portlet.journal.model.JournalStructure updateStructure(
184         long groupId, java.lang.String structureId, java.lang.String name,
185         java.lang.String description, java.lang.String xsd)
186         throws com.liferay.portal.SystemException, 
187             com.liferay.portal.PortalException;
188 }