Package org.apache.wink.example.customcontext.SecurityManager

Examples of org.apache.wink.example.customcontext.SecurityManager.CustomerPermission


    public CustomerPermission getContext(Class<?> type) {
        String user = uriInfo.getQueryParameters().getFirst(CUSTOMER_ID);
        if (user == null) {
            return new SecurityManager.CustomerPermission("", SecurityManager.READ_ONLY);
        }
        CustomerPermission permission = sm.getPermission(user);
        if (permission == null) {
            return new SecurityManager.CustomerPermission(user, SecurityManager.READ_ONLY);
        }
        return permission;
    }
View Full Code Here

TOP

Related Classes of org.apache.wink.example.customcontext.SecurityManager.CustomerPermission

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.