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            public static com.liferay.portlet.documentlibrary.model.DLFileEntryType getFileEntryType(
071                    long fileEntryTypeId)
072                    throws com.liferay.portal.kernel.exception.PortalException {
073                    return getService().getFileEntryType(fileEntryTypeId);
074            }
075    
076            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getFileEntryTypes(
077                    long[] groupIds) {
078                    return getService().getFileEntryTypes(groupIds);
079            }
080    
081            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getFileEntryTypes(
082                    long[] groupIds, int start, int end) {
083                    return getService().getFileEntryTypes(groupIds, start, end);
084            }
085    
086            public static int getFileEntryTypesCount(long[] groupIds) {
087                    return getService().getFileEntryTypesCount(groupIds);
088            }
089    
090            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getFolderFileEntryTypes(
091                    long[] groupIds, long folderId, boolean inherited)
092                    throws com.liferay.portal.kernel.exception.PortalException {
093                    return getService()
094                                       .getFolderFileEntryTypes(groupIds, folderId, inherited);
095            }
096    
097            /**
098            * Returns the OSGi service identifier.
099            *
100            * @return the OSGi service identifier
101            */
102            public static java.lang.String getOSGiServiceIdentifier() {
103                    return getService().getOSGiServiceIdentifier();
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            public static void updateFileEntryType(long fileEntryTypeId,
123                    java.lang.String name, java.lang.String description,
124                    long[] ddmStructureIds,
125                    com.liferay.portal.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.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    }