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