com.atlassian.jira.dev.reference.plugin.project
Class ProjectOperation
java.lang.Object
com.atlassian.jira.plugin.projectoperation.AbstractPluggableProjectOperation
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
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ProjectOperation
public ProjectOperation(PermissionManager permissionManager)
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 HTMLuser
- 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 vieweduser
- The currently logged in user
- Returns:
- true, if the link should be shown
Copyright © 2002-2014 Atlassian. All Rights Reserved.