Package cn.edu.zju.acm.onlinejudge.bean.enumeration

Examples of cn.edu.zju.acm.onlinejudge.bean.enumeration.PermissionLevel


        if (action == null) {
            throw new NullPointerException("action should not be null.");
        }

        Long contextLong = new Long(context);
        PermissionLevel oldAction = this.permissions.get(contextLong);
        if (action.compareTo(oldAction) > 0) {
            this.permissions.put(contextLong, action);
        }
        return oldAction;
View Full Code Here


     */
    public List<PermissionEntry> getPermissions() {
        List<PermissionEntry> entries = new ArrayList<PermissionEntry>();
        for (Entry<Long, PermissionLevel> entry : this.permissions.entrySet()) {
            long id = entry.getKey().longValue();
            PermissionLevel action = entry.getValue();
            entries.add(new PermissionEntry(id, action));
        }
        return entries;
    }
View Full Code Here

            throw new NullPointerException("permissions should not be null.");
        }

        for (Entry<Long, PermissionLevel> entry : permissions.permissions.entrySet()) {
            long id = entry.getKey().longValue();
            PermissionLevel action = entry.getValue();
            this.addPermission(id, action);
        }
    }
View Full Code Here

TOP

Related Classes of cn.edu.zju.acm.onlinejudge.bean.enumeration.PermissionLevel

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.