PageRenderTime 23ms CodeModel.GetById 0ms RepoModel.GetById 1ms app.codeStats 0ms

/src/main/resources/com/onresolve/jira/groovy/canned/admin/WontCompile40.groovy

https://bitbucket.org/sorin/jira-plugin-intellij
Groovy | 54 lines | 42 code | 11 blank | 1 comment | 0 complexity | ff31a54998b07631ec00bced7952e157 MD5 | raw file
  1. package com.onresolve.jira.groovy.canned.admin
  2. import com.atlassian.jira.jql.builder.DefaultJqlClauseBuilder
  3. import com.onresolve.jira.groovy.canned.CannedScript
  4. import com.atlassian.jira.util.ErrorCollection
  5. public class WontCompile implements CannedScript {
  6. public String getName() {
  7. "WontCompile for 4 and above"
  8. }
  9. public String getDescription() {
  10. "XXX this class should really not compile"
  11. }
  12. List getCategories() {
  13. ["ADMIN"]
  14. }
  15. public List getParameters(Map params) {
  16. [
  17. [
  18. Label:"Project",
  19. Name:"Project",
  20. Description:"Project",
  21. ]
  22. ]
  23. }
  24. ErrorCollection doValidate(Map params, boolean forPreview) {
  25. System.out.println("GetUser.doValidate");
  26. null
  27. }
  28. void doScript() {
  29. // magic goes here
  30. println "hello sailor"
  31. }
  32. Map doScript(Map params) {
  33. System.out.println(this.class.getName());
  34. System.out.println("WontCompile.doScript");
  35. [:]
  36. }
  37. String getDescription(Map params, boolean forPreview) {
  38. "Class just used for testing"
  39. }
  40. public Boolean isFinalParamsPage(Map params) {
  41. true
  42. }
  43. }