Example usage for com.liferay.portal.kernel.util PortletKeys MY_ACCOUNT

List of usage examples for com.liferay.portal.kernel.util PortletKeys MY_ACCOUNT

Introduction

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

Prototype

String MY_ACCOUNT

To view the source code for com.liferay.portal.kernel.util PortletKeys MY_ACCOUNT.

Click Source Link

Usage

From source file:com.liferay.users.admin.web.internal.servlet.taglib.ui.UsersFormNavigatorContextProvider.java

License:Open Source License

@Override
public String getContext(User selectedUser) {
    if (PortletKeys.MY_ACCOUNT.equals(_getPortletName())) {
        return "my.account";
    }//  ww  w  .j a v  a  2 s . c  o  m

    if (selectedUser == null) {
        return FormNavigatorContextConstants.CONTEXT_ADD;
    }

    return FormNavigatorContextConstants.CONTEXT_UPDATE;
}