001    /**
002     * Copyright (c) 2000-present 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.exportimport.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.Transactional;
023    import com.liferay.portal.service.BaseLocalService;
024    
025    /**
026     * Provides the local service interface for Staging. Methods of this
027     * service will not have security checks based on the propagated JAAS
028     * credentials because this service can only be accessed from within the same
029     * VM.
030     *
031     * @author Brian Wing Shun Chan
032     * @see StagingLocalServiceUtil
033     * @see com.liferay.portlet.exportimport.service.base.StagingLocalServiceBaseImpl
034     * @see com.liferay.portlet.exportimport.service.impl.StagingLocalServiceImpl
035     * @generated
036     */
037    @ProviderType
038    @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
039            PortalException.class, SystemException.class})
040    public interface StagingLocalService extends BaseLocalService {
041            /*
042             * NOTE FOR DEVELOPERS:
043             *
044             * Never modify or reference this interface directly. Always use {@link StagingLocalServiceUtil} to access the staging local service. Add custom service methods to {@link com.liferay.portlet.exportimport.service.impl.StagingLocalServiceImpl} and rerun ServiceBuilder to automatically copy the method declarations to this interface.
045             */
046            public void checkDefaultLayoutSetBranches(long userId,
047                    com.liferay.portal.model.Group liveGroup, boolean branchingPublic,
048                    boolean branchingPrivate, boolean remote,
049                    com.liferay.portal.service.ServiceContext serviceContext)
050                    throws PortalException;
051    
052            public void cleanUpStagingRequest(long stagingRequestId)
053                    throws PortalException;
054    
055            public long createStagingRequest(long userId, long groupId,
056                    java.lang.String checksum) throws PortalException;
057    
058            public void disableStaging(com.liferay.portal.model.Group liveGroup,
059                    com.liferay.portal.service.ServiceContext serviceContext)
060                    throws PortalException;
061    
062            public void disableStaging(javax.portlet.PortletRequest portletRequest,
063                    com.liferay.portal.model.Group liveGroup,
064                    com.liferay.portal.service.ServiceContext serviceContext)
065                    throws PortalException;
066    
067            public void enableLocalStaging(long userId,
068                    com.liferay.portal.model.Group liveGroup, boolean branchingPublic,
069                    boolean branchingPrivate,
070                    com.liferay.portal.service.ServiceContext serviceContext)
071                    throws PortalException;
072    
073            public void enableRemoteStaging(long userId,
074                    com.liferay.portal.model.Group stagingGroup, boolean branchingPublic,
075                    boolean branchingPrivate, java.lang.String remoteAddress,
076                    int remotePort, java.lang.String remotePathContext,
077                    boolean secureConnection, long remoteGroupId,
078                    com.liferay.portal.service.ServiceContext serviceContext)
079                    throws PortalException;
080    
081            /**
082            * Returns the OSGi service identifier.
083            *
084            * @return the OSGi service identifier
085            */
086            public java.lang.String getOSGiServiceIdentifier();
087    
088            public com.liferay.portlet.exportimport.lar.MissingReferences publishStagingRequest(
089                    long userId, long stagingRequestId,
090                    com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration)
091                    throws PortalException;
092    
093            /**
094            * @deprecated As of 7.0.0, with no direct replacement
095            */
096            @java.lang.Deprecated
097            public com.liferay.portlet.exportimport.lar.MissingReferences publishStagingRequest(
098                    long userId, long stagingRequestId, boolean privateLayout,
099                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap)
100                    throws PortalException;
101    
102            public void updateStagingRequest(long userId, long stagingRequestId,
103                    java.lang.String fileName, byte[] bytes) throws PortalException;
104    
105            /**
106            * @deprecated As of 7.0.0, replaced by {@link #publishStagingRequest(long,
107            long, boolean, Map)}
108            */
109            @java.lang.Deprecated
110            public com.liferay.portlet.exportimport.lar.MissingReferences validateStagingRequest(
111                    long userId, long stagingRequestId, boolean privateLayout,
112                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap);
113    }