Example usage for com.liferay.portal.kernel.service PortletPreferencesLocalServiceUtil deletePortletPreferences

List of usage examples for com.liferay.portal.kernel.service PortletPreferencesLocalServiceUtil deletePortletPreferences

Introduction

In this page you can find the example usage for com.liferay.portal.kernel.service PortletPreferencesLocalServiceUtil deletePortletPreferences.

Prototype

public static void deletePortletPreferences(long ownerId, int ownerType, long plid, String portletId)
            throws com.liferay.portal.kernel.exception.PortalException 

Source Link

Usage

From source file:com.liferay.application.list.my.account.permissions.test.PanelAppMyAccountPermissionsTest.java

License:Open Source License

@After
public void tearDown() throws Exception {
    for (ServiceRegistration<?> serviceRegistration : _serviceRegistrations) {

        serviceRegistration.unregister();
    }//ww  w .j  a  v  a2 s  .  com

    _serviceRegistrations.clear();

    PortletPreferencesLocalServiceUtil.deletePortletPreferences(TestPropsValues.getCompanyId(),
            PortletKeys.PREFS_OWNER_TYPE_COMPANY, LayoutConstants.DEFAULT_PLID, _testPortletId);
}