com.atlassian.studio.jira.project.deleter
Class JiraProjectDeleter

java.lang.Object
  extended by com.atlassian.studio.jira.project.deleter.JiraProjectDeleter
All Implemented Interfaces:
ProjectOperation

public class JiraProjectDeleter
extends Object
implements ProjectOperation

JIRA project deleter. Doesn't really have to do anything because the web-action has already done all the hard work. It's really only here to tie in nicely with the service.


Constructor Summary
JiraProjectDeleter(com.atlassian.sal.api.message.I18nResolver i18nResolver)
           
 
Method Summary
 List<ProjectOperationResult> doOperation(JiraServiceContext jiraServiceContext, com.atlassian.studio.core.navbar.api.project.StudioProject project, com.atlassian.applinks.core.AppLinksManager appLinksManager)
          This method will carry out a project operation in the implementation specific application instance as located by the AppLinksManager instance.
 com.atlassian.applinks.core.Application getApplication()
           
 boolean validate(JiraServiceContext jiraServiceContext, com.atlassian.studio.core.navbar.api.project.StudioProject project, com.atlassian.applinks.core.AppLinksManager appLinksManager)
          Performs application specific validate to determine if a project operation can successfully be carried out (e.g.
 boolean validateConnection(JiraServiceContext jiraServiceContext, com.atlassian.applinks.core.AppLinksManager appLinksManager)
          This method should try to ensure that the application is available for the project operation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JiraProjectDeleter

public JiraProjectDeleter(com.atlassian.sal.api.message.I18nResolver i18nResolver)
Method Detail

validateConnection

public boolean validateConnection(JiraServiceContext jiraServiceContext,
                                  com.atlassian.applinks.core.AppLinksManager appLinksManager)
Description copied from interface: ProjectOperation
This method should try to ensure that the application is available for the project operation.

Specified by:
validateConnection in interface ProjectOperation
Parameters:
jiraServiceContext - the context that the call is made from, contains the User and ErrorCollection, must not contain a null errorCollection
appLinksManager - provides context so that the details of the where the application lives can be resolved.
Returns:
true if the application is able to perform the operation, false otherwise.

validate

public boolean validate(JiraServiceContext jiraServiceContext,
                        com.atlassian.studio.core.navbar.api.project.StudioProject project,
                        com.atlassian.applinks.core.AppLinksManager appLinksManager)
Description copied from interface: ProjectOperation
Performs application specific validate to determine if a project operation can successfully be carried out (e.g. an authentication check, unique project key checks, etc).

Specified by:
validate in interface ProjectOperation
Parameters:
jiraServiceContext - the context that the call is made from, contains the User and ErrorCollection, must not contain a null errorCollection
project - contains the details of the project affected by this operation
appLinksManager - provides context so that the details of the where the application lives can be resolved.
Returns:
true if you can successfully carry out this project operation, false otherwise. The errorCollection should contain any specific messages regarding why the validation failed.

doOperation

public List<ProjectOperationResult> doOperation(JiraServiceContext jiraServiceContext,
                                                com.atlassian.studio.core.navbar.api.project.StudioProject project,
                                                com.atlassian.applinks.core.AppLinksManager appLinksManager)
Description copied from interface: ProjectOperation
This method will carry out a project operation in the implementation specific application instance as located by the AppLinksManager instance.

Specified by:
doOperation in interface ProjectOperation
Parameters:
jiraServiceContext - the context that the call is made from, contains the User and ErrorCollection
project - contains the details of the project
appLinksManager - provides context so that the details of the where the application lives can be resolved.
Returns:
The results of the project operation, ProjectOperationResult

getApplication

public com.atlassian.applinks.core.Application getApplication()
Specified by:
getApplication in interface ProjectOperation
Returns:
the application this operation affects


Copyright © 2002-2012 Atlassian. All Rights Reserved.