Package com.sparc.knappsack.forms

Examples of com.sparc.knappsack.forms.DomainConfigurationForm


        Domain domain = domainService.get(domainId);
        if (domain == null) {
            throw new EntityNotFoundException(String.format("Domain entity not found while viewing DomainConfiguration page: %s", domainId));
        }
        DomainConfiguration domainConfiguration = domain.getDomainConfiguration() == null ? new DomainConfiguration() : domain.getDomainConfiguration();
        DomainConfigurationForm domainConfigurationForm = getDomainConfigurationForm(domain.getId(), domainConfiguration);

        model.addAttribute("domain", domain);
        model.addAttribute("domainConfiguration", domainConfigurationForm);
        model.addAttribute("domainType", domain.getDomainType().name());
        setSideBarNavAttribute(model, domain.getDomainType());
View Full Code Here


        return "manager/domainConfigurationTH";
    }

    private DomainConfigurationForm getDomainConfigurationForm(Long domainId, DomainConfiguration domainConfiguration) {
        DomainConfigurationForm domainConfigurationForm = new DomainConfigurationForm();
        domainConfigurationForm.setMonitorBandwidth(domainConfiguration.isMonitorBandwidth());
        domainConfigurationForm.setMegabyteBandwidthLimit(domainConfiguration.getMegabyteBandwidthLimit());
        domainConfigurationForm.setApplicationLimit(domainConfiguration.getApplicationLimit());
        domainConfigurationForm.setApplicationVersionLimit(domainConfiguration.getApplicationVersionLimit());
        domainConfigurationForm.setDisabled(domainConfiguration.isDisabledDomain());
        domainConfigurationForm.setDisableLimitValidations(domainConfiguration.isDisableLimitValidations());
        domainConfigurationForm.setDomainId(domainId);
        domainConfigurationForm.setId(domainConfiguration.getId());
        domainConfigurationForm.setMegabyteStorageLimit(domainConfiguration.getMegabyteStorageLimit());
        domainConfigurationForm.setUserLimit(domainConfiguration.getUserLimit());
        domainConfigurationForm.setApplicationResignerEnabled(domainConfiguration.isApplicationResignerEnabled());
        domainConfigurationForm.setCustomBrandingEnabled(domainConfiguration.isCustomBrandingEnabled());

        return domainConfigurationForm;
    }
View Full Code Here

TOP

Related Classes of com.sparc.knappsack.forms.DomainConfigurationForm

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.