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