Example usage for com.liferay.portal.kernel.util Constants REMOVE

List of usage examples for com.liferay.portal.kernel.util Constants REMOVE

Introduction

In this page you can find the example usage for com.liferay.portal.kernel.util Constants REMOVE.

Prototype

String REMOVE

To view the source code for com.liferay.portal.kernel.util Constants REMOVE.

Click Source Link

Usage

From source file:com.liferay.wiki.web.internal.portlet.action.EditPageAttachmentsMVCActionCommand.java

License:Open Source License

protected void deleteAttachment(ActionRequest actionRequest, boolean moveToTrash) throws Exception {

    TrashedModel trashedModel = _wikiAttachmentsHelper.deleteAttachment(actionRequest, moveToTrash);

    if (moveToTrash && (trashedModel != null)) {
        TrashUtil.addTrashSessionMessages(actionRequest, trashedModel, Constants.REMOVE);

        hideDefaultSuccessMessage(actionRequest);
    }//from   w w w .  jav  a2  s.c o  m
}