Package be.c4j.ee.security.permission

Examples of be.c4j.ee.security.permission.NamedDomainPermission


    }

    private AuthorizationViolation defineOctopusViolation(InvocationContext invocationContext, Permission violatedPermission) {
        String permissionInfo = null;
        if (violatedPermission instanceof NamedDomainPermission) {
            NamedDomainPermission namedPermission = (NamedDomainPermission) violatedPermission;
            permissionInfo = "Permission " + namedPermission.getName();
        }
        if (violatedPermission instanceof NamedApplicationRole) {
            NamedApplicationRole namedRole = (NamedApplicationRole) violatedPermission;
            permissionInfo = "Role " + namedRole.getRoleName();
        }
View Full Code Here


    public List<NamedDomainPermission> getAllPermissions() {
        List<HRAppPermission> permissionList = database.getPermissionList();
        List<NamedDomainPermission> result = new ArrayList<NamedDomainPermission>();
        for (HRAppPermission permission : permissionList) {
            result.add(new NamedDomainPermission(permission.getName(), permission.getDomain(), permission.getActions(), permission.getTarget()));
        }
        return result;
    }
View Full Code Here

TOP

Related Classes of be.c4j.ee.security.permission.NamedDomainPermission

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.