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 aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
020    import com.liferay.portal.kernel.util.ReferenceRegistry;
021    
022    /**
023     * Provides the remote service utility for DLFileEntryType. This utility wraps
024     * {@link com.liferay.portlet.documentlibrary.service.impl.DLFileEntryTypeServiceImpl} and is the
025     * primary access point for service operations in application layer code running
026     * on a remote server. Methods of this service are expected to have security
027     * checks based on the propagated JAAS credentials because this service can be
028     * accessed remotely.
029     *
030     * @author Brian Wing Shun Chan
031     * @see DLFileEntryTypeService
032     * @see com.liferay.portlet.documentlibrary.service.base.DLFileEntryTypeServiceBaseImpl
033     * @see com.liferay.portlet.documentlibrary.service.impl.DLFileEntryTypeServiceImpl
034     * @generated
035     */
036    @ProviderType
037    public class DLFileEntryTypeServiceUtil {
038            /*
039             * NOTE FOR DEVELOPERS:
040             *
041             * Never modify this class directly. Add custom service methods to {@link com.liferay.portlet.documentlibrary.service.impl.DLFileEntryTypeServiceImpl} and rerun ServiceBuilder to regenerate this class.
042             */
043    
044            /**
045            * Returns the Spring bean ID for this bean.
046            *
047            * @return the Spring bean ID for this bean
048            */
049            public static java.lang.String getBeanIdentifier() {
050                    return getService().getBeanIdentifier();
051            }
052    
053            /**
054            * Sets the Spring bean ID for this bean.
055            *
056            * @param beanIdentifier the Spring bean ID for this bean
057            */
058            public static void setBeanIdentifier(java.lang.String beanIdentifier) {
059                    getService().setBeanIdentifier(beanIdentifier);
060            }
061    
062            public static com.liferay.portlet.documentlibrary.model.DLFileEntryType addFileEntryType(
063                    long groupId, java.lang.String fileEntryTypeKey,
064                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
065                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
066                    long[] ddmStructureIds,
067                    com.liferay.portal.service.ServiceContext serviceContext)
068                    throws com.liferay.portal.kernel.exception.PortalException,
069                            com.liferay.portal.kernel.exception.SystemException {
070                    return getService()
071                                       .addFileEntryType(groupId, fileEntryTypeKey, nameMap,
072                            descriptionMap, ddmStructureIds, serviceContext);
073            }
074    
075            public static com.liferay.portlet.documentlibrary.model.DLFileEntryType addFileEntryType(
076                    long groupId, java.lang.String name, java.lang.String description,
077                    long[] ddmStructureIds,
078                    com.liferay.portal.service.ServiceContext serviceContext)
079                    throws com.liferay.portal.kernel.exception.PortalException,
080                            com.liferay.portal.kernel.exception.SystemException {
081                    return getService()
082                                       .addFileEntryType(groupId, name, description,
083                            ddmStructureIds, serviceContext);
084            }
085    
086            public static void deleteFileEntryType(long fileEntryTypeId)
087                    throws com.liferay.portal.kernel.exception.PortalException,
088                            com.liferay.portal.kernel.exception.SystemException {
089                    getService().deleteFileEntryType(fileEntryTypeId);
090            }
091    
092            public static com.liferay.portlet.documentlibrary.model.DLFileEntryType getFileEntryType(
093                    long fileEntryTypeId)
094                    throws com.liferay.portal.kernel.exception.PortalException,
095                            com.liferay.portal.kernel.exception.SystemException {
096                    return getService().getFileEntryType(fileEntryTypeId);
097            }
098    
099            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getFileEntryTypes(
100                    long[] groupIds)
101                    throws com.liferay.portal.kernel.exception.SystemException {
102                    return getService().getFileEntryTypes(groupIds);
103            }
104    
105            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getFileEntryTypes(
106                    long[] groupIds, int start, int end)
107                    throws com.liferay.portal.kernel.exception.SystemException {
108                    return getService().getFileEntryTypes(groupIds, start, end);
109            }
110    
111            public static int getFileEntryTypesCount(long[] groupIds)
112                    throws com.liferay.portal.kernel.exception.SystemException {
113                    return getService().getFileEntryTypesCount(groupIds);
114            }
115    
116            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getFolderFileEntryTypes(
117                    long[] groupIds, long folderId, boolean inherited)
118                    throws com.liferay.portal.kernel.exception.PortalException,
119                            com.liferay.portal.kernel.exception.SystemException {
120                    return getService()
121                                       .getFolderFileEntryTypes(groupIds, folderId, inherited);
122            }
123    
124            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> search(
125                    long companyId, long[] groupIds, java.lang.String keywords,
126                    boolean includeBasicFileEntryType, int start, int end,
127                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
128                    throws com.liferay.portal.kernel.exception.SystemException {
129                    return getService()
130                                       .search(companyId, groupIds, keywords,
131                            includeBasicFileEntryType, start, end, orderByComparator);
132            }
133    
134            public static int searchCount(long companyId, long[] groupIds,
135                    java.lang.String keywords, boolean includeBasicFileEntryType)
136                    throws com.liferay.portal.kernel.exception.SystemException {
137                    return getService()
138                                       .searchCount(companyId, groupIds, keywords,
139                            includeBasicFileEntryType);
140            }
141    
142            public static void updateFileEntryType(long fileEntryTypeId,
143                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
144                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
145                    long[] ddmStructureIds,
146                    com.liferay.portal.service.ServiceContext serviceContext)
147                    throws com.liferay.portal.kernel.exception.PortalException,
148                            com.liferay.portal.kernel.exception.SystemException {
149                    getService()
150                            .updateFileEntryType(fileEntryTypeId, nameMap, descriptionMap,
151                            ddmStructureIds, serviceContext);
152            }
153    
154            public static void updateFileEntryType(long fileEntryTypeId,
155                    java.lang.String name, java.lang.String description,
156                    long[] ddmStructureIds,
157                    com.liferay.portal.service.ServiceContext serviceContext)
158                    throws com.liferay.portal.kernel.exception.PortalException,
159                            com.liferay.portal.kernel.exception.SystemException {
160                    getService()
161                            .updateFileEntryType(fileEntryTypeId, name, description,
162                            ddmStructureIds, serviceContext);
163            }
164    
165            public static DLFileEntryTypeService getService() {
166                    if (_service == null) {
167                            _service = (DLFileEntryTypeService)PortalBeanLocatorUtil.locate(DLFileEntryTypeService.class.getName());
168    
169                            ReferenceRegistry.registerReference(DLFileEntryTypeServiceUtil.class,
170                                    "_service");
171                    }
172    
173                    return _service;
174            }
175    
176            /**
177             * @deprecated As of 6.2.0
178             */
179            public void setService(DLFileEntryTypeService service) {
180            }
181    
182            private static DLFileEntryTypeService _service;
183    }