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

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

Introduction

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

Prototype

String PORTAL

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

Click Source Link

Usage

From source file:com.liferay.exportimport.lar.PortletDataContextImpl.java

License:Open Source License

@Override
public void addPortalPermissions() {
    addPermissions(PortletKeys.PORTAL, getCompanyId());
}

From source file:com.liferay.exportimport.lar.PortletDataContextImpl.java

License:Open Source License

@Override
public void importPortalPermissions() throws PortalException {
    importPermissions(PortletKeys.PORTAL, getSourceCompanyId(), getCompanyId());
}

From source file:com.liferay.roles.admin.web.internal.portlet.RolesAdminPortlet.java

License:Open Source License

protected void updateViewControlPanelPermission(Role role, long scopeGroupId, String portletId, int scope,
        String[] groupIds) throws Exception {

    PanelCategoryHelper panelCategoryHelper = new PanelCategoryHelper(_panelAppRegistry,
            _panelCategoryRegistry);//from   w w w.  j  a  v a  2 s . c  o m

    String selResource = null;
    String actionId = null;

    if (panelCategoryHelper.containsPortlet(portletId, PanelCategoryKeys.CONTROL_PANEL)
            && (role.getType() == RoleConstants.TYPE_REGULAR)) {

        selResource = PortletKeys.PORTAL;
        actionId = ActionKeys.VIEW_CONTROL_PANEL;
    } else if (panelCategoryHelper.containsPortlet(portletId, PanelCategoryKeys.SITE_ADMINISTRATION)) {

        selResource = Group.class.getName();
        actionId = ActionKeys.VIEW_SITE_ADMINISTRATION;
    }

    if (selResource != null) {
        updateAction(role, scopeGroupId, selResource, actionId, true, scope, groupIds);
    }
}