Package org.apache.cocoon.portal.profile.impl

Examples of org.apache.cocoon.portal.profile.impl.UserInfo


    public UserInfo getUserInfo(final String portalName, final String layoutKey)
    throws Exception {
        final Map objectModel = ContextHelper.getObjectModel(this.context);
        final User user = ApplicationUtil.getUser(objectModel);

        final UserInfo info = new PortalUserInfo(portalName, layoutKey, user);

        info.setUserName(user.getId());
        info.setGroup((String)user.getAttribute("group"));
        final PortalApplication app =
                            (PortalApplication)ApplicationUtil.getApplication(objectModel);
        info.setConfigurations(app.getPortalConfiguration());

        return info;
    }
View Full Code Here

TOP

Related Classes of org.apache.cocoon.portal.profile.impl.UserInfo

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.