Package models

Examples of models.IssueLabelCategory


        Project project = Project.findByOwnerAndProjectName(ownerName, projectName);

        DynamicForm labelForm = form().bindFromRequest();
        String categoryName = labelForm.get("categoryName");

        IssueLabelCategory category = new IssueLabelCategory();
        category.project = project;
        category.name = categoryName;

        if (category.exists()) {
            category = IssueLabelCategory.findBy(category);
        } else {
            category.isExclusive = Boolean.parseBoolean(labelForm.get("categoryIsExclusive"));
            category.save();
        }

        IssueLabel label = new IssueLabel();
        label.project = project;
        label.name = labelForm.get("labelName");
View Full Code Here


        }

        Project project =
            Project.findByOwnerAndProjectName(ownerName, projectName);

        IssueLabelCategory category = IssueLabelCategory.find.byId(id);

        return ok(toJson(toMap(category))).as("application/json");
    }
View Full Code Here

        if (form.hasErrors()) {
            return badRequest();
        }

        IssueLabelCategory category = form.get();
        category.id = id;
        category.project =
            Project.findByOwnerAndProjectName(ownerName, projectName);

        category.update();

        return ok();
    }
View Full Code Here

        if (form.hasErrors()) {
            return badRequest();
        }

        IssueLabelCategory category = form.get();

        category.project =
            Project.findByOwnerAndProjectName(ownerName, projectName);

        if (category.exists()) {
            return noContent();
        }

        category.save();

        if (!request().accepts("application/json")) {
            return created();
        }
View Full Code Here

TOP

Related Classes of models.IssueLabelCategory

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.