Package org.springframework.security.acls.model

Examples of org.springframework.security.acls.model.Permission


     * @return permission with specified name if it exist
     *         <b>NULL_PERMISSION</b> otherwise
     */
    @Override
    public Permission buildFromName(String name) {
        Permission permission = jtalksPermissionFactory.buildFromName(name);
        if (permission == null) {
            permission = pluginPermissionFactory.buildFromName(name);
        }
        if (permission == null) {
            permission = NullPermission.NULL_PERMISSION;
View Full Code Here


                                 String targetType, Object permission) {
        boolean result = false;
        Long id = parseTargetId(targetId);

        ObjectIdentity objectIdentity = aclUtil.createIdentity(id, targetType);
        Permission jtalksPermission;
        if (permission instanceof Permission) {
            jtalksPermission = (Permission) permission;
        } else {
            jtalksPermission = getPermission(permission);
        }
View Full Code Here

     * @return <code>true</code> if this entry has specified <tt>permission</tt>
     *         and type of grant.
     */
    private boolean isGrantedForGroup(GroupAce ace, Authentication authentication,
                                      Permission permission, boolean isCheckAllowedGrant) {
        Permission permissionToComapare = ace.getPermission();
        if (permissionToComapare == null) {
            permissionToComapare = pluginPermissionManager.findPluginsBranchPermissionByMask(ace.getPermissionMask());
        }
        return ace.isGranting() == isCheckAllowedGrant
                && permission.equals(permissionToComapare)
View Full Code Here

TOP

Related Classes of org.springframework.security.acls.model.Permission

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.