Package io.fathom.cloud.server.auth.Auth

Examples of io.fathom.cloud.server.auth.Auth.Domain


    @Deprecated
    // This is a dark corner of the OpenStack API
    protected void checkDomainAdmin() {
        Auth auth = getAuth();

        Domain domainAdmin = auth.findDomainWithAdminRole();
        if (domainAdmin == null) {
            log.debug("Expected domain admin: {}", auth);
            throw new WebApplicationException(Status.FORBIDDEN);
        }
    }
View Full Code Here


    public List<InstanceData> listInstances(Auth auth, Project project) throws CloudException {
        List<InstanceData> instances = Lists.newArrayList();

        if (project == null) {
            Domain domainAdmin = auth.findDomainWithAdminRole();
            if (domainAdmin == null) {
                throw new WebApplicationException(Status.FORBIDDEN);
            }

            for (long projectId : computeRepository.listInstanceProjects()) {
View Full Code Here

        SubnetData subnet = store.getSharedSubnets().create(builder);
        return subnet;
    }

    private Domain requireDomainAdmin(Auth auth) {
        Domain domain = auth.findDomainWithAdminRole();
        if (domain == null) {
            throw new WebApplicationException(Status.UNAUTHORIZED);
        }
        return domain;
    }
View Full Code Here

TOP

Related Classes of io.fathom.cloud.server.auth.Auth.Domain

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.