com.atlassian.jira.plugin.projectoperation
Class DefaultPluggableProjectOperation

java.lang.Object
  extended by com.atlassian.jira.plugin.projectoperation.AbstractPluggableProjectOperation
      extended by com.atlassian.jira.plugin.projectoperation.DefaultPluggableProjectOperation
All Implemented Interfaces:
PluggableProjectOperation

public abstract class DefaultPluggableProjectOperation
extends AbstractPluggableProjectOperation

Class that represents a PluggableProjectOperation as something with a label and associated content.

Since:
v4.4

Field Summary
 
Fields inherited from class com.atlassian.jira.plugin.projectoperation.AbstractPluggableProjectOperation
descriptor
 
Constructor Summary
DefaultPluggableProjectOperation()
           
 
Method Summary
protected abstract  String getContentHtml(Project project, User user)
           
 String getHtml(Project project, User user)
          Get the HTML to present on screen
protected abstract  String getLabelHtml(Project project, User user)
           
 
Methods inherited from class com.atlassian.jira.plugin.projectoperation.AbstractPluggableProjectOperation
init
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.atlassian.jira.plugin.projectoperation.PluggableProjectOperation
showOperation
 

Constructor Detail

DefaultPluggableProjectOperation

public DefaultPluggableProjectOperation()
Method Detail

getHtml

public final String getHtml(Project project,
                            User user)
Description copied from interface: PluggableProjectOperation
Get the HTML to present on screen

Parameters:
project - Provide the project in case we need any project specific information to render the HTML
user - The currently logged in user
Returns:
HTML representation for this project operation.

getLabelHtml

protected abstract String getLabelHtml(Project project,
                                       User user)

getContentHtml

protected abstract String getContentHtml(Project project,
                                         User user)


Copyright © 2002-2011 Atlassian. All Rights Reserved.