001
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
047 @AccessControlled
048 @JSONWebService
049 @ProviderType
050 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
051 PortalException.class, SystemException.class})
052 public interface DLFileEntryTypeService extends BaseService {
053
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
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 }