001
014
015 package com.liferay.document.library.kernel.service;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
020 import com.liferay.portal.kernel.util.ReferenceRegistry;
021
022
036 @ProviderType
037 public class DLFileEntryTypeServiceUtil {
038
043 public static com.liferay.document.library.kernel.model.DLFileEntryType addFileEntryType(
044 long groupId, java.lang.String fileEntryTypeKey,
045 java.util.Map<java.util.Locale, java.lang.String> nameMap,
046 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
047 long[] ddmStructureIds,
048 com.liferay.portal.kernel.service.ServiceContext serviceContext)
049 throws com.liferay.portal.kernel.exception.PortalException {
050 return getService()
051 .addFileEntryType(groupId, fileEntryTypeKey, nameMap,
052 descriptionMap, ddmStructureIds, serviceContext);
053 }
054
055 public static com.liferay.document.library.kernel.model.DLFileEntryType addFileEntryType(
056 long groupId, java.lang.String name, java.lang.String description,
057 long[] ddmStructureIds,
058 com.liferay.portal.kernel.service.ServiceContext serviceContext)
059 throws com.liferay.portal.kernel.exception.PortalException {
060 return getService()
061 .addFileEntryType(groupId, name, description,
062 ddmStructureIds, serviceContext);
063 }
064
065 public static com.liferay.document.library.kernel.model.DLFileEntryType getFileEntryType(
066 long fileEntryTypeId)
067 throws com.liferay.portal.kernel.exception.PortalException {
068 return getService().getFileEntryType(fileEntryTypeId);
069 }
070
071 public static int getFileEntryTypesCount(long[] groupIds) {
072 return getService().getFileEntryTypesCount(groupIds);
073 }
074
075 public static int searchCount(long companyId, long[] groupIds,
076 java.lang.String keywords, boolean includeBasicFileEntryType) {
077 return getService()
078 .searchCount(companyId, groupIds, keywords,
079 includeBasicFileEntryType);
080 }
081
082
087 public static java.lang.String getOSGiServiceIdentifier() {
088 return getService().getOSGiServiceIdentifier();
089 }
090
091 public static java.util.List<com.liferay.document.library.kernel.model.DLFileEntryType> getFileEntryTypes(
092 long[] groupIds) {
093 return getService().getFileEntryTypes(groupIds);
094 }
095
096 public static java.util.List<com.liferay.document.library.kernel.model.DLFileEntryType> getFileEntryTypes(
097 long[] groupIds, int start, int end) {
098 return getService().getFileEntryTypes(groupIds, start, end);
099 }
100
101 public static java.util.List<com.liferay.document.library.kernel.model.DLFileEntryType> getFolderFileEntryTypes(
102 long[] groupIds, long folderId, boolean inherited)
103 throws com.liferay.portal.kernel.exception.PortalException {
104 return getService()
105 .getFolderFileEntryTypes(groupIds, folderId, inherited);
106 }
107
108 public static java.util.List<com.liferay.document.library.kernel.model.DLFileEntryType> search(
109 long companyId, long[] groupIds, java.lang.String keywords,
110 boolean includeBasicFileEntryType, int start, int end,
111 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLFileEntryType> orderByComparator) {
112 return getService()
113 .search(companyId, groupIds, keywords,
114 includeBasicFileEntryType, start, end, orderByComparator);
115 }
116
117 public static void deleteFileEntryType(long fileEntryTypeId)
118 throws com.liferay.portal.kernel.exception.PortalException {
119 getService().deleteFileEntryType(fileEntryTypeId);
120 }
121
122 public static void updateFileEntryType(long fileEntryTypeId,
123 java.lang.String name, java.lang.String description,
124 long[] ddmStructureIds,
125 com.liferay.portal.kernel.service.ServiceContext serviceContext)
126 throws com.liferay.portal.kernel.exception.PortalException {
127 getService()
128 .updateFileEntryType(fileEntryTypeId, name, description,
129 ddmStructureIds, serviceContext);
130 }
131
132 public static void updateFileEntryType(long fileEntryTypeId,
133 java.util.Map<java.util.Locale, java.lang.String> nameMap,
134 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
135 long[] ddmStructureIds,
136 com.liferay.portal.kernel.service.ServiceContext serviceContext)
137 throws com.liferay.portal.kernel.exception.PortalException {
138 getService()
139 .updateFileEntryType(fileEntryTypeId, nameMap, descriptionMap,
140 ddmStructureIds, serviceContext);
141 }
142
143 public static DLFileEntryTypeService getService() {
144 if (_service == null) {
145 _service = (DLFileEntryTypeService)PortalBeanLocatorUtil.locate(DLFileEntryTypeService.class.getName());
146
147 ReferenceRegistry.registerReference(DLFileEntryTypeServiceUtil.class,
148 "_service");
149 }
150
151 return _service;
152 }
153
154 private static DLFileEntryTypeService _service;
155 }