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.portal.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.Transactional;
021    
022    /**
023     * Provides the local service interface for Staging. Methods of this
024     * service will not have security checks based on the propagated JAAS
025     * credentials because this service can only be accessed from within the same
026     * VM.
027     *
028     * @author Brian Wing Shun Chan
029     * @see StagingLocalServiceUtil
030     * @see com.liferay.portal.service.base.StagingLocalServiceBaseImpl
031     * @see com.liferay.portal.service.impl.StagingLocalServiceImpl
032     * @generated
033     */
034    @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
035            PortalException.class, SystemException.class})
036    public interface StagingLocalService extends BaseLocalService {
037            /*
038             * NOTE FOR DEVELOPERS:
039             *
040             * 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.portal.service.impl.StagingLocalServiceImpl} and rerun ServiceBuilder to automatically copy the method declarations to this interface.
041             */
042    
043            /**
044            * Returns the Spring bean ID for this bean.
045            *
046            * @return the Spring bean ID for this bean
047            */
048            public java.lang.String getBeanIdentifier();
049    
050            /**
051            * Sets the Spring bean ID for this bean.
052            *
053            * @param beanIdentifier the Spring bean ID for this bean
054            */
055            public void setBeanIdentifier(java.lang.String beanIdentifier);
056    
057            public void cleanUpStagingRequest(long stagingRequestId)
058                    throws com.liferay.portal.kernel.exception.PortalException,
059                            com.liferay.portal.kernel.exception.SystemException;
060    
061            public long createStagingRequest(long userId, long groupId,
062                    java.lang.String checksum)
063                    throws com.liferay.portal.kernel.exception.PortalException,
064                            com.liferay.portal.kernel.exception.SystemException;
065    
066            public void publishStagingRequest(long userId, long stagingRequestId,
067                    boolean privateLayout,
068                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap)
069                    throws com.liferay.portal.kernel.exception.PortalException,
070                            com.liferay.portal.kernel.exception.SystemException;
071    
072            public void updateStagingRequest(long userId, long stagingRequestId,
073                    java.lang.String fileName, byte[] bytes)
074                    throws com.liferay.portal.kernel.exception.PortalException,
075                            com.liferay.portal.kernel.exception.SystemException;
076    
077            public com.liferay.portal.kernel.lar.MissingReferences validateStagingRequest(
078                    long userId, long stagingRequestId, boolean privateLayout,
079                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap)
080                    throws com.liferay.portal.kernel.exception.PortalException,
081                            com.liferay.portal.kernel.exception.SystemException;
082    }