Package org.focusns.model.core

Examples of org.focusns.model.core.ProjectFeature


        return (ProjectFeature) webRequest.getAttribute("feature", WebRequest.SCOPE_SESSION);
    }

    public static String getRedirectPath(WebRequest webRequest) {
        Project project = getProject(webRequest);
        ProjectFeature feature = getProjectFeature(webRequest);
        return getRedirectPath(project, feature);
    }
View Full Code Here


        projectTemplate.setDescription(DomUtils.getTextValue(descriptionEle));
        // project features
        Element featuresEle = DomUtils.getChildElementByTagName(projectEle, "features");
        List<Element> featureEles = DomUtils.getChildElementsByTagName(featuresEle, "feature");
        for(Element featureEle : featureEles) {
            ProjectFeature projectFeature = new ProjectFeature();
            projectFeature.setCode(featureEle.getAttribute("code"));
            projectFeature.setLabel(featureEle.getAttribute("label"));
            projectFeature.setEnabled(true);
            String level = featureEle.getAttribute("level");
            if(StringUtils.hasText(level)) {
                projectFeature.setLevel(Integer.parseInt(level));
            }
            projectTemplate.addProjectFeature(projectFeature);
        }
        // project attributes
        Element attributesEle = DomUtils.getChildElementByTagName(projectEle, "attributes");
View Full Code Here

TOP

Related Classes of org.focusns.model.core.ProjectFeature

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.