001
014
015 package com.liferay.portlet.documentlibrary.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
044
049 public static java.lang.String getBeanIdentifier() {
050 return getService().getBeanIdentifier();
051 }
052
053
058 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
059 getService().setBeanIdentifier(beanIdentifier);
060 }
061
062 public static com.liferay.portlet.documentlibrary.model.DLFileEntryType addFileEntryType(
063 long groupId, java.lang.String fileEntryTypeKey,
064 java.util.Map<java.util.Locale, java.lang.String> nameMap,
065 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
066 long[] ddmStructureIds,
067 com.liferay.portal.service.ServiceContext serviceContext)
068 throws com.liferay.portal.kernel.exception.PortalException,
069 com.liferay.portal.kernel.exception.SystemException {
070 return getService()
071 .addFileEntryType(groupId, fileEntryTypeKey, nameMap,
072 descriptionMap, ddmStructureIds, serviceContext);
073 }
074
075 public static com.liferay.portlet.documentlibrary.model.DLFileEntryType addFileEntryType(
076 long groupId, java.lang.String name, java.lang.String description,
077 long[] ddmStructureIds,
078 com.liferay.portal.service.ServiceContext serviceContext)
079 throws com.liferay.portal.kernel.exception.PortalException,
080 com.liferay.portal.kernel.exception.SystemException {
081 return getService()
082 .addFileEntryType(groupId, name, description,
083 ddmStructureIds, serviceContext);
084 }
085
086 public static void deleteFileEntryType(long fileEntryTypeId)
087 throws com.liferay.portal.kernel.exception.PortalException,
088 com.liferay.portal.kernel.exception.SystemException {
089 getService().deleteFileEntryType(fileEntryTypeId);
090 }
091
092 public static com.liferay.portlet.documentlibrary.model.DLFileEntryType getFileEntryType(
093 long fileEntryTypeId)
094 throws com.liferay.portal.kernel.exception.PortalException,
095 com.liferay.portal.kernel.exception.SystemException {
096 return getService().getFileEntryType(fileEntryTypeId);
097 }
098
099 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getFileEntryTypes(
100 long[] groupIds)
101 throws com.liferay.portal.kernel.exception.SystemException {
102 return getService().getFileEntryTypes(groupIds);
103 }
104
105 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getFileEntryTypes(
106 long[] groupIds, int start, int end)
107 throws com.liferay.portal.kernel.exception.SystemException {
108 return getService().getFileEntryTypes(groupIds, start, end);
109 }
110
111 public static int getFileEntryTypesCount(long[] groupIds)
112 throws com.liferay.portal.kernel.exception.SystemException {
113 return getService().getFileEntryTypesCount(groupIds);
114 }
115
116 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getFolderFileEntryTypes(
117 long[] groupIds, long folderId, boolean inherited)
118 throws com.liferay.portal.kernel.exception.PortalException,
119 com.liferay.portal.kernel.exception.SystemException {
120 return getService()
121 .getFolderFileEntryTypes(groupIds, folderId, inherited);
122 }
123
124 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> search(
125 long companyId, long[] groupIds, java.lang.String keywords,
126 boolean includeBasicFileEntryType, int start, int end,
127 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
128 throws com.liferay.portal.kernel.exception.SystemException {
129 return getService()
130 .search(companyId, groupIds, keywords,
131 includeBasicFileEntryType, start, end, orderByComparator);
132 }
133
134 public static int searchCount(long companyId, long[] groupIds,
135 java.lang.String keywords, boolean includeBasicFileEntryType)
136 throws com.liferay.portal.kernel.exception.SystemException {
137 return getService()
138 .searchCount(companyId, groupIds, keywords,
139 includeBasicFileEntryType);
140 }
141
142 public static void updateFileEntryType(long fileEntryTypeId,
143 java.util.Map<java.util.Locale, java.lang.String> nameMap,
144 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
145 long[] ddmStructureIds,
146 com.liferay.portal.service.ServiceContext serviceContext)
147 throws com.liferay.portal.kernel.exception.PortalException,
148 com.liferay.portal.kernel.exception.SystemException {
149 getService()
150 .updateFileEntryType(fileEntryTypeId, nameMap, descriptionMap,
151 ddmStructureIds, serviceContext);
152 }
153
154 public static void updateFileEntryType(long fileEntryTypeId,
155 java.lang.String name, java.lang.String description,
156 long[] ddmStructureIds,
157 com.liferay.portal.service.ServiceContext serviceContext)
158 throws com.liferay.portal.kernel.exception.PortalException,
159 com.liferay.portal.kernel.exception.SystemException {
160 getService()
161 .updateFileEntryType(fileEntryTypeId, name, description,
162 ddmStructureIds, serviceContext);
163 }
164
165 public static DLFileEntryTypeService getService() {
166 if (_service == null) {
167 _service = (DLFileEntryTypeService)PortalBeanLocatorUtil.locate(DLFileEntryTypeService.class.getName());
168
169 ReferenceRegistry.registerReference(DLFileEntryTypeServiceUtil.class,
170 "_service");
171 }
172
173 return _service;
174 }
175
176
179 public void setService(DLFileEntryTypeService service) {
180 }
181
182 private static DLFileEntryTypeService _service;
183 }