List of usage examples for com.liferay.portal.kernel.repository Repository getFolder
public Folder getFolder(long parentFolderId, String name) throws PortalException;
From source file:com.liferay.portlet.documentlibrary.service.impl.DLAppServiceImpl.java
License:Open Source License
/** * Returns the folder with the name in the parent folder. * * @param repositoryId the primary key of the folder's repository * @param parentFolderId the primary key of the folder's parent folder * @param name the folder's name//from ww w . ja v a 2s. c om * @return the folder with the name in the parent folder * @throws PortalException if the folder could not be found * @throws SystemException if a system exception occurred */ public Folder getFolder(long repositoryId, long parentFolderId, String name) throws PortalException, SystemException { Repository repository = getRepository(repositoryId); return repository.getFolder(parentFolderId, name); }