Examples of DomainModel


Examples of com.sparc.knappsack.models.DomainModel

        return model;
    }

    @Override
    public DomainModel createDomainModel(Group group) {
        DomainModel model = null;
        if (group != null) {
            model = createGroupModel(group);
        }
        return model;
    }
View Full Code Here

Examples of com.sparc.knappsack.models.DomainModel

        return model;
    }

    @Override
    public DomainModel createDomainModel(Organization domain) {
        DomainModel model = null;
        if (domain != null) {
            model = createOrganizationModel(domain, false);
        }
        return model;
    }
View Full Code Here

Examples of com.sparc.knappsack.models.DomainModel

            userModel.setFirstName(domainUserRequest.getUser().getFirstName());
            userModel.setLastName(domainUserRequest.getUser().getLastName());
            domainUserRequestModel.setUser(userModel);

            DomainEntityService domainEntityService = domainEntityServiceFactory.getDomainEntityService(domainUserRequest.getDomain().getDomainType());
            DomainModel domainModel = domainEntityService.createDomainModel(domainUserRequest.getDomain());
            domainUserRequestModel.setDomain(domainModel);

            success = emailService.sendDomainUserAccessConfirmationEmail(domainUserRequestModel);
        }
View Full Code Here

Examples of org.apache.isis.viewer.json.applib.RestfulRequest.DomainModel

    @Test
    public void parser_roundtrips() {
        final Parser<DomainModel> parser = RestfulRequest.DomainModel.parser();
        for (final DomainModel domainModel : DomainModel.values()) {
            final String asString = parser.asString(domainModel);
            final DomainModel roundtripped = parser.valueOf(asString);
            assertSame(roundtripped, domainModel);
        }
    }
View Full Code Here

Examples of org.apache.isis.viewer.restfulobjects.applib.client.RestfulRequest.DomainModel

       
        this.followLinks = Collections.unmodifiableList(getArg(RequestParameter.FOLLOW_LINKS));
    }

    private void ensureDomainModelQueryParamSupported() {
        final DomainModel domainModel = getArg(RequestParameter.DOMAIN_MODEL);
        if(domainModel != DomainModel.FORMAL) {
            throw RestfulObjectsApplicationException.createWithMessage(HttpStatusCode.BAD_REQUEST, 
                                           "x-ro-domain-model of '%s' is not supported", domainModel);
        }
    }
View Full Code Here

Examples of org.apache.isis.viewer.restfulobjects.applib.client.RestfulRequest.DomainModel

    @Test
    public void parser_roundtrips() {
        final Parser<DomainModel> parser = RestfulRequest.DomainModel.parser();
        for (final DomainModel domainModel : DomainModel.values()) {
            final String asString = parser.asString(domainModel);
            final DomainModel roundtripped = parser.valueOf(asString);
            assertSame(roundtripped, domainModel);
        }
    }
View Full Code Here

Examples of org.apache.isis.viewer.restfulobjects.applib.client.RestfulRequest.DomainModel

    }

    @Test
    public void simple() {
        repr.mapPut("x-ro-domain-model", "simple");
        final DomainModel valueOf = requestParameter.valueOf(repr);

        assertThat(valueOf, is(DomainModel.SIMPLE));
    }
View Full Code Here

Examples of org.apache.isis.viewer.restfulobjects.applib.client.RestfulRequest.DomainModel

        assertThat(valueOf, is(DomainModel.SIMPLE));
    }

    @Test
    public void whenNone() {
        final DomainModel valueOf = requestParameter.valueOf(repr);

        assertThat(valueOf, is(DomainModel.FORMAL));
    }
View Full Code Here

Examples of org.apache.isis.viewer.restfulobjects.applib.client.RestfulRequest.DomainModel

       
        this.followLinks = Collections.unmodifiableList(getArg(RequestParameter.FOLLOW_LINKS));
    }

    private void ensureDomainModelQueryParamSupported() {
        final DomainModel domainModel = getArg(RequestParameter.DOMAIN_MODEL);
        if(domainModel != DomainModel.FORMAL) {
            throw RestfulObjectsApplicationException.createWithMessage(HttpStatusCode.BAD_REQUEST,
                    "x-ro-domain-model of '%s' is not supported", domainModel);
        }
    }
View Full Code Here

Examples of org.apache.qpid.management.domain.model.DomainModel

   
   
    @Override
    protected void setUp () throws Exception
    {
        DomainModel domainModel = new DomainModel(TestConstants.BROKER_ID);
        _listener = new BrokerMessageListener(domainModel);
       
        _handlers.put(opcode1, _emptyMessageHandler);
        _handlers.put(opcode2, _anotherEmptyMessageHandler);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.