com.atlassian.jira.plugin.issueoperation
Class DefaultPluggableIssueOperation

java.lang.Object
  extended by com.atlassian.jira.plugin.issueoperation.DefaultPluggableIssueOperation
All Implemented Interfaces:
PluggableIssueOperation

public class DefaultPluggableIssueOperation
extends java.lang.Object
implements PluggableIssueOperation

A basic issue operation that should serve most purposes, just uses a Velocity view.

Also this is a very useful class to extend for people writing their own issue operation plugins.


Constructor Summary
DefaultPluggableIssueOperation()
           
 
Method Summary
 java.lang.String getHtml(Issue issue)
          Get the HTML for this operation.
 void init(IssueOperationModuleDescriptor descriptor)
           
 boolean showOperation(Issue issue)
          Whether or not to show this operation for the given issue.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultPluggableIssueOperation

public DefaultPluggableIssueOperation()
Method Detail

init

public void init(IssueOperationModuleDescriptor descriptor)
Specified by:
init in interface PluggableIssueOperation

getHtml

public java.lang.String getHtml(Issue issue)
Get the HTML for this operation. The following variable are available in the velocity context:
issueoperation
This class - an instance of DefaultPluggableIssueOperation
issue
This issue - an instance of Issue
descriptor
This module descriptor - an instance of IssueOperationModuleDescriptor

Specified by:
getHtml in interface PluggableIssueOperation

showOperation

public boolean showOperation(Issue issue)
Description copied from interface: PluggableIssueOperation
Whether or not to show this operation for the given issue.

Specified by:
showOperation in interface PluggableIssueOperation


Copyright © 2002-2011 Atlassian. All Rights Reserved.