Package com.sparc.knappsack.models

Examples of com.sparc.knappsack.models.DomainRequestModel


    }

    @Override
    @Transactional(propagation = Propagation.NEVER)
    public DomainRequestModel toDomainRequestModel(DomainRequest domainRequest) {
        DomainRequestModel domainRequestModel = new DomainRequestModel();
        domainRequestModel.setAddress(domainRequest.getAddress());
        domainRequestModel.setCompanyName(domainRequest.getCompanyName());
        domainRequestModel.setDeviceType(domainRequest.getDeviceType());
        domainRequestModel.setDomainId(domainRequest.getDomain().getId());
        domainRequestModel.setEmailAddress(domainRequest.getEmailAddress());
        domainRequestModel.setId(domainRequest.getId());
        domainRequestModel.setFirstName(domainRequest.getFirstName());
        domainRequestModel.setLastName(domainRequest.getLastName());
        domainRequestModel.setPhoneNumber(domainRequest.getPhoneNumber());
        domainRequestModel.setLanguages(domainRequest.getLanguages());
        domainRequestModel.setRegion(regionService.createRegionModel(domainRequest.getRegion()));

        DomainEntityService domainEntityService = domainEntityServiceFactory.getDomainEntityService(domainRequest.getDomain().getDomainType());
        domainRequestModel.setAssignableDomains(domainEntityService.getAssignableDomainModelsForDomainRequest(domainRequest.getDomain()));

        return domainRequestModel;
    }
View Full Code Here

TOP

Related Classes of com.sparc.knappsack.models.DomainRequestModel

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.