List of usage examples for com.liferay.portal.kernel.trash TrashHandler moveEntry
public void moveEntry(long userId, long classPK, long containerModelId, ServiceContext serviceContext) throws PortalException;
From source file:com.liferay.wiki.trash.test.WikiPageDependentsTrashHandlerTest.java
License:Open Source License
protected void movePage(WikiPage trashedPage, WikiPage newParentPage) throws PortalException { TrashHandler trashHandler = TrashHandlerRegistryUtil.getTrashHandler(WikiPage.class.getName()); ServiceContext serviceContext = ServiceContextTestUtil.getServiceContext(_group.getGroupId()); trashHandler.moveEntry(TestPropsValues.getUserId(), trashedPage.getResourcePrimKey(), newParentPage.getResourcePrimKey(), serviceContext); }