View Javadoc

1   package com.atlassian.jira.service;
2   
3   import java.util.List;
4   
5   import com.atlassian.jira.issue.MutableIssue;
6   
7   /**
8    * @FQCN : com.atlassian.jira.service.IResquestAwareService
9    * @description : Defines method for All Services based on Request
10   * @author kaamelot
11   * @since 3.x.1.34 
12   */
13  public interface IResquestAwareService {
14  
15  	public final static String REQUEST_KEY = "REQUEST";
16  
17  	public final static String SEARCHER_KEY = "SEARCHER";
18  
19  	/** Performs Validation before running  the Service
20  	 * @throws ServiceException
21  	 */
22  	public void validate() throws ServiceException;
23  
24  	/**
25  	 * Core of the Service
26  	 * @throws ServiceException
27  	 */
28  	public void runService() throws ServiceException;
29  
30  	/**
31  	 * @param _issues List of Issue concerned by the Services
32  	 * @throws ServiceException
33  	 */
34  	public void runServiceOnIssues(final List _issues) throws ServiceException;
35  
36  	/**
37  	 * @param _issue Issue on which the Service has to perform something !
38  	 * @throws ServiceException
39  	 */
40  	public void runServiceOnIssue(final MutableIssue _issue) throws ServiceException;
41  
42  }