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.model.Group;
024    import com.liferay.portal.service.BaseLocalService;
025    import com.liferay.portal.service.ServiceContext;
026    
027    import com.liferay.portlet.exportimport.lar.MissingReferences;
028    import com.liferay.portlet.exportimport.model.ExportImportConfiguration;
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            public void checkDefaultLayoutSetBranches(long userId, Group liveGroup,
056                    boolean branchingPublic, boolean branchingPrivate, boolean remote,
057                    ServiceContext serviceContext) throws PortalException;
058    
059            public void cleanUpStagingRequest(long stagingRequestId)
060                    throws PortalException;
061    
062            public long createStagingRequest(long userId, long groupId,
063                    java.lang.String checksum) throws PortalException;
064    
065            public void disableStaging(Group liveGroup, ServiceContext serviceContext)
066                    throws PortalException;
067    
068            public void disableStaging(PortletRequest portletRequest, Group liveGroup,
069                    ServiceContext serviceContext) throws PortalException;
070    
071            public void enableLocalStaging(long userId, Group liveGroup,
072                    boolean branchingPublic, boolean branchingPrivate,
073                    ServiceContext serviceContext) throws PortalException;
074    
075            public void enableRemoteStaging(long userId, Group stagingGroup,
076                    boolean branchingPublic, boolean branchingPrivate,
077                    java.lang.String remoteAddress, int remotePort,
078                    java.lang.String remotePathContext, boolean secureConnection,
079                    long remoteGroupId, ServiceContext serviceContext)
080                    throws PortalException;
081    
082            /**
083            * Returns the OSGi service identifier.
084            *
085            * @return the OSGi service identifier
086            */
087            public java.lang.String getOSGiServiceIdentifier();
088    
089            public MissingReferences publishStagingRequest(long userId,
090                    long stagingRequestId,
091                    ExportImportConfiguration exportImportConfiguration)
092                    throws PortalException;
093    
094            /**
095            * @deprecated As of 7.0.0, with no direct replacement
096            */
097            @java.lang.Deprecated
098            public MissingReferences publishStagingRequest(long userId,
099                    long stagingRequestId, boolean privateLayout,
100                    Map<java.lang.String, java.lang.String[]> parameterMap)
101                    throws PortalException;
102    
103            public void updateStagingRequest(long userId, long stagingRequestId,
104                    java.lang.String fileName, byte[] bytes) throws PortalException;
105    
106            /**
107            * @deprecated As of 7.0.0, replaced by {@link #publishStagingRequest(long,
108            long, boolean, Map)}
109            */
110            @java.lang.Deprecated
111            public MissingReferences validateStagingRequest(long userId,
112                    long stagingRequestId, boolean privateLayout,
113                    Map<java.lang.String, java.lang.String[]> parameterMap);
114    }