Examples of PAPContext


Examples of org.glite.authz.pap.authz.PAPContext

     
      log.info( "addACE('{}','{}','{}')", new Object[]{context,
              principal.getName(),permissions});
     
    PAPContext papContext = null;

    checkPAPPrincipal(principal);

    PAPAdmin admin = principalToAdmin(principal);
View Full Code Here

Examples of org.glite.authz.pap.authz.PAPContext

  public void removeACE(String context, PAPPrincipal principal)
      throws RemoteException, PAPException {

      log.info( "removeACE('{}','{}')",context,principal.getName());
     
    PAPContext papContext = null;

    checkPAPPrincipal(principal);

    PAPAdmin admin = principalToAdmin(principal);
View Full Code Here

Examples of org.glite.authz.pap.authz.PAPContext

        log
                .info( "setACL("
                        + StringUtils.join( new Object[] { context, acl }, ',' )
                        + ");" );
       
        PAPContext papContext;
       
        if (context == null || context.equals("")
                || context.equals("global-context"))
            papContext = AuthorizationEngine.instance().getGlobalContext();
        else
            throw new PAPAuthzException(
                    "Only the context 'global-context' is currently supported!");
       
        ACL globalACL = papContext.getAcl();
       
        SetACLOperation.instance( context, convertACL( acl )).execute();
       
        AuthorizationEngine.instance().saveConfiguration();
        return;
View Full Code Here

Examples of org.glite.authz.pap.authz.PAPContext

    public org.glite.authz.pap.services.authz_management.axis_skeletons.PAPACE[] getACL(
            String context ) throws RemoteException , PAPException {

        log.info( "getACL('{}')", context);
       
        PAPContext papContext;
       
        if (context == null || context.equals("")
                || context.equals("global-context"))
            papContext = AuthorizationEngine.instance().getGlobalContext();
        else
View Full Code Here

Examples of org.glite.authz.pap.authz.PAPContext

    }
   
    @Override
    protected Object doExecute() {

        PAPContext ctxt = ace.getContext();
       
        if (ctxt == null)
            ctxt = AuthorizationEngine.instance().getGlobalContext();
       
        PAPAdmin admin = ace.getAdmin();
       
        if (admin == null)
            throw new PAPAuthzException("Cannot setup permissions for NULL admins!");
       
        PAPPermission perm = ace.getPerms();
        ctxt.getAcl().setPermissions( admin, perm );
       
        return null;
    }
View Full Code Here

Examples of org.glite.authz.pap.authz.PAPContext

    }
   
    @Override
    protected Object doExecute() {
       
        PAPContext ctxt = ace.getContext();
       
        if (ctxt == null)
            ctxt = AuthorizationEngine.instance().getGlobalContext();
               
        PAPAdmin admin = ace.getAdmin();
       
        if (admin == null)
            throw new PAPAuthzException("Cannot setup permissions for NULL admins!");
       
       
        ctxt.getAcl().removePermissions( admin );
        return null;
    }
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.