Package org.nimbus.authz

Examples of org.nimbus.authz.AuthzDBAdapter


        DataSource ds,
        String schemePassthroughStr)
    {
        // String nh = System.getProperty(NimbusHomePathResolver.NIMBUS_HOME_ENV_NAME);
       // might want to set default path some time
        this.authDB = new AuthzDBAdapter(ds);
        this.schemePassthrough =
                schemePassthroughStr != null
                    && schemePassthroughStr.trim().equalsIgnoreCase("true");
    }
View Full Code Here


        }
    }

    public String getVMsByUser(String user) throws RemoteException {
        try {
            authz = new AuthzDBAdapter(authzDataSource);
            String userId = authz.getCanonicalUserIdFromFriendlyName(user);
            VM[] vms = getVMsByUserId(userId);
            final List<VMTranslation> vmts = new ArrayList<VMTranslation>(vms.length);
            for(int i = 0; i < vms.length; i++) {
                vmts.add(translateVM(vms[i]));
View Full Code Here

            if(type == SHUTDOWN_HOST || type == CLEANUP_HOST)
                return getVMByHost(typeID);
            else if(type == SHUTDOWN_ID || type == CLEANUP_ID)
                return getVMById(typeID);
            else if(type == SHUTDOWN_UNAME || type == CLEANUP_UNAME) {
                authz = new AuthzDBAdapter(authzDataSource);
                String userId = authz.getCanonicalUserIdFromFriendlyName(typeID);
                VM[] vms = getVMsByUserId(userId);
                if(vms == null)
                    errorMsg = "No VMs with user name " + typeID + " found";
                return vms;
View Full Code Here

            if(group != null) {
                String[] dns = group.getIdentities();
                if(dns == null || dns.length == 0)
                    return null;

                authz = new AuthzDBAdapter(authzDataSource);
                ArrayList<VM> allVMs = new ArrayList<VM>(0);

                for(int i = 0; i < dns.length; i++) {
                    final _Caller caller = this.reprFactory._newCaller();
                    caller.setIdentity(dns[i]);
View Full Code Here

    {
        if (dataSource == null)
        {
            throw new IllegalArgumentException("dataSource may not be null");
        }
        this.authDB = new AuthzDBAdapter(dataSource);

        if (containerImpl == null)
        {
            throw new IllegalArgumentException("containerImpl may not be null");
        }
View Full Code Here

TOP

Related Classes of org.nimbus.authz.AuthzDBAdapter

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.