Package io.fathom.cloud.identity.api.os.model.v3

Examples of io.fathom.cloud.identity.api.os.model.v3.Group


           ((CanonicalUser)grantee).setDisplayName("TODO");
           grants[i].setGrantee(grantee);
           break;
         
        case SAcl.GRANTEE_ALLUSERS:
           grantee = new Group();
           ((Group)grantee).setURI( "http://acs.amazonaws.com/groups/global/AllUsers" );
           grants[i].setGrantee(grantee);
             break;
            
        case SAcl.GRANTEE_AUTHENTICATED:       
           grantee = new Group();
           ((Group)grantee).setURI( "http://acs.amazonaws.com/groups/global/Authenticated" );
           grants[i].setGrantee(grantee);
           break;
         
        default :
View Full Code Here


          engineGrant.setGrantee(SAcl.GRANTEE_USER);
          engineGrant.setCanonicalUserID(((CanonicalUser)grantee).getID());
        }
        else if (grantee instanceof Group)
        {
           Group temp = (Group)grantee;
           String uri = temp.getURI();
           if ( uri.equalsIgnoreCase( "http://acs.amazonaws.com/groups/global/AllUsers" )) {
              // -> this allows all public unauthenticated access based on permission given
              engineGrant.setGrantee(SAcl.GRANTEE_ALLUSERS);
              engineGrant.setCanonicalUserID( "*" );
           }
View Full Code Here

        DomainList response = new DomainList();
        response.domains = Lists.newArrayList();

        for (DomainData data : identityService.listDomains(user)) {
            Domain domain = toModel(data);
            response.domains.add(domain);
        }

        return response;
    }
View Full Code Here

        response.domain = toModel(data);
        return response;
    }

    private Domain toModel(DomainData data) {
        Domain model = new Domain();

        model.id = "" + data.getId();
        model.name = data.getName();

        model.description = data.getDescription();
View Full Code Here

        model.domain = toModel(domain);
        return model;
    }

    private Domain toModel(DomainData domain) {
        Domain model = new Domain();
        model.id = Long.toString(domain.getId());
        model.name = domain.getName();
        return model;
    }
View Full Code Here

    @GET
    public DomainList listDomains() throws CloudException {
        UserData user = getUser();

        DomainList response = new DomainList();
        response.domains = Lists.newArrayList();

        for (DomainData data : identityService.listDomains(user)) {
            Domain domain = toModel(data);
            response.domains.add(domain);
View Full Code Here

        UserData user = getUser();

        DomainData data = identityService.findDomain(user, id);
        notFoundIfNull(data);

        DomainWrapper response = new DomainWrapper();
        response.domain = toModel(data);
        return response;
    }
View Full Code Here

        if (service.endpoints == null) {
            service.endpoints = Lists.newArrayList();
        }

        for (String interfaceName : new String[] { "public", "internal", "admin" }) {
            Endpoint endpoint = new Endpoint();
            service.endpoints.add(endpoint);

            endpoint.id = service.id + "-" + interfaceName;
            endpoint.name = service.name;
            endpoint.interfaceName = interfaceName;
View Full Code Here

        GroupList response = new GroupList();
        response.groups = Lists.newArrayList();

        for (GroupData data : identityService.listGroups(user)) {
            Group domain = toModel(data);
            response.groups.add(domain);
        }

        return response;
    }
View Full Code Here

        return response;
    }

    private Group toModel(GroupData data) {
        Group model = new Group();

        model.id = "" + data.getId();
        model.name = data.getName();

        model.description = data.getDescription();
View Full Code Here

TOP

Related Classes of io.fathom.cloud.identity.api.os.model.v3.Group

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.