/**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/
package com.liferay.document.library.kernel.service;
import aQute.bnd.annotation.ProviderType;
import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
import com.liferay.portal.kernel.util.ReferenceRegistry;
/**
* Provides the remote service utility for DLFileEntryType. This utility wraps
* {@link com.liferay.portlet.documentlibrary.service.impl.DLFileEntryTypeServiceImpl} and is the
* primary access point for service operations in application layer code running
* on a remote server. Methods of this service are expected to have security
* checks based on the propagated JAAS credentials because this service can be
* accessed remotely.
*
* @author Brian Wing Shun Chan
* @see DLFileEntryTypeService
* @see com.liferay.portlet.documentlibrary.service.base.DLFileEntryTypeServiceBaseImpl
* @see com.liferay.portlet.documentlibrary.service.impl.DLFileEntryTypeServiceImpl
* @generated
*/
@ProviderType
public class DLFileEntryTypeServiceUtil {
/*
* NOTE FOR DEVELOPERS:
*
* Never modify this class directly. Add custom service methods to {@link com.liferay.portlet.documentlibrary.service.impl.DLFileEntryTypeServiceImpl} and rerun ServiceBuilder to regenerate this class.
*/
public static com.liferay.document.library.kernel.model.DLFileEntryType addFileEntryType(
long groupId, java.lang.String fileEntryTypeKey,
java.util.Map<java.util.Locale, java.lang.String> nameMap,
java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
long[] ddmStructureIds,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException {
return getService()
.addFileEntryType(groupId, fileEntryTypeKey, nameMap,
descriptionMap, ddmStructureIds, serviceContext);
}
public static com.liferay.document.library.kernel.model.DLFileEntryType addFileEntryType(
long groupId, java.lang.String name, java.lang.String description,
long[] ddmStructureIds,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException {
return getService()
.addFileEntryType(groupId, name, description,
ddmStructureIds, serviceContext);
}
public static com.liferay.document.library.kernel.model.DLFileEntryType getFileEntryType(
long fileEntryTypeId)
throws com.liferay.portal.kernel.exception.PortalException {
return getService().getFileEntryType(fileEntryTypeId);
}
public static int getFileEntryTypesCount(long[] groupIds) {
return getService().getFileEntryTypesCount(groupIds);
}
public static int searchCount(long companyId, long[] groupIds,
java.lang.String keywords, boolean includeBasicFileEntryType) {
return getService()
.searchCount(companyId, groupIds, keywords,
includeBasicFileEntryType);
}
/**
* Returns the OSGi service identifier.
*
* @return the OSGi service identifier
*/
public static java.lang.String getOSGiServiceIdentifier() {
return getService().getOSGiServiceIdentifier();
}
public static java.util.List<com.liferay.document.library.kernel.model.DLFileEntryType> getFileEntryTypes(
long[] groupIds) {
return getService().getFileEntryTypes(groupIds);
}
public static java.util.List<com.liferay.document.library.kernel.model.DLFileEntryType> getFileEntryTypes(
long[] groupIds, int start, int end) {
return getService().getFileEntryTypes(groupIds, start, end);
}
public static java.util.List<com.liferay.document.library.kernel.model.DLFileEntryType> getFolderFileEntryTypes(
long[] groupIds, long folderId, boolean inherited)
throws com.liferay.portal.kernel.exception.PortalException {
return getService()
.getFolderFileEntryTypes(groupIds, folderId, inherited);
}
public static java.util.List<com.liferay.document.library.kernel.model.DLFileEntryType> search(
long companyId, long[] groupIds, java.lang.String keywords,
boolean includeBasicFileEntryType, int start, int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLFileEntryType> orderByComparator) {
return getService()
.search(companyId, groupIds, keywords,
includeBasicFileEntryType, start, end, orderByComparator);
}
public static void deleteFileEntryType(long fileEntryTypeId)
throws com.liferay.portal.kernel.exception.PortalException {
getService().deleteFileEntryType(fileEntryTypeId);
}
public static void updateFileEntryType(long fileEntryTypeId,
java.lang.String name, java.lang.String description,
long[] ddmStructureIds,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException {
getService()
.updateFileEntryType(fileEntryTypeId, name, description,
ddmStructureIds, serviceContext);
}
public static void updateFileEntryType(long fileEntryTypeId,
java.util.Map<java.util.Locale, java.lang.String> nameMap,
java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
long[] ddmStructureIds,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException {
getService()
.updateFileEntryType(fileEntryTypeId, nameMap, descriptionMap,
ddmStructureIds, serviceContext);
}
public static DLFileEntryTypeService getService() {
if (_service == null) {
_service = (DLFileEntryTypeService)PortalBeanLocatorUtil.locate(DLFileEntryTypeService.class.getName());
ReferenceRegistry.registerReference(DLFileEntryTypeServiceUtil.class,
"_service");
}
return _service;
}
private static DLFileEntryTypeService _service;
}