001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.journal.service;
016    
017    import com.liferay.portal.kernel.annotation.Isolation;
018    import com.liferay.portal.kernel.annotation.Propagation;
019    import com.liferay.portal.kernel.annotation.Transactional;
020    import com.liferay.portal.kernel.exception.PortalException;
021    import com.liferay.portal.kernel.exception.SystemException;
022    
023    /**
024     * <p>
025     * This interface defines the service. The default implementation is
026     * {@link
027     * com.liferay.portlet.journal.service.impl.JournalStructureLocalServiceImpl}.
028     * Modify methods in that class and rerun ServiceBuilder to populate this class
029     * and all other generated classes.
030     * </p>
031     *
032     * <p>
033     * 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.
034     * </p>
035     *
036     * @author    Brian Wing Shun Chan
037     * @see       JournalStructureLocalServiceUtil
038     * @generated
039     */
040    @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
041            PortalException.class, SystemException.class})
042    public interface JournalStructureLocalService {
043            public com.liferay.portlet.journal.model.JournalStructure addJournalStructure(
044                    com.liferay.portlet.journal.model.JournalStructure journalStructure)
045                    throws com.liferay.portal.kernel.exception.SystemException;
046    
047            public com.liferay.portlet.journal.model.JournalStructure createJournalStructure(
048                    long id);
049    
050            public void deleteJournalStructure(long id)
051                    throws com.liferay.portal.kernel.exception.PortalException,
052                            com.liferay.portal.kernel.exception.SystemException;
053    
054            public void deleteJournalStructure(
055                    com.liferay.portlet.journal.model.JournalStructure journalStructure)
056                    throws com.liferay.portal.kernel.exception.SystemException;
057    
058            @SuppressWarnings("unchecked")
059            public java.util.List dynamicQuery(
060                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
061                    throws com.liferay.portal.kernel.exception.SystemException;
062    
063            @SuppressWarnings("unchecked")
064            public java.util.List dynamicQuery(
065                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
066                    int end) throws com.liferay.portal.kernel.exception.SystemException;
067    
068            @SuppressWarnings("unchecked")
069            public java.util.List dynamicQuery(
070                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
071                    int end,
072                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
073                    throws com.liferay.portal.kernel.exception.SystemException;
074    
075            public long dynamicQueryCount(
076                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
077                    throws com.liferay.portal.kernel.exception.SystemException;
078    
079            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
080            public com.liferay.portlet.journal.model.JournalStructure getJournalStructure(
081                    long id)
082                    throws com.liferay.portal.kernel.exception.PortalException,
083                            com.liferay.portal.kernel.exception.SystemException;
084    
085            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
086            public com.liferay.portlet.journal.model.JournalStructure getJournalStructureByUuidAndGroupId(
087                    java.lang.String uuid, long groupId)
088                    throws com.liferay.portal.kernel.exception.PortalException,
089                            com.liferay.portal.kernel.exception.SystemException;
090    
091            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
092            public java.util.List<com.liferay.portlet.journal.model.JournalStructure> getJournalStructures(
093                    int start, int end)
094                    throws com.liferay.portal.kernel.exception.SystemException;
095    
096            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
097            public int getJournalStructuresCount()
098                    throws com.liferay.portal.kernel.exception.SystemException;
099    
100            public com.liferay.portlet.journal.model.JournalStructure updateJournalStructure(
101                    com.liferay.portlet.journal.model.JournalStructure journalStructure)
102                    throws com.liferay.portal.kernel.exception.SystemException;
103    
104            public com.liferay.portlet.journal.model.JournalStructure updateJournalStructure(
105                    com.liferay.portlet.journal.model.JournalStructure journalStructure,
106                    boolean merge)
107                    throws com.liferay.portal.kernel.exception.SystemException;
108    
109            public com.liferay.portlet.journal.model.JournalStructure addStructure(
110                    long userId, long groupId, java.lang.String structureId,
111                    boolean autoStructureId, java.lang.String parentStructureId,
112                    java.lang.String name, java.lang.String description,
113                    java.lang.String xsd,
114                    com.liferay.portal.service.ServiceContext serviceContext)
115                    throws com.liferay.portal.kernel.exception.PortalException,
116                            com.liferay.portal.kernel.exception.SystemException;
117    
118            public void addStructureResources(long groupId,
119                    java.lang.String structureId, boolean addCommunityPermissions,
120                    boolean addGuestPermissions)
121                    throws com.liferay.portal.kernel.exception.PortalException,
122                            com.liferay.portal.kernel.exception.SystemException;
123    
124            public void addStructureResources(
125                    com.liferay.portlet.journal.model.JournalStructure structure,
126                    boolean addCommunityPermissions, boolean addGuestPermissions)
127                    throws com.liferay.portal.kernel.exception.PortalException,
128                            com.liferay.portal.kernel.exception.SystemException;
129    
130            public void addStructureResources(long groupId,
131                    java.lang.String structureId, java.lang.String[] communityPermissions,
132                    java.lang.String[] guestPermissions)
133                    throws com.liferay.portal.kernel.exception.PortalException,
134                            com.liferay.portal.kernel.exception.SystemException;
135    
136            public void addStructureResources(
137                    com.liferay.portlet.journal.model.JournalStructure structure,
138                    java.lang.String[] communityPermissions,
139                    java.lang.String[] guestPermissions)
140                    throws com.liferay.portal.kernel.exception.PortalException,
141                            com.liferay.portal.kernel.exception.SystemException;
142    
143            public void checkNewLine(long groupId, java.lang.String structureId)
144                    throws com.liferay.portal.kernel.exception.PortalException,
145                            com.liferay.portal.kernel.exception.SystemException;
146    
147            public com.liferay.portlet.journal.model.JournalStructure copyStructure(
148                    long userId, long groupId, java.lang.String oldStructureId,
149                    java.lang.String newStructureId, boolean autoStructureId)
150                    throws com.liferay.portal.kernel.exception.PortalException,
151                            com.liferay.portal.kernel.exception.SystemException;
152    
153            public void deleteStructure(long groupId, java.lang.String structureId)
154                    throws com.liferay.portal.kernel.exception.PortalException,
155                            com.liferay.portal.kernel.exception.SystemException;
156    
157            public void deleteStructure(
158                    com.liferay.portlet.journal.model.JournalStructure structure)
159                    throws com.liferay.portal.kernel.exception.PortalException,
160                            com.liferay.portal.kernel.exception.SystemException;
161    
162            public void deleteStructures(long groupId)
163                    throws com.liferay.portal.kernel.exception.PortalException,
164                            com.liferay.portal.kernel.exception.SystemException;
165    
166            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
167            public com.liferay.portlet.journal.model.JournalStructure getStructure(
168                    long id)
169                    throws com.liferay.portal.kernel.exception.PortalException,
170                            com.liferay.portal.kernel.exception.SystemException;
171    
172            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
173            public com.liferay.portlet.journal.model.JournalStructure getStructure(
174                    long groupId, java.lang.String structureId)
175                    throws com.liferay.portal.kernel.exception.PortalException,
176                            com.liferay.portal.kernel.exception.SystemException;
177    
178            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
179            public java.util.List<com.liferay.portlet.journal.model.JournalStructure> getStructures()
180                    throws com.liferay.portal.kernel.exception.SystemException;
181    
182            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
183            public java.util.List<com.liferay.portlet.journal.model.JournalStructure> getStructures(
184                    long groupId)
185                    throws com.liferay.portal.kernel.exception.SystemException;
186    
187            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
188            public java.util.List<com.liferay.portlet.journal.model.JournalStructure> getStructures(
189                    long groupId, int start, int end)
190                    throws com.liferay.portal.kernel.exception.SystemException;
191    
192            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
193            public int getStructuresCount(long groupId)
194                    throws com.liferay.portal.kernel.exception.SystemException;
195    
196            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
197            public java.util.List<com.liferay.portlet.journal.model.JournalStructure> search(
198                    long companyId, long groupId, java.lang.String keywords, int start,
199                    int end, com.liferay.portal.kernel.util.OrderByComparator obc)
200                    throws com.liferay.portal.kernel.exception.SystemException;
201    
202            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
203            public java.util.List<com.liferay.portlet.journal.model.JournalStructure> search(
204                    long companyId, long groupId, java.lang.String structureId,
205                    java.lang.String name, java.lang.String description,
206                    boolean andOperator, int start, int end,
207                    com.liferay.portal.kernel.util.OrderByComparator obc)
208                    throws com.liferay.portal.kernel.exception.SystemException;
209    
210            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
211            public int searchCount(long companyId, long groupId,
212                    java.lang.String keywords)
213                    throws com.liferay.portal.kernel.exception.SystemException;
214    
215            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
216            public int searchCount(long companyId, long groupId,
217                    java.lang.String structureId, java.lang.String name,
218                    java.lang.String description, boolean andOperator)
219                    throws com.liferay.portal.kernel.exception.SystemException;
220    
221            public com.liferay.portlet.journal.model.JournalStructure updateStructure(
222                    long groupId, java.lang.String structureId,
223                    java.lang.String parentStructureId, java.lang.String name,
224                    java.lang.String description, java.lang.String xsd,
225                    com.liferay.portal.service.ServiceContext serviceContext)
226                    throws com.liferay.portal.kernel.exception.PortalException,
227                            com.liferay.portal.kernel.exception.SystemException;
228    }