Example usage for com.liferay.portal.kernel.portletfilerepository PortletFileRepositoryUtil deletePortletRepository

List of usage examples for com.liferay.portal.kernel.portletfilerepository PortletFileRepositoryUtil deletePortletRepository

Introduction

In this page you can find the example usage for com.liferay.portal.kernel.portletfilerepository PortletFileRepositoryUtil deletePortletRepository.

Prototype

public static void deletePortletRepository(long groupId, String portletId) throws PortalException 

Source Link

Usage

From source file:com.liferay.wiki.service.impl.WikiNodeLocalServiceImpl.java

License:Open Source License

@Override
public void deleteNodes(long groupId) throws PortalException {
    List<WikiNode> nodes = wikiNodePersistence.findByGroupId(groupId);

    for (WikiNode node : nodes) {
        wikiNodeLocalService.deleteNode(node);
    }/*from   w ww  . j  a va2  s  .  co m*/

    PortletFileRepositoryUtil.deletePortletRepository(groupId, WikiConstants.SERVICE_NAME);
}