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.document.library.kernel.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.document.library.kernel.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.kernel.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.document.library.kernel.model.DLFileEntryType addFileEntryType(
056                    long groupId, java.lang.String name, java.lang.String description,
057                    long[] ddmStructureIds,
058                    com.liferay.portal.kernel.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 com.liferay.document.library.kernel.model.DLFileEntryType getFileEntryType(
066                    long fileEntryTypeId)
067                    throws com.liferay.portal.kernel.exception.PortalException {
068                    return getService().getFileEntryType(fileEntryTypeId);
069            }
070    
071            public static int getFileEntryTypesCount(long[] groupIds) {
072                    return getService().getFileEntryTypesCount(groupIds);
073            }
074    
075            public static int searchCount(long companyId, long[] groupIds,
076                    java.lang.String keywords, boolean includeBasicFileEntryType) {
077                    return getService()
078                                       .searchCount(companyId, groupIds, keywords,
079                            includeBasicFileEntryType);
080            }
081    
082            /**
083            * Returns the OSGi service identifier.
084            *
085            * @return the OSGi service identifier
086            */
087            public static java.lang.String getOSGiServiceIdentifier() {
088                    return getService().getOSGiServiceIdentifier();
089            }
090    
091            public static java.util.List<com.liferay.document.library.kernel.model.DLFileEntryType> getFileEntryTypes(
092                    long[] groupIds) {
093                    return getService().getFileEntryTypes(groupIds);
094            }
095    
096            public static java.util.List<com.liferay.document.library.kernel.model.DLFileEntryType> getFileEntryTypes(
097                    long[] groupIds, int start, int end) {
098                    return getService().getFileEntryTypes(groupIds, start, end);
099            }
100    
101            public static java.util.List<com.liferay.document.library.kernel.model.DLFileEntryType> getFolderFileEntryTypes(
102                    long[] groupIds, long folderId, boolean inherited)
103                    throws com.liferay.portal.kernel.exception.PortalException {
104                    return getService()
105                                       .getFolderFileEntryTypes(groupIds, folderId, inherited);
106            }
107    
108            public static java.util.List<com.liferay.document.library.kernel.model.DLFileEntryType> search(
109                    long companyId, long[] groupIds, java.lang.String keywords,
110                    boolean includeBasicFileEntryType, int start, int end,
111                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLFileEntryType> orderByComparator) {
112                    return getService()
113                                       .search(companyId, groupIds, keywords,
114                            includeBasicFileEntryType, start, end, orderByComparator);
115            }
116    
117            public static void deleteFileEntryType(long fileEntryTypeId)
118                    throws com.liferay.portal.kernel.exception.PortalException {
119                    getService().deleteFileEntryType(fileEntryTypeId);
120            }
121    
122            public static void updateFileEntryType(long fileEntryTypeId,
123                    java.lang.String name, java.lang.String description,
124                    long[] ddmStructureIds,
125                    com.liferay.portal.kernel.service.ServiceContext serviceContext)
126                    throws com.liferay.portal.kernel.exception.PortalException {
127                    getService()
128                            .updateFileEntryType(fileEntryTypeId, name, description,
129                            ddmStructureIds, serviceContext);
130            }
131    
132            public static void updateFileEntryType(long fileEntryTypeId,
133                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
134                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
135                    long[] ddmStructureIds,
136                    com.liferay.portal.kernel.service.ServiceContext serviceContext)
137                    throws com.liferay.portal.kernel.exception.PortalException {
138                    getService()
139                            .updateFileEntryType(fileEntryTypeId, nameMap, descriptionMap,
140                            ddmStructureIds, serviceContext);
141            }
142    
143            public static DLFileEntryTypeService getService() {
144                    if (_service == null) {
145                            _service = (DLFileEntryTypeService)PortalBeanLocatorUtil.locate(DLFileEntryTypeService.class.getName());
146    
147                            ReferenceRegistry.registerReference(DLFileEntryTypeServiceUtil.class,
148                                    "_service");
149                    }
150    
151                    return _service;
152            }
153    
154            private static DLFileEntryTypeService _service;
155    }