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

/dlapp/add-file-entry

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

Adds a file entry and associated metadata. It is created based on a byte array.

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. If it is null, the sourceFileName will be used.

Paramètres

p_auth String

authentication token used to validate the request

repositoryId long

the primary key of the repository

folderId long

the primary key of the file entry's parent folder

sourceFileName java.lang.String

the original file's name

mimeType java.lang.String

the file's MIME type

title java.lang.String

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

description java.lang.String

the file's description

changeLog java.lang.String

the file's version change log

bytes byte[]

the file's data (optionally null)

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 parent folder could not be found or if the file entry's information was invalid
com.liferay.portal.kernel.exception.SystemException
if a system exception occurred

Exécuter

String long long java.lang.String java.lang.String java.lang.String java.lang.String java.lang.String byte[]