com.atlassian.jira.dev.reference.plugin.project
Class ProjectOperation

java.lang.Object
  extended by com.atlassian.jira.plugin.projectoperation.AbstractPluggableProjectOperation
      extended by com.atlassian.jira.dev.reference.plugin.project.ProjectOperation
All Implemented Interfaces:
PluggableProjectOperation

public class ProjectOperation
extends AbstractPluggableProjectOperation

Simple tests class for project operation.

Since:
v4.4

Field Summary
 
Fields inherited from class com.atlassian.jira.plugin.projectoperation.AbstractPluggableProjectOperation
descriptor
 
Constructor Summary
ProjectOperation(PermissionManager permissionManager)
           
 
Method Summary
 String getHtml(Project project, com.atlassian.crowd.embedded.api.User user)
          Get the HTML to present on screen
 boolean showOperation(Project project, com.atlassian.crowd.embedded.api.User user)
          Whether or not to show this operation for the given project and 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
 

Constructor Detail

ProjectOperation

public ProjectOperation(PermissionManager permissionManager)
Method Detail

getHtml

public 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.

showOperation

public boolean showOperation(Project project,
                             com.atlassian.crowd.embedded.api.User user)
Description copied from interface: PluggableProjectOperation
Whether or not to show this operation for the given project and user.

Parameters:
project - Project being viewed
user - The currently logged in user
Returns:
true, if the link should be shown


Copyright © 2002-2012 Atlassian. All Rights Reserved.