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

/src/main/groovy/com/onresolve/jira/groovy/listener/GroovyListener.groovy

https://bitbucket.org/sorin/jira-plugin-intellij
Groovy | 106 lines | 65 code | 41 blank | 0 comment | 1 complexity | 3736d4c4796d2f2882cae68ca8a404ff MD5 | raw file
  1. package com.onresolve.jira.groovy.listener
  2. import com.atlassian.jira.event.issue.AbstractIssueEventListener
  3. import com.atlassian.jira.event.issue.IssueEvent
  4. import com.atlassian.jira.event.issue.IssueEventListener
  5. import org.apache.log4j.Category
  6. public class GroovyListener extends AbstractIssueEventListener {
  7. final static String PARAM_CLASS = "class"
  8. Category log = Category.getInstance(GroovyListener.class)
  9. IssueEventListener delegate
  10. void issueCreated(IssueEvent event) {
  11. }
  12. void reInit() {
  13. }
  14. void reInit(String className) {
  15. log.debug("reInit stubbed")
  16. return
  17. }
  18. void init(Map params) {
  19. if (!params[PARAM_CLASS]) {
  20. log.warn("Please configure this listener by providing a valid class, eg com.acme.MyListener")
  21. }
  22. }
  23. String[] getAcceptedParams() {
  24. return [PARAM_CLASS] as String[]
  25. }
  26. @Override
  27. void issueStarted(IssueEvent event) {
  28. }
  29. @Override
  30. void issueStopped(IssueEvent event) {
  31. }
  32. String getDescription() {
  33. "Groovy listener. Enter the package and class name of your groovy file, eg com.acme.MyListener"
  34. }
  35. boolean isInternal() {
  36. return false
  37. }
  38. void issueUpdated(IssueEvent event) {
  39. }
  40. void issueAssigned(IssueEvent event) {
  41. }
  42. void issueResolved(IssueEvent event) {
  43. }
  44. void issueClosed(IssueEvent event) {
  45. }
  46. void issueCommented(IssueEvent event) {
  47. }
  48. void issueReopened(IssueEvent event) {
  49. }
  50. void issueDeleted(IssueEvent event) {
  51. }
  52. void issueMoved(IssueEvent event) {
  53. }
  54. void issueWorkLogged(IssueEvent event) {
  55. }
  56. void issueGenericEvent(IssueEvent event) {
  57. }
  58. void workflowEvent(IssueEvent event) {
  59. }
  60. void customEvent(IssueEvent event) {
  61. }
  62. boolean isUnique() {
  63. return false
  64. }
  65. }