List of usage examples for com.liferay.portal.kernel.repository LocalRepository updateFolder
public Folder updateFolder(long folderId, long parentFolderId, String name, String description, ServiceContext serviceContext) throws PortalException;
From source file:com.liferay.portlet.documentlibrary.service.impl.DLAppLocalServiceImpl.java
License:Open Source License
/** * Updates the folder./*from ww w .j a va 2 s .c om*/ * * @param folderId the primary key of the folder * @param parentFolderId the primary key of the folder's new parent folder * @param name the folder's new name * @param description the folder's new description * @param serviceContext the service context to be applied. In a Liferay * repository, it may include: <ul> <li> defaultFileEntryTypeId - * the file entry type to default all Liferay file entries to </li> * <li> fileEntryTypeSearchContainerPrimaryKeys - a comma-delimited * list of file entry type primary keys allowed in the given folder * and all descendants </li> <li> mountPoint - boolean specifying * whether folder is a facade for mounting a third-party repository * </li> <li> overrideFileEntryTypes - boolean specifying whether to * override ancestral folder's restriction of file entry types * allowed </li> <li> workflowDefinitionXYZ - the workflow * definition name specified per file entry type. The parameter name * must be the string <code>workflowDefinition</code> appended by * the <code>fileEntryTypeId</code> (optionally <code>0</code>). * </li> </ul> * @return the folder * @throws PortalException if the current or new parent folder could not be * found, or if the new parent folder's information was invalid * @throws SystemException if a system exception occurred */ public Folder updateFolder(long folderId, long parentFolderId, String name, String description, ServiceContext serviceContext) throws PortalException, SystemException { LocalRepository localRepository = getLocalRepository(folderId, 0, 0); return localRepository.updateFolder(folderId, parentFolderId, name, description, serviceContext); }