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.exception.PortalException;
020    import com.liferay.portal.kernel.exception.SystemException;
021    import com.liferay.portal.kernel.jsonwebservice.JSONWebService;
022    import com.liferay.portal.kernel.security.access.control.AccessControlled;
023    import com.liferay.portal.kernel.transaction.Isolation;
024    import com.liferay.portal.kernel.transaction.Propagation;
025    import com.liferay.portal.kernel.transaction.Transactional;
026    import com.liferay.portal.kernel.util.OrderByComparator;
027    import com.liferay.portal.service.BaseService;
028    import com.liferay.portal.service.ServiceContext;
029    
030    import com.liferay.portlet.documentlibrary.model.DLFileEntryType;
031    
032    import java.util.List;
033    import java.util.Locale;
034    import java.util.Map;
035    
036    /**
037     * Provides the remote service interface for DLFileEntryType. Methods of this
038     * service are expected to have security checks based on the propagated JAAS
039     * credentials because this service can be accessed remotely.
040     *
041     * @author Brian Wing Shun Chan
042     * @see DLFileEntryTypeServiceUtil
043     * @see com.liferay.portlet.documentlibrary.service.base.DLFileEntryTypeServiceBaseImpl
044     * @see com.liferay.portlet.documentlibrary.service.impl.DLFileEntryTypeServiceImpl
045     * @generated
046     */
047    @AccessControlled
048    @JSONWebService
049    @ProviderType
050    @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
051            PortalException.class, SystemException.class})
052    public interface DLFileEntryTypeService extends BaseService {
053            /*
054             * NOTE FOR DEVELOPERS:
055             *
056             * Never modify or reference this interface directly. Always use {@link DLFileEntryTypeServiceUtil} to access the document library file entry type remote service. Add custom service methods to {@link com.liferay.portlet.documentlibrary.service.impl.DLFileEntryTypeServiceImpl} and rerun ServiceBuilder to automatically copy the method declarations to this interface.
057             */
058            public DLFileEntryType addFileEntryType(long groupId,
059                    java.lang.String fileEntryTypeKey,
060                    Map<Locale, java.lang.String> nameMap,
061                    Map<Locale, java.lang.String> descriptionMap, long[] ddmStructureIds,
062                    ServiceContext serviceContext) throws PortalException;
063    
064            public DLFileEntryType addFileEntryType(long groupId,
065                    java.lang.String name, java.lang.String description,
066                    long[] ddmStructureIds, ServiceContext serviceContext)
067                    throws PortalException;
068    
069            public void deleteFileEntryType(long fileEntryTypeId)
070                    throws PortalException;
071    
072            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
073            public DLFileEntryType getFileEntryType(long fileEntryTypeId)
074                    throws PortalException;
075    
076            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
077            public List<DLFileEntryType> getFileEntryTypes(long[] groupIds);
078    
079            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
080            public List<DLFileEntryType> getFileEntryTypes(long[] groupIds, int start,
081                    int end);
082    
083            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
084            public int getFileEntryTypesCount(long[] groupIds);
085    
086            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
087            public List<DLFileEntryType> getFolderFileEntryTypes(long[] groupIds,
088                    long folderId, boolean inherited) throws PortalException;
089    
090            /**
091            * Returns the OSGi service identifier.
092            *
093            * @return the OSGi service identifier
094            */
095            public java.lang.String getOSGiServiceIdentifier();
096    
097            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
098            public List<DLFileEntryType> search(long companyId, long[] groupIds,
099                    java.lang.String keywords, boolean includeBasicFileEntryType,
100                    int start, int end, OrderByComparator<DLFileEntryType> orderByComparator);
101    
102            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
103            public int searchCount(long companyId, long[] groupIds,
104                    java.lang.String keywords, boolean includeBasicFileEntryType);
105    
106            public void updateFileEntryType(long fileEntryTypeId,
107                    java.lang.String name, java.lang.String description,
108                    long[] ddmStructureIds, ServiceContext serviceContext)
109                    throws PortalException;
110    
111            public void updateFileEntryType(long fileEntryTypeId,
112                    Map<Locale, java.lang.String> nameMap,
113                    Map<Locale, java.lang.String> descriptionMap, long[] ddmStructureIds,
114                    ServiceContext serviceContext) throws PortalException;
115    }