Examples of GlobalPermission


Examples of org.apache.roller.weblogger.pojos.GlobalPermission

            if (!password.trim().equals(realpassword)) {
                throw new UnauthorizedException("ERROR: User is not authorized: " + userName);
            }
            List<String> adminActions = new ArrayList<String>();
            adminActions.add("admin");
            GlobalPermission adminPerm = new GlobalPermission(ud, adminActions);
            if (!WebloggerFactory.getWeblogger().getUserManager().checkPermission(adminPerm, ud)) {
                throw new UnauthorizedException("ERROR: User must have the admin role to use the RAP endpoint: " + userName);
            }
            if (!ud.getEnabled().booleanValue()) {
                throw new UnauthorizedException("ERROR: User is disabled: " + userName);
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.