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> search(
094                    long companyId, long[] groupIds, java.lang.String keywords,
095                    boolean includeBasicFileEntryType, int start, int end,
096                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
097                    throws com.liferay.portal.kernel.exception.SystemException {
098                    return getService()
099                                       .search(companyId, groupIds, keywords,
100                            includeBasicFileEntryType, start, end, orderByComparator);
101            }
102    
103            public static int searchCount(long companyId, long[] groupIds,
104                    java.lang.String keywords, boolean includeBasicFileEntryType)
105                    throws com.liferay.portal.kernel.exception.SystemException {
106                    return getService()
107                                       .searchCount(companyId, groupIds, keywords,
108                            includeBasicFileEntryType);
109            }
110    
111            public static void updateFileEntryType(long fileEntryTypeId,
112                    java.lang.String name, java.lang.String description,
113                    long[] ddmStructureIds,
114                    com.liferay.portal.service.ServiceContext serviceContext)
115                    throws com.liferay.portal.kernel.exception.PortalException,
116                            com.liferay.portal.kernel.exception.SystemException {
117                    getService()
118                            .updateFileEntryType(fileEntryTypeId, name, description,
119                            ddmStructureIds, serviceContext);
120            }
121    
122            public static DLFileEntryTypeService getService() {
123                    if (_service == null) {
124                            _service = (DLFileEntryTypeService)PortalBeanLocatorUtil.locate(DLFileEntryTypeService.class.getName());
125    
126                            ReferenceRegistry.registerReference(DLFileEntryTypeServiceUtil.class,
127                                    "_service");
128                    }
129    
130                    return _service;
131            }
132    
133            /**
134             * @deprecated
135             */
136            public void setService(DLFileEntryTypeService service) {
137            }
138    
139            private static DLFileEntryTypeService _service;
140    }