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> getFolderFileEntryTypes(
094 long[] groupIds, long folderId, boolean inherited)
095 throws com.liferay.portal.kernel.exception.PortalException,
096 com.liferay.portal.kernel.exception.SystemException {
097 return getService()
098 .getFolderFileEntryTypes(groupIds, folderId, inherited);
099 }
100
101 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> search(
102 long companyId, long[] groupIds, java.lang.String keywords,
103 boolean includeBasicFileEntryType, int start, int end,
104 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
105 throws com.liferay.portal.kernel.exception.SystemException {
106 return getService()
107 .search(companyId, groupIds, keywords,
108 includeBasicFileEntryType, start, end, orderByComparator);
109 }
110
111 public static int searchCount(long companyId, long[] groupIds,
112 java.lang.String keywords, boolean includeBasicFileEntryType)
113 throws com.liferay.portal.kernel.exception.SystemException {
114 return getService()
115 .searchCount(companyId, groupIds, keywords,
116 includeBasicFileEntryType);
117 }
118
119 public static void updateFileEntryType(long fileEntryTypeId,
120 java.lang.String name, java.lang.String description,
121 long[] ddmStructureIds,
122 com.liferay.portal.service.ServiceContext serviceContext)
123 throws com.liferay.portal.kernel.exception.PortalException,
124 com.liferay.portal.kernel.exception.SystemException {
125 getService()
126 .updateFileEntryType(fileEntryTypeId, name, description,
127 ddmStructureIds, serviceContext);
128 }
129
130 public static DLFileEntryTypeService getService() {
131 if (_service == null) {
132 _service = (DLFileEntryTypeService)PortalBeanLocatorUtil.locate(DLFileEntryTypeService.class.getName());
133
134 ReferenceRegistry.registerReference(DLFileEntryTypeServiceUtil.class,
135 "_service");
136 }
137
138 return _service;
139 }
140
141
144 public void setService(DLFileEntryTypeService service) {
145 }
146
147 private static DLFileEntryTypeService _service;
148 }