Examples of CustomBranding


Examples of com.sparc.knappsack.components.entities.CustomBranding

                errors.rejectValue(STORAGE_PREFIX_FIELD, "organizationValidator.prefix");
            }
        }

        if(organizationForm.getSubdomain() != null && !organizationForm.getSubdomain().isEmpty()) {
            CustomBranding customBranding = customBrandingService.getBySubdomain(organizationForm.getSubdomain());
            if(customBranding != null && !organization.getCustomBranding().getId().equals(customBranding.getId())) {
                errors.rejectValue(SUBDOMAIN_FIELD, "organizationValidator.subdomain");
            }
        }

        if (organizationForm.getLogo() != null) {
View Full Code Here

Examples of com.sparc.knappsack.components.entities.CustomBranding

                if (organization != null) {
                    modelAndView.getModel().put("orgName", "Knappsack");
                    if (organizationService.isCustomBrandingEnabled(organization)) {
                        modelAndView.getModel().put("orgName", organization.getName());
                        CustomBranding customBranding = organization.getCustomBranding();
                        if (customBranding != null) {

                            // Add logo URL to model is exists
                            AppFile logo = customBranding.getLogo();
                            if (logo != null) {
                                modelAndView.getModel().put("customLogoURL", appFileService.getImageUrl(logo));
                                modelAndView.getModel().put("customLogoOrganizationName", StringUtils.trimTrailingWhitespace(organization.getName()));
                            }
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.