001    /**
002     * Copyright (c) 2000-2013 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.exception.PortalException;
018    import com.liferay.portal.kernel.exception.SystemException;
019    import com.liferay.portal.kernel.transaction.Isolation;
020    import com.liferay.portal.kernel.transaction.Propagation;
021    import com.liferay.portal.kernel.transaction.Transactional;
022    import com.liferay.portal.service.BaseLocalService;
023    
024    /**
025     * Provides the local service interface for JournalStructure. Methods of this
026     * service will not have security checks based on the propagated JAAS
027     * credentials because this service can only be accessed from within the same
028     * VM.
029     *
030     * @author Brian Wing Shun Chan
031     * @see JournalStructureLocalServiceUtil
032     * @see com.liferay.portlet.journal.service.base.JournalStructureLocalServiceBaseImpl
033     * @see com.liferay.portlet.journal.service.impl.JournalStructureLocalServiceImpl
034     * @deprecated As of 6.2.0, since Web Content Administration now uses the
035                Dynamic Data Mapping framework to handle structures
036     * @generated
037     */
038    @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
039            PortalException.class, SystemException.class})
040    public interface JournalStructureLocalService extends BaseLocalService {
041            /*
042             * NOTE FOR DEVELOPERS:
043             *
044             * Never modify or reference this interface directly. Always use {@link JournalStructureLocalServiceUtil} to access the journal structure local service. Add custom service methods to {@link com.liferay.portlet.journal.service.impl.JournalStructureLocalServiceImpl} and rerun ServiceBuilder to automatically copy the method declarations to this interface.
045             */
046    
047            /**
048            * Returns the Spring bean ID for this bean.
049            *
050            * @return the Spring bean ID for this bean
051            */
052            public java.lang.String getBeanIdentifier();
053    
054            /**
055            * Sets the Spring bean ID for this bean.
056            *
057            * @param beanIdentifier the Spring bean ID for this bean
058            */
059            public void setBeanIdentifier(java.lang.String beanIdentifier);
060    
061            public com.liferay.portlet.journal.model.JournalStructure addJournalStructure(
062                    com.liferay.portlet.journal.model.JournalStructure structure)
063                    throws com.liferay.portal.kernel.exception.PortalException,
064                            com.liferay.portal.kernel.exception.SystemException;
065    
066            public com.liferay.portlet.journal.model.JournalStructure addStructure(
067                    long userId, long groupId, java.lang.String structureId,
068                    boolean autoStructureId, java.lang.String parentStructureId,
069                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
070                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
071                    java.lang.String xsd,
072                    com.liferay.portal.service.ServiceContext serviceContext)
073                    throws com.liferay.portal.kernel.exception.PortalException,
074                            com.liferay.portal.kernel.exception.SystemException;
075    
076            public void addStructureResources(
077                    com.liferay.portlet.journal.model.JournalStructure structure,
078                    boolean addGroupPermissions, boolean addGuestPermissions)
079                    throws com.liferay.portal.kernel.exception.PortalException,
080                            com.liferay.portal.kernel.exception.SystemException;
081    
082            public void addStructureResources(
083                    com.liferay.portlet.journal.model.JournalStructure structure,
084                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
085                    throws com.liferay.portal.kernel.exception.PortalException,
086                            com.liferay.portal.kernel.exception.SystemException;
087    
088            public void addStructureResources(long groupId,
089                    java.lang.String structureId, boolean addGroupPermissions,
090                    boolean addGuestPermissions)
091                    throws com.liferay.portal.kernel.exception.PortalException,
092                            com.liferay.portal.kernel.exception.SystemException;
093    
094            public void addStructureResources(long groupId,
095                    java.lang.String structureId, java.lang.String[] groupPermissions,
096                    java.lang.String[] guestPermissions)
097                    throws com.liferay.portal.kernel.exception.PortalException,
098                            com.liferay.portal.kernel.exception.SystemException;
099    
100            public void checkNewLine(long groupId, java.lang.String structureId)
101                    throws com.liferay.portal.kernel.exception.PortalException,
102                            com.liferay.portal.kernel.exception.SystemException;
103    
104            public com.liferay.portlet.journal.model.JournalStructure copyStructure(
105                    long userId, long groupId, java.lang.String oldStructureId,
106                    java.lang.String newStructureId, boolean autoStructureId)
107                    throws com.liferay.portal.kernel.exception.PortalException,
108                            com.liferay.portal.kernel.exception.SystemException;
109    
110            public com.liferay.portlet.journal.model.JournalStructure createJournalStructure(
111                    long id) throws com.liferay.portal.kernel.exception.SystemException;
112    
113            public void deleteStructure(
114                    com.liferay.portlet.journal.model.JournalStructure structure)
115                    throws com.liferay.portal.kernel.exception.PortalException,
116                            com.liferay.portal.kernel.exception.SystemException;
117    
118            public void deleteStructure(long groupId, java.lang.String structureId)
119                    throws com.liferay.portal.kernel.exception.PortalException,
120                            com.liferay.portal.kernel.exception.SystemException;
121    
122            public void deleteStructures(long groupId)
123                    throws com.liferay.portal.kernel.exception.PortalException,
124                            com.liferay.portal.kernel.exception.SystemException;
125    
126            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
127            public com.liferay.portlet.journal.model.JournalStructure fetchStructure(
128                    long groupId, java.lang.String structureId)
129                    throws com.liferay.portal.kernel.exception.SystemException;
130    
131            public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findAll()
132                    throws com.liferay.portal.kernel.exception.SystemException;
133    
134            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
135            public com.liferay.portlet.journal.model.JournalStructure getStructure(
136                    long groupId, java.lang.String structureId)
137                    throws com.liferay.portal.kernel.exception.PortalException,
138                            com.liferay.portal.kernel.exception.SystemException;
139    
140            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
141            public com.liferay.portlet.journal.model.JournalStructure getStructure(
142                    long groupId, java.lang.String structureId,
143                    boolean includeGlobalStructures)
144                    throws com.liferay.portal.kernel.exception.PortalException,
145                            com.liferay.portal.kernel.exception.SystemException;
146    
147            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
148            public java.util.List<com.liferay.portlet.journal.model.JournalStructure> getStructures()
149                    throws com.liferay.portal.kernel.exception.SystemException;
150    
151            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
152            public java.util.List<com.liferay.portlet.journal.model.JournalStructure> getStructures(
153                    long groupId)
154                    throws com.liferay.portal.kernel.exception.SystemException;
155    
156            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
157            public java.util.List<com.liferay.portlet.journal.model.JournalStructure> getStructures(
158                    long groupId, int start, int end)
159                    throws com.liferay.portal.kernel.exception.SystemException;
160    
161            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
162            public int getStructuresCount(long groupId)
163                    throws com.liferay.portal.kernel.exception.SystemException;
164    
165            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
166            public java.util.List<com.liferay.portlet.journal.model.JournalStructure> search(
167                    long companyId, long[] groupIds, java.lang.String keywords, int start,
168                    int end, com.liferay.portal.kernel.util.OrderByComparator obc)
169                    throws com.liferay.portal.kernel.exception.SystemException;
170    
171            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
172            public java.util.List<com.liferay.portlet.journal.model.JournalStructure> search(
173                    long companyId, long[] groupIds, java.lang.String structureId,
174                    java.lang.String name, java.lang.String description,
175                    boolean andOperator, int start, int end,
176                    com.liferay.portal.kernel.util.OrderByComparator obc)
177                    throws com.liferay.portal.kernel.exception.SystemException;
178    
179            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
180            public int searchCount(long companyId, long[] groupIds,
181                    java.lang.String keywords)
182                    throws com.liferay.portal.kernel.exception.SystemException;
183    
184            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
185            public int searchCount(long companyId, long[] groupIds,
186                    java.lang.String structureId, java.lang.String name,
187                    java.lang.String description, boolean andOperator)
188                    throws com.liferay.portal.kernel.exception.SystemException;
189    
190            public com.liferay.portlet.journal.model.JournalStructure updateJournalStructure(
191                    com.liferay.portlet.journal.model.JournalStructure structure)
192                    throws com.liferay.portal.kernel.exception.PortalException,
193                            com.liferay.portal.kernel.exception.SystemException;
194    
195            public com.liferay.portlet.journal.model.JournalStructure updateStructure(
196                    long groupId, java.lang.String structureId,
197                    java.lang.String parentStructureId,
198                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
199                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
200                    java.lang.String xsd,
201                    com.liferay.portal.service.ServiceContext serviceContext)
202                    throws com.liferay.portal.kernel.exception.PortalException,
203                            com.liferay.portal.kernel.exception.SystemException;
204    }