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

Examples of io.fathom.cloud.identity.api.os.model.Project


        for (ProjectData data : authRepository.getProjects().list()) {
            if (data.getDomainId() != domain.getId()) {
                continue;
            }
            Project user = toModel(data);
            response.projects.add(user);
        }

        return response;
    }
View Full Code Here


            throws CloudException {
        ProjectData project = getProject(projectId);

        ProjectData.Builder b = ProjectData.newBuilder(project);

        Project req = wrappedProject.project;
        if (!Strings.isNullOrEmpty(req.description)) {
            b.setDescription(req.description);
        }

        if (req.enabled != null) {
View Full Code Here

    @POST
    public WrappedProject createProject(WrappedProject wrappedProject) throws CloudException {
        AuthenticatedUser owner = getAuthenticatedUser();

        Project req = wrappedProject.project;

        ProjectData.Builder b = ProjectData.newBuilder();

        if (!Strings.isNullOrEmpty(req.description)) {
            b.setDescription(req.description);
View Full Code Here

    //
    // return domain;
    // }

    protected Project toModel(ProjectData data) {
        Project p = new Project();

        p.id = "" + data.getId();
        p.name = data.getName();
        p.description = data.getDescription();
        p.enabled = true;
View Full Code Here

TOP

Related Classes of io.fathom.cloud.identity.api.os.model.Project

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.