hudson.plugins.nsiq
Class NSiqProjectAction

java.lang.Object
  extended by hudson.model.AbstractModelObject
      extended by hudson.model.Actionable
          extended by hudson.plugins.nsiq.NSiqProjectAction
All Implemented Interfaces:
hudson.model.Action, hudson.model.ModelObject, hudson.model.ProminentProjectAction, hudson.search.SearchableModelObject, hudson.search.SearchItem

public class NSiqProjectAction
extends hudson.model.Actionable
implements hudson.model.ProminentProjectAction

ProjectAction은 Hudson에서 각 프로젝트의 이름을 클릭했을 때 나타나는 페이지에 관한 action이다.
주로 그래프 및 간단한 설명을 하는 데 사용된다.

Version:
$Rev$, $Date$
Author:
iceize at NHN Corporation

Constructor Summary
NSiqProjectAction(hudson.model.Project<?,?> project)
           
 
Method Summary
 void doIndex(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
          프로젝트에 대해 빌드한 적이 없다면 nodata.jelly 페이지를 보여주고, 빌드한 적이 있으면, 최근에 성공한 빌드 번호에 대한 결과 페이지로 연결한다.
 hudson.util.Graph getComplexityGraph()
          성공한 빌드가 있다면, 최근 성공 빌드를 기준으로 한 복잡도 그래프를 표시한다.
참고로, 프로젝트 이름이 "abc" 이면, 그래프 URL은 "abc/complexityGraph" 이다.
 java.lang.String getDisplayName()
          플러그인의 이름을 리턴한다.
 java.lang.String getIconFileName()
          아이콘의 이름을 리턴한다.
 NSiqBuildAction getLastResult()
          해당 프로젝트의 가장 최근 성공한 빌t드에 대한 NSiqBuildAction 인스턴스를 리턴한다.
 java.lang.Integer getLastResultBuild()
          가장 최근에 성공한 빌드 번호를 리턴한다.
 hudson.util.Graph getLocDistGraph()
           
 hudson.util.Graph getLocGraph()
          성공한 빌드가 있다면, 최근 성공 빌드를 기준으로 한 LOC 그래프를 표시한다.
참고로, 프로젝트 이름이 "abc" 이면, 그래프 URL은 "abc/locGraph" 이다.
 hudson.model.Project<?,?> getOwner()
           
 hudson.model.Project<?,?> getProject()
           
 java.lang.String getSearchUrl()
           
 java.lang.String getUrlName()
          페이지에서 플러그인의 이름을 클릭했을 때 연결되는 URL을 리턴한다.
 boolean isComplexityView()
           
 boolean isLocView()
           
 
Methods inherited from class hudson.model.Actionable
addAction, getAction, getAction, getActions, getActions, getDynamic
 
Methods inherited from class hudson.model.AbstractModelObject
getSearch, getSearchIndex, getSearchName, makeSearchIndex, requirePOST, sendError, sendError, sendError, sendError, sendError
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NSiqProjectAction

public NSiqProjectAction(hudson.model.Project<?,?> project)
Method Detail

getProject

public hudson.model.Project<?,?> getProject()

getOwner

public hudson.model.Project<?,?> getOwner()

getDisplayName

public java.lang.String getDisplayName()
플러그인의 이름을 리턴한다.

Specified by:
getDisplayName in interface hudson.model.Action
Specified by:
getDisplayName in interface hudson.model.ModelObject

getIconFileName

public java.lang.String getIconFileName()
아이콘의 이름을 리턴한다.

Specified by:
getIconFileName in interface hudson.model.Action

getUrlName

public java.lang.String getUrlName()
페이지에서 플러그인의 이름을 클릭했을 때 연결되는 URL을 리턴한다.

Specified by:
getUrlName in interface hudson.model.Action

getSearchUrl

public java.lang.String getSearchUrl()
Specified by:
getSearchUrl in interface hudson.search.SearchItem

isLocView

public boolean isLocView()

isComplexityView

public boolean isComplexityView()

getLastResult

public NSiqBuildAction getLastResult()
해당 프로젝트의 가장 최근 성공한 빌t드에 대한 NSiqBuildAction 인스턴스를 리턴한다.


getLocDistGraph

public hudson.util.Graph getLocDistGraph()

getLocGraph

public hudson.util.Graph getLocGraph()
성공한 빌드가 있다면, 최근 성공 빌드를 기준으로 한 LOC 그래프를 표시한다.
참고로, 프로젝트 이름이 "abc" 이면, 그래프 URL은 "abc/locGraph" 이다.


getComplexityGraph

public hudson.util.Graph getComplexityGraph()
성공한 빌드가 있다면, 최근 성공 빌드를 기준으로 한 복잡도 그래프를 표시한다.
참고로, 프로젝트 이름이 "abc" 이면, 그래프 URL은 "abc/complexityGraph" 이다.


getLastResultBuild

public java.lang.Integer getLastResultBuild()
가장 최근에 성공한 빌드 번호를 리턴한다.


doIndex

public void doIndex(org.kohsuke.stapler.StaplerRequest req,
                    org.kohsuke.stapler.StaplerResponse rsp)
             throws java.io.IOException
프로젝트에 대해 빌드한 적이 없다면 nodata.jelly 페이지를 보여주고, 빌드한 적이 있으면, 최근에 성공한 빌드 번호에 대한 결과 페이지로 연결한다.

Throws:
java.io.IOException


Copyright © 2004-2011. All Rights Reserved.