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, com.atlassian.crowd.embedded.api.User user)
           
 String getHtml(Project project, com.atlassian.crowd.embedded.api.User user)
          Get the HTML to present on screen
protected abstract  String getLabelHtml(Project project, com.atlassian.crowd.embedded.api.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,
                            com.atlassian.crowd.embedded.api.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,
                                       com.atlassian.crowd.embedded.api.User user)

getContentHtml

protected abstract String getContentHtml(Project project,
                                         com.atlassian.crowd.embedded.api.User user)


Copyright © 2002-2014 Atlassian. All Rights Reserved.