Example usage for com.liferay.portal.kernel.repository Repository getSubfolderIds

List of usage examples for com.liferay.portal.kernel.repository Repository getSubfolderIds

Introduction

In this page you can find the example usage for com.liferay.portal.kernel.repository Repository getSubfolderIds.

Prototype

public List<Long> getSubfolderIds(long folderId, boolean recurse) throws PortalException;

Source Link

Usage

From source file:com.liferay.portlet.documentlibrary.service.impl.DLAppServiceImpl.java

License:Open Source License

public void getSubfolderIds(long repositoryId, List<Long> folderIds, long folderId)
        throws PortalException, SystemException {

    Repository repository = getRepository(repositoryId);

    repository.getSubfolderIds(folderIds, folderId);
}

From source file:com.liferay.portlet.documentlibrary.service.impl.DLAppServiceImpl.java

License:Open Source License

/**
 * Returns descendant folders of the folder with the primary key, optionally
 * limiting to one level deep.//from w w w  .  j av a 2 s .  com
 *
 * @param  repositoryId the primary key of the repository
 * @param  folderId the primary key of the folder
 * @param  recurse whether to recurse through each subfolder
 * @return the descendant folders of the folder with the primary key
 * @throws PortalException if the repository or parent folder could not be
 *         found
 * @throws SystemException if a system exception occurred
 */
public List<Long> getSubfolderIds(long repositoryId, long folderId, boolean recurse)
        throws PortalException, SystemException {

    Repository repository = getRepository(repositoryId);

    return repository.getSubfolderIds(folderId, recurse);
}