Class DLFileEntryTypeServiceHttp
Object
com.liferay.portlet.documentlibrary.service.http.DLFileEntryTypeServiceHttp
Provides the HTTP utility for the
DLFileEntryTypeServiceUtil
service
utility. The
static methods of this class calls the same methods of the service utility.
However, the signatures are different because it requires an additional
HttpPrincipal
parameter.
The benefits of using the HTTP utility is that it is fast and allows for tunneling without the cost of serializing to text. The drawback is that it only works with Java.
Set the property tunnel.servlet.hosts.allowed in portal.properties to configure security.
The HTTP utility is only generated for remote services.
- Author:
- Brian Wing Shun Chan
- {$generated.description}
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic com.liferay.document.library.kernel.model.DLFileEntryType
addFileEntryType
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, String externalReferenceCode, long groupId, long dataDefinitionId, String fileEntryTypeKey, Map<Locale, String> nameMap, Map<Locale, String> descriptionMap, com.liferay.portal.kernel.service.ServiceContext serviceContext) static void
deleteFileEntryType
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long fileEntryTypeId) static void
deleteFileEntryTypeByExternalReferenceCode
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, String externalReferenceCode, long groupId) static com.liferay.document.library.kernel.model.DLFileEntryType
fetchFileEntryTypeByExternalReferenceCode
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, String externalReferenceCode, long groupId) static com.liferay.document.library.kernel.model.DLFileEntryType
getFileEntryType
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long fileEntryTypeId) static com.liferay.document.library.kernel.model.DLFileEntryType
getFileEntryTypeByExternalReferenceCode
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, String externalReferenceCode, long groupId) static List<com.liferay.document.library.kernel.model.DLFileEntryType>
getFileEntryTypes
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long[] groupIds) static List<com.liferay.document.library.kernel.model.DLFileEntryType>
getFileEntryTypes
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long[] groupIds, int start, int end) static int
getFileEntryTypesCount
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long[] groupIds) static List<com.liferay.document.library.kernel.model.DLFileEntryType>
getFolderFileEntryTypes
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long[] groupIds, long folderId, boolean inherited) static List<com.liferay.document.library.kernel.model.DLFileEntryType>
search
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long companyId, long[] groupIds, String keywords, boolean includeBasicFileEntryType, int scope, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLFileEntryType> orderByComparator) static List<com.liferay.document.library.kernel.model.DLFileEntryType>
search
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long companyId, long[] groupIds, String keywords, boolean includeBasicFileEntryType, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLFileEntryType> orderByComparator) static List<com.liferay.document.library.kernel.model.DLFileEntryType>
search
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long companyId, long folderId, long[] groupIds, String keywords, boolean includeBasicFileEntryType, boolean inherited, int start, int end) static int
searchCount
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long companyId, long[] groupIds, String keywords, boolean includeBasicFileEntryType) static int
searchCount
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long companyId, long[] groupIds, String keywords, boolean includeBasicFileEntryType, int scope) static int
searchCount
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long companyId, long folderId, long[] groupIds, String keywords, boolean includeBasicFileEntryType, boolean inherited) static com.liferay.document.library.kernel.model.DLFileEntryType
updateFileEntryType
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long fileEntryTypeId, Map<Locale, String> nameMap, Map<Locale, String> descriptionMap)
-
Constructor Details
-
DLFileEntryTypeServiceHttp
public DLFileEntryTypeServiceHttp()
-
-
Method Details
-
addFileEntryType
public static com.liferay.document.library.kernel.model.DLFileEntryType addFileEntryType(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, String externalReferenceCode, long groupId, long dataDefinitionId, String fileEntryTypeKey, Map<Locale, String> nameMap, Map<Locale, throws com.liferay.portal.kernel.exception.PortalExceptionString> descriptionMap, com.liferay.portal.kernel.service.ServiceContext serviceContext) - Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteFileEntryType
public static void deleteFileEntryType(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long fileEntryTypeId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteFileEntryTypeByExternalReferenceCode
public static void deleteFileEntryTypeByExternalReferenceCode(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, String externalReferenceCode, long groupId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
fetchFileEntryTypeByExternalReferenceCode
public static com.liferay.document.library.kernel.model.DLFileEntryType fetchFileEntryTypeByExternalReferenceCode(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, String externalReferenceCode, long groupId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getFileEntryType
public static com.liferay.document.library.kernel.model.DLFileEntryType getFileEntryType(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long fileEntryTypeId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getFileEntryTypeByExternalReferenceCode
public static com.liferay.document.library.kernel.model.DLFileEntryType getFileEntryTypeByExternalReferenceCode(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, String externalReferenceCode, long groupId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getFileEntryTypes
public static List<com.liferay.document.library.kernel.model.DLFileEntryType> getFileEntryTypes(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long[] groupIds) -
getFileEntryTypes
public static List<com.liferay.document.library.kernel.model.DLFileEntryType> getFileEntryTypes(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long[] groupIds, int start, int end) -
getFileEntryTypesCount
public static int getFileEntryTypesCount(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long[] groupIds) -
getFolderFileEntryTypes
public static List<com.liferay.document.library.kernel.model.DLFileEntryType> getFolderFileEntryTypes(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long[] groupIds, long folderId, boolean inherited) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
search
public static List<com.liferay.document.library.kernel.model.DLFileEntryType> search(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long companyId, long folderId, long[] groupIds, String keywords, boolean includeBasicFileEntryType, boolean inherited, int start, int end) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
search
public static List<com.liferay.document.library.kernel.model.DLFileEntryType> search(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long companyId, long[] groupIds, String keywords, boolean includeBasicFileEntryType, int scope, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLFileEntryType> orderByComparator) -
search
public static List<com.liferay.document.library.kernel.model.DLFileEntryType> search(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long companyId, long[] groupIds, String keywords, boolean includeBasicFileEntryType, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLFileEntryType> orderByComparator) -
searchCount
public static int searchCount(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long companyId, long folderId, long[] groupIds, String keywords, boolean includeBasicFileEntryType, boolean inherited) -
searchCount
public static int searchCount(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long companyId, long[] groupIds, String keywords, boolean includeBasicFileEntryType) -
searchCount
public static int searchCount(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long companyId, long[] groupIds, String keywords, boolean includeBasicFileEntryType, int scope) -
updateFileEntryType
public static com.liferay.document.library.kernel.model.DLFileEntryType updateFileEntryType(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long fileEntryTypeId, Map<Locale, String> nameMap, Map<Locale, throws com.liferay.portal.kernel.exception.PortalExceptionString> descriptionMap) - Throws:
com.liferay.portal.kernel.exception.PortalException
-