View Javadoc

1   package com.atlassian.jira.issue.action;
2   
3   import java.sql.Timestamp;
4   import java.util.Date;
5   import java.util.Map;
6   
7   import com.atlassian.jira.plugin.JiraResourcedModuleDescriptor;
8   import com.atlassian.jira.plugin.issuetabpanel.AbstractIssueAction;
9   import com.atlassian.jira.plugin.issuetabpanel.IssueTabPanelModuleDescriptor;
10  import com.atlassian.jira.plugin.workflow.JiraWorkflowPluginConstants;
11  import com.opensymphony.user.User;
12  
13  /**
14   * Provides a Generic Ressource Action for Plugins
15   * 
16   * @author Kaamelot - 2006
17   * @history - 08 Nov. 2006 - Class Creation
18   * 
19   */
20  public class GenericResourceAction extends AbstractIssueAction {
21  
22  
23  //    public GenericResourceAction(JiraResourcedModuleDescriptor descriptor)
24  //    {
25  ////        super(remoteUser);
26  //        this.descriptor = descriptor;
27  //    }
28  	
29  	public GenericResourceAction(IssueTabPanelModuleDescriptor descriptor) {
30  		super(descriptor);
31  	}
32  
33  	protected void populateVelocityParams(Map _params) {
34  		// Nothing to do 
35  	}
36  
37  	protected String getTemplateName() {
38  		return getDescriptor().getResourceDescriptor(JiraWorkflowPluginConstants.RESOURCE_TYPE_VELOCITY, "view").getLocation();
39  	}
40  
41  	protected String getTemplateDirectory() {
42  		return "";
43  	}
44  
45  	public Object getId() {
46  		throw new UnsupportedOperationException();
47  	}
48  
49  	public String getLevel() {
50  		throw new UnsupportedOperationException();
51  	}
52  
53  	public Date getTimePerformed() {
54  		throw new UnsupportedOperationException();
55  	}
56  
57  	public String getType() {
58  		throw new UnsupportedOperationException();
59  	}
60  
61  	public String getUsername() {
62  		throw new UnsupportedOperationException();
63  	}
64  
65  	public JiraResourcedModuleDescriptor getDescriptor() {
66  		return descriptor;
67  	}
68  	
69  }