Package org.nimbustools.api.services.rm

Examples of org.nimbustools.api.services.rm.AuthorizationException


                return size;
            }
            catch(AuthzDBException wsdbex)
            {
                logger.error("iternal db problem", wsdbex);
                throw new AuthorizationException("Internal problem with the data base " + wsdbex.toString());
            }
        }
        else if (scheme.equals("file"))
        {
            return 0;
View Full Code Here


        {
            final String msg = "ERROR: Partition in " +
                "binding is not a valid URI? Can't make decision. " +
                    " Error message: " + e.getMessage();
            logger.error(msg, e);
            throw new AuthorizationException(msg);
        } catch (ResourceRequestDeniedException e) {
            logger.error(e.getMessage());
            return Decision.DENY;
        }
View Full Code Here

    private void authorizeCaller(Caller caller, AsyncRequest siReq)
            throws AuthorizationException {
        if(!caller.isSuperUser() && !siReq.getCaller().equals(caller)){
            logger.warn("Caller " + caller + " is not authorized to gather information of asynchronous request from "
                    + siReq.getCaller());
            throw new AuthorizationException("Caller is not authorized to get information about this request");
        }
    }
View Full Code Here

            throws AuthorizationException,
                   ResourceRequestDeniedException {

        if (elapsedMins == null || reservedMins == null) {
            throw new AuthorizationException(
                    "This authorization module requires " +
                            "elapsed and reserved values");
        }

        if (bindings == null) {
            throw new AuthorizationException(
                    "This authorization module requires bindings, ability " +
                            "to examine request specifics.  " +
                            "Please contact administrator.");
        }
View Full Code Here

        }

        logger.error("NOT IN ANY GROUP: '" + caller + "'");

        // administrator put DN in grid-mapfile but not in a group...
        throw new AuthorizationException(NO_POLICIES_MESSAGE);
    }
View Full Code Here

TOP

Related Classes of org.nimbustools.api.services.rm.AuthorizationException

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.