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.bean.PortalBeanLocatorUtil;
018    import com.liferay.portal.kernel.util.ReferenceRegistry;
019    
020    /**
021     * Provides the local service utility for Staging. This utility wraps
022     * {@link com.liferay.portal.service.impl.StagingLocalServiceImpl} and is the
023     * primary access point for service operations in application layer code running
024     * on the local server. Methods of this service will not have security checks
025     * based on the propagated JAAS credentials because this service can only be
026     * accessed from within the same VM.
027     *
028     * @author Brian Wing Shun Chan
029     * @see StagingLocalService
030     * @see com.liferay.portal.service.base.StagingLocalServiceBaseImpl
031     * @see com.liferay.portal.service.impl.StagingLocalServiceImpl
032     * @generated
033     */
034    public class StagingLocalServiceUtil {
035            /*
036             * NOTE FOR DEVELOPERS:
037             *
038             * Never modify this class directly. Add custom service methods to {@link com.liferay.portal.service.impl.StagingLocalServiceImpl} and rerun ServiceBuilder to regenerate this class.
039             */
040    
041            /**
042            * Returns the Spring bean ID for this bean.
043            *
044            * @return the Spring bean ID for this bean
045            */
046            public static java.lang.String getBeanIdentifier() {
047                    return getService().getBeanIdentifier();
048            }
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 static void setBeanIdentifier(java.lang.String beanIdentifier) {
056                    getService().setBeanIdentifier(beanIdentifier);
057            }
058    
059            public static void cleanUpStagingRequest(long stagingRequestId)
060                    throws com.liferay.portal.kernel.exception.PortalException,
061                            com.liferay.portal.kernel.exception.SystemException {
062                    getService().cleanUpStagingRequest(stagingRequestId);
063            }
064    
065            public static long createStagingRequest(long userId, long groupId,
066                    java.lang.String checksum)
067                    throws com.liferay.portal.kernel.exception.PortalException,
068                            com.liferay.portal.kernel.exception.SystemException {
069                    return getService().createStagingRequest(userId, groupId, checksum);
070            }
071    
072            public static void publishStagingRequest(long userId,
073                    long stagingRequestId, boolean privateLayout,
074                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap)
075                    throws com.liferay.portal.kernel.exception.PortalException,
076                            com.liferay.portal.kernel.exception.SystemException {
077                    getService()
078                            .publishStagingRequest(userId, stagingRequestId, privateLayout,
079                            parameterMap);
080            }
081    
082            public static void updateStagingRequest(long userId, long stagingRequestId,
083                    java.lang.String fileName, byte[] bytes)
084                    throws com.liferay.portal.kernel.exception.PortalException,
085                            com.liferay.portal.kernel.exception.SystemException {
086                    getService()
087                            .updateStagingRequest(userId, stagingRequestId, fileName, bytes);
088            }
089    
090            public static com.liferay.portal.kernel.lar.MissingReferences validateStagingRequest(
091                    long userId, long stagingRequestId, boolean privateLayout,
092                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap)
093                    throws com.liferay.portal.kernel.exception.PortalException,
094                            com.liferay.portal.kernel.exception.SystemException {
095                    return getService()
096                                       .validateStagingRequest(userId, stagingRequestId,
097                            privateLayout, parameterMap);
098            }
099    
100            public static StagingLocalService getService() {
101                    if (_service == null) {
102                            _service = (StagingLocalService)PortalBeanLocatorUtil.locate(StagingLocalService.class.getName());
103    
104                            ReferenceRegistry.registerReference(StagingLocalServiceUtil.class,
105                                    "_service");
106                    }
107    
108                    return _service;
109            }
110    
111            /**
112             * @deprecated As of 6.2.0
113             */
114            public void setService(StagingLocalService service) {
115            }
116    
117            private static StagingLocalService _service;
118    }