Package models

Examples of models.IssueLabel$IssueLabelException


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

        IssueLabel label = new IssueLabel();
        label.project = project;
        label.name = labelForm.get("labelName");
        label.color = labelForm.get("labelColor");
        label.category = category;

        if (label.exists()) {
            return noContent();
        } else {
            label.save();

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


        if (!bindedForm.get("_method").toLowerCase()
                .equals("delete")) {
            return badRequest(ErrorViews.BadRequest.render("_method must be 'delete'."));
        }

        IssueLabel label = IssueLabel.finder.byId(id);
        label.delete();
        return ok();
    }
View Full Code Here

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

        IssueLabel label = form.get();
        label.id = id;
        label.project = Project.findByOwnerAndProjectName(ownerName, projectName);

        label.update();

        return ok();
    }
View Full Code Here

TOP

Related Classes of models.IssueLabel$IssueLabelException

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.