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