Example usage for com.liferay.portal.kernel.security.permission ActionKeys UPDATE_DISCUSSION

List of usage examples for com.liferay.portal.kernel.security.permission ActionKeys UPDATE_DISCUSSION

Introduction

In this page you can find the example usage for com.liferay.portal.kernel.security.permission ActionKeys UPDATE_DISCUSSION.

Prototype

String UPDATE_DISCUSSION

To view the source code for com.liferay.portal.kernel.security.permission ActionKeys UPDATE_DISCUSSION.

Click Source Link

Usage

From source file:com.liferay.message.boards.internal.service.MBDiscussionMBMessageServiceWrapper.java

License:Open Source License

@Override
public MBMessage updateDiscussionMessage(String className, long classPK, long messageId, String subject,
        String body, ServiceContext serviceContext) throws PortalException {

    MBDiscussionPermission.check(_getPermissionChecker(), messageId, ActionKeys.UPDATE_DISCUSSION);

    return super.updateDiscussionMessage(className, classPK, messageId, subject, body, serviceContext);
}