Examples of RollerSession


Examples of org.apache.roller.weblogger.ui.core.RollerSession

    }
   
   
    public boolean isUserAuthorizedToEdit() {
        try {
            RollerSession rses =
                    RollerSession.getRollerSession(mRequest);
            if ( rses != null && rses.getAuthenticatedUser() != null
                    && mWebsite != null) {
                return mWebsite.hasUserPermissions(
                        rses.getAuthenticatedUser(), WeblogPermission.ADMIN);
            }
        } catch (Exception e) {
            mLogger.warn("PageHelper.isUserAuthorizedToEdit)", e);
        }
        return false;
View Full Code Here

Examples of org.apache.roller.weblogger.ui.core.RollerSession

            log.debug("action is a UIAction, setting relevant attributes");
           
            UIAction theAction = (UIAction) action;
           
            // extract the authenticated user and set it
            RollerSession rses = RollerSession.getRollerSession(request);
            if(rses != null) {
                theAction.setAuthenticatedUser(rses.getAuthenticatedUser());
            }
           
            // extract the work weblog and set it
            String weblogHandle = theAction.getWeblog();
            if(!StringUtils.isEmpty(weblogHandle)) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.