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.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            public static com.liferay.portlet.documentlibrary.model.DLFileEntryType addFileEntryType(
044                    long groupId, java.lang.String fileEntryTypeKey,
045                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
046                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
047                    long[] ddmStructureIds,
048                    com.liferay.portal.service.ServiceContext serviceContext)
049                    throws com.liferay.portal.kernel.exception.PortalException {
050                    return getService()
051                                       .addFileEntryType(groupId, fileEntryTypeKey, nameMap,
052                            descriptionMap, ddmStructureIds, serviceContext);
053            }
054    
055            public static com.liferay.portlet.documentlibrary.model.DLFileEntryType addFileEntryType(
056                    long groupId, java.lang.String name, java.lang.String description,
057                    long[] ddmStructureIds,
058                    com.liferay.portal.service.ServiceContext serviceContext)
059                    throws com.liferay.portal.kernel.exception.PortalException {
060                    return getService()
061                                       .addFileEntryType(groupId, name, description,
062                            ddmStructureIds, serviceContext);
063            }
064    
065            public static void deleteFileEntryType(long fileEntryTypeId)
066                    throws com.liferay.portal.kernel.exception.PortalException {
067                    getService().deleteFileEntryType(fileEntryTypeId);
068            }
069    
070            /**
071            * Returns the Spring bean ID for this bean.
072            *
073            * @return the Spring bean ID for this bean
074            */
075            public static java.lang.String getBeanIdentifier() {
076                    return getService().getBeanIdentifier();
077            }
078    
079            public static com.liferay.portlet.documentlibrary.model.DLFileEntryType getFileEntryType(
080                    long fileEntryTypeId)
081                    throws com.liferay.portal.kernel.exception.PortalException {
082                    return getService().getFileEntryType(fileEntryTypeId);
083            }
084    
085            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getFileEntryTypes(
086                    long[] groupIds) {
087                    return getService().getFileEntryTypes(groupIds);
088            }
089    
090            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getFileEntryTypes(
091                    long[] groupIds, int start, int end) {
092                    return getService().getFileEntryTypes(groupIds, start, end);
093            }
094    
095            public static int getFileEntryTypesCount(long[] groupIds) {
096                    return getService().getFileEntryTypesCount(groupIds);
097            }
098    
099            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getFolderFileEntryTypes(
100                    long[] groupIds, long folderId, boolean inherited)
101                    throws com.liferay.portal.kernel.exception.PortalException {
102                    return getService()
103                                       .getFolderFileEntryTypes(groupIds, folderId, inherited);
104            }
105    
106            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> search(
107                    long companyId, long[] groupIds, java.lang.String keywords,
108                    boolean includeBasicFileEntryType, int start, int end,
109                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntryType> orderByComparator) {
110                    return getService()
111                                       .search(companyId, groupIds, keywords,
112                            includeBasicFileEntryType, start, end, orderByComparator);
113            }
114    
115            public static int searchCount(long companyId, long[] groupIds,
116                    java.lang.String keywords, boolean includeBasicFileEntryType) {
117                    return getService()
118                                       .searchCount(companyId, groupIds, keywords,
119                            includeBasicFileEntryType);
120            }
121    
122            /**
123            * Sets the Spring bean ID for this bean.
124            *
125            * @param beanIdentifier the Spring bean ID for this bean
126            */
127            public static void setBeanIdentifier(java.lang.String beanIdentifier) {
128                    getService().setBeanIdentifier(beanIdentifier);
129            }
130    
131            public static void updateFileEntryType(long fileEntryTypeId,
132                    java.lang.String name, java.lang.String description,
133                    long[] ddmStructureIds,
134                    com.liferay.portal.service.ServiceContext serviceContext)
135                    throws com.liferay.portal.kernel.exception.PortalException {
136                    getService()
137                            .updateFileEntryType(fileEntryTypeId, name, description,
138                            ddmStructureIds, serviceContext);
139            }
140    
141            public static void updateFileEntryType(long fileEntryTypeId,
142                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
143                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
144                    long[] ddmStructureIds,
145                    com.liferay.portal.service.ServiceContext serviceContext)
146                    throws com.liferay.portal.kernel.exception.PortalException {
147                    getService()
148                            .updateFileEntryType(fileEntryTypeId, nameMap, descriptionMap,
149                            ddmStructureIds, serviceContext);
150            }
151    
152            public static DLFileEntryTypeService getService() {
153                    if (_service == null) {
154                            _service = (DLFileEntryTypeService)PortalBeanLocatorUtil.locate(DLFileEntryTypeService.class.getName());
155    
156                            ReferenceRegistry.registerReference(DLFileEntryTypeServiceUtil.class,
157                                    "_service");
158                    }
159    
160                    return _service;
161            }
162    
163            /**
164             * @deprecated As of 6.2.0
165             */
166            @Deprecated
167            public void setService(DLFileEntryTypeService service) {
168            }
169    
170            private static DLFileEntryTypeService _service;
171    }