DLApp
Il n'y a aucun service assortissant cette expression.

/dlapp/update-file-entry

Méthode de HTTP
POST
com.liferay.portlet.documentlibrary.service.DLAppServiceUtil#updateFileEntry

Updates a file entry and associated metadata based on an {@link InputStream} object. If the file data is null, then only the associated metadata (i.e., title, description, and parameters in the serviceContext) will be updated.

This method takes two file names, the sourceFileName and the title. The sourceFileName corresponds to the name of the actual file being uploaded. The title corresponds to a name the client wishes to assign this file after it has been uploaded to the portal.

Paramètres

p_auth String

authentication token used to validate the request

fileEntryId long

the primary key of the file entry

sourceFileName java.lang.String

the original file's name (optionally null)

mimeType java.lang.String

the file's MIME type (optionally null)

title java.lang.String

the new name to be assigned to the file (optionally null)

description java.lang.String

the file's new description

changeLog java.lang.String

the file's version change log (optionally null)

majorVersion boolean

whether the new file version is a major version

is java.io.InputStream

the file's data (optionally null)

size long

the file's size (optionally 0)

serviceContext com.liferay.portal.service.ServiceContext

the service context to be applied. Can set the asset category IDs, asset tag names, and expando bridge attributes for the file entry. In a Liferay repository, it may include:

  • fileEntryTypeId - ID for a custom file entry type
  • fieldsMap - mapping for fields associated with a custom file entry type

Type de retour

com.liferay.portal.kernel.repository.model.FileEntry

the file entry

Exception

com.liferay.portal.kernel.exception.PortalException
if the file entry could not be found
com.liferay.portal.kernel.exception.SystemException
if a system exception occurred

Exécuter

String long java.lang.String java.lang.String java.lang.String java.lang.String java.lang.String
boolean
java.io.InputStream long