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.portlet.documentlibrary.service;
016    
017    import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018    import com.liferay.portal.kernel.util.ReferenceRegistry;
019    
020    /**
021     * The utility for the document library file shortcut remote service. This utility wraps {@link com.liferay.portlet.documentlibrary.service.impl.DLFileShortcutServiceImpl} and is the primary access point for service operations in application layer code running on a remote server.
022     *
023     * <p>
024     * This is a remote service. Methods of this service are expected to have security checks based on the propagated JAAS credentials because this service can be accessed remotely.
025     * </p>
026     *
027     * @author Brian Wing Shun Chan
028     * @see DLFileShortcutService
029     * @see com.liferay.portlet.documentlibrary.service.base.DLFileShortcutServiceBaseImpl
030     * @see com.liferay.portlet.documentlibrary.service.impl.DLFileShortcutServiceImpl
031     * @generated
032     */
033    public class DLFileShortcutServiceUtil {
034            /*
035             * NOTE FOR DEVELOPERS:
036             *
037             * Never modify this class directly. Add custom service methods to {@link com.liferay.portlet.documentlibrary.service.impl.DLFileShortcutServiceImpl} and rerun ServiceBuilder to regenerate this class.
038             */
039    
040            /**
041            * Returns the Spring bean ID for this bean.
042            *
043            * @return the Spring bean ID for this bean
044            */
045            public static java.lang.String getBeanIdentifier() {
046                    return getService().getBeanIdentifier();
047            }
048    
049            /**
050            * Sets the Spring bean ID for this bean.
051            *
052            * @param beanIdentifier the Spring bean ID for this bean
053            */
054            public static void setBeanIdentifier(java.lang.String beanIdentifier) {
055                    getService().setBeanIdentifier(beanIdentifier);
056            }
057    
058            public static com.liferay.portlet.documentlibrary.model.DLFileShortcut addFileShortcut(
059                    long groupId, long folderId, long toFileEntryId,
060                    com.liferay.portal.service.ServiceContext serviceContext)
061                    throws com.liferay.portal.kernel.exception.PortalException,
062                            com.liferay.portal.kernel.exception.SystemException {
063                    return getService()
064                                       .addFileShortcut(groupId, folderId, toFileEntryId,
065                            serviceContext);
066            }
067    
068            public static void deleteFileShortcut(long fileShortcutId)
069                    throws com.liferay.portal.kernel.exception.PortalException,
070                            com.liferay.portal.kernel.exception.SystemException {
071                    getService().deleteFileShortcut(fileShortcutId);
072            }
073    
074            public static com.liferay.portlet.documentlibrary.model.DLFileShortcut getFileShortcut(
075                    long fileShortcutId)
076                    throws com.liferay.portal.kernel.exception.PortalException,
077                            com.liferay.portal.kernel.exception.SystemException {
078                    return getService().getFileShortcut(fileShortcutId);
079            }
080    
081            public static com.liferay.portlet.documentlibrary.model.DLFileShortcut updateFileShortcut(
082                    long fileShortcutId, long folderId, long toFileEntryId,
083                    com.liferay.portal.service.ServiceContext serviceContext)
084                    throws com.liferay.portal.kernel.exception.PortalException,
085                            com.liferay.portal.kernel.exception.SystemException {
086                    return getService()
087                                       .updateFileShortcut(fileShortcutId, folderId, toFileEntryId,
088                            serviceContext);
089            }
090    
091            public static DLFileShortcutService getService() {
092                    if (_service == null) {
093                            _service = (DLFileShortcutService)PortalBeanLocatorUtil.locate(DLFileShortcutService.class.getName());
094    
095                            ReferenceRegistry.registerReference(DLFileShortcutServiceUtil.class,
096                                    "_service");
097                    }
098    
099                    return _service;
100            }
101    
102            /**
103             * @deprecated
104             */
105            public void setService(DLFileShortcutService service) {
106            }
107    
108            private static DLFileShortcutService _service;
109    }