Example usage for com.liferay.portal.kernel.repository LocalRepository deleteAll

List of usage examples for com.liferay.portal.kernel.repository LocalRepository deleteAll

Introduction

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

Prototype

public void deleteAll() throws PortalException;

Source Link

Usage

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

License:Open Source License

/**
 * Delete all data associated to the given repository. This method is only
 * supported by the Liferay repository./*from  w w w  .j  a v  a2s.  c o m*/
 *
 * @param  repositoryId the primary key of the data's repository
 * @throws PortalException if the repository could not be found
 * @throws SystemException if a system exception occurred
 */
public void deleteAll(long repositoryId) throws PortalException, SystemException {

    LocalRepository localRepository = getLocalRepository(repositoryId);

    localRepository.deleteAll();
}