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