DLApp
Não há nenhum serviço que combina essa frase.

/dlapp/add-file-entry

Método do HTTP
POST
com.liferay.portlet.documentlibrary.service.DLAppServiceUtil#addFileEntry

Adds a file entry and associated metadata. It is created based on a {@link File} object.

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.

Parâmetros

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

file java.io.File

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

Tipo do retorno

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

the file entry

Exceção

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

Execute

long long java.lang.String java.lang.String java.lang.String java.lang.String java.lang.String java.io.File