Example usage for com.liferay.portal.kernel.transaction Isolation PORTAL

List of usage examples for com.liferay.portal.kernel.transaction Isolation PORTAL

Introduction

In this page you can find the example usage for com.liferay.portal.kernel.transaction Isolation PORTAL.

Prototype

Isolation PORTAL

To view the source code for com.liferay.portal.kernel.transaction Isolation PORTAL.

Click Source Link

Document

Use the isolation level of the portal, as defined by the portal properties.

Usage

From source file:com.liferay.alloy.mvc.BaseAlloyControllerImpl.java

License:Open Source License

@Transactional(isolation = Isolation.PORTAL, propagation = Propagation.REQUIRES_NEW, rollbackFor = {
        Exception.class })
protected void executeAction(Method method) throws Exception {
    if (method != null) {
        method.invoke(this);
    }//w  w w . j  av  a  2 s .c  o  m

    actionRequest.setAttribute(CALLED_PROCESS_ACTION, Boolean.TRUE.toString());

    if (Validator.isNotNull(viewPath)) {
        actionRequest.setAttribute(VIEW_PATH, viewPath);

        PortalUtil.copyRequestParameters(actionRequest, actionResponse);
    } else if (Validator.isNotNull(redirect)) {
        actionResponse.sendRedirect(redirect);
    }
}

From source file:com.liferay.alloy.mvc.BaseAlloyControllerImpl.java

License:Open Source License

@Transactional(isolation = Isolation.PORTAL, propagation = Propagation.REQUIRES_NEW, rollbackFor = {
        Exception.class })
protected String processDataRequest(ActionRequest actionRequest) throws Exception {

    return null;// w  w w . j  a  v  a  2 s  .  c o m
}