com.atlassian.jira.servlet
Class QuickLinkHelper

java.lang.Object
  extended by com.atlassian.jira.servlet.QuickLinkHelper

public class QuickLinkHelper
extends Object

Helper class that takes path info and extract the information about project, version and component from it.

Since:
3.10

Constructor Summary
QuickLinkHelper(String pathInfo)
          Constructs this instance and extracts project key, version id and component id and stores it locally, so they can be accessed via getProjectKey(), getVersionId() and getComponentId() methods.
 
Method Summary
 Long getComponentId()
           
 String getProjectKey()
           
 Long getVersionId()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QuickLinkHelper

public QuickLinkHelper(String pathInfo)
Constructs this instance and extracts project key, version id and component id and stores it locally, so they can be accessed via getProjectKey(), getVersionId() and getComponentId() methods.

Parameters:
pathInfo - path info from request
Throws:
IllegalArgumentException - if given pathInfo is null or less than 2 characters
Method Detail

getProjectKey

public String getProjectKey()

getVersionId

public Long getVersionId()

getComponentId

public Long getComponentId()


Copyright © 2002-2009 Atlassian. All Rights Reserved.