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