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
033 public class DLFileEntryTypeServiceUtil {
034
039
040
045 public static java.lang.String getBeanIdentifier() {
046 return getService().getBeanIdentifier();
047 }
048
049
054 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
055 getService().setBeanIdentifier(beanIdentifier);
056 }
057
058 public static com.liferay.portlet.documentlibrary.model.DLFileEntryType addFileEntryType(
059 long groupId, java.lang.String name, java.lang.String description,
060 long[] ddmStructureIds,
061 com.liferay.portal.service.ServiceContext serviceContext)
062 throws com.liferay.portal.kernel.exception.PortalException,
063 com.liferay.portal.kernel.exception.SystemException {
064 return getService()
065 .addFileEntryType(groupId, name, description,
066 ddmStructureIds, serviceContext);
067 }
068
069 public static void deleteFileEntryType(long fileEntryTypeId)
070 throws com.liferay.portal.kernel.exception.PortalException,
071 com.liferay.portal.kernel.exception.SystemException {
072 getService().deleteFileEntryType(fileEntryTypeId);
073 }
074
075 public static com.liferay.portlet.documentlibrary.model.DLFileEntryType getFileEntryType(
076 long fileEntryTypeId)
077 throws com.liferay.portal.kernel.exception.PortalException,
078 com.liferay.portal.kernel.exception.SystemException {
079 return getService().getFileEntryType(fileEntryTypeId);
080 }
081
082 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getFileEntryTypes(
083 long[] groupIds)
084 throws com.liferay.portal.kernel.exception.SystemException {
085 return getService().getFileEntryTypes(groupIds);
086 }
087
088 public static int getFileEntryTypesCount(long[] groupIds)
089 throws com.liferay.portal.kernel.exception.SystemException {
090 return getService().getFileEntryTypesCount(groupIds);
091 }
092
093 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> search(
094 long companyId, long[] groupIds, java.lang.String keywords,
095 boolean includeBasicFileEntryType, int start, int end,
096 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
097 throws com.liferay.portal.kernel.exception.SystemException {
098 return getService()
099 .search(companyId, groupIds, keywords,
100 includeBasicFileEntryType, start, end, orderByComparator);
101 }
102
103 public static int searchCount(long companyId, long[] groupIds,
104 java.lang.String keywords, boolean includeBasicFileEntryType)
105 throws com.liferay.portal.kernel.exception.SystemException {
106 return getService()
107 .searchCount(companyId, groupIds, keywords,
108 includeBasicFileEntryType);
109 }
110
111 public static void updateFileEntryType(long fileEntryTypeId,
112 java.lang.String name, java.lang.String description,
113 long[] ddmStructureIds,
114 com.liferay.portal.service.ServiceContext serviceContext)
115 throws com.liferay.portal.kernel.exception.PortalException,
116 com.liferay.portal.kernel.exception.SystemException {
117 getService()
118 .updateFileEntryType(fileEntryTypeId, name, description,
119 ddmStructureIds, serviceContext);
120 }
121
122 public static DLFileEntryTypeService getService() {
123 if (_service == null) {
124 _service = (DLFileEntryTypeService)PortalBeanLocatorUtil.locate(DLFileEntryTypeService.class.getName());
125
126 ReferenceRegistry.registerReference(DLFileEntryTypeServiceUtil.class,
127 "_service");
128 }
129
130 return _service;
131 }
132
133
136 public void setService(DLFileEntryTypeService service) {
137 }
138
139 private static DLFileEntryTypeService _service;
140 }