com.atlassian.bamboo.build
Class ViewBuildFiles

java.lang.Object
  extended by ActionSupport
      extended by com.atlassian.bamboo.ww2.BambooActionSupport
          extended by com.atlassian.bamboo.webwork.AbstractAction
              extended by com.atlassian.bamboo.build.AbstractBuildAction
                  extended by com.atlassian.bamboo.build.ViewBuildFiles
All Implemented Interfaces:
ErrorCollection, BambooSessionAware, BuildAware, ReturnUrlAware

public class ViewBuildFiles
extends AbstractBuildAction

This action lets a user browse the build files.


Field Summary
 
Fields inherited from class com.atlassian.bamboo.ww2.BambooActionSupport
buildManager, CONFIRM, cookieCutter
 
Constructor Summary
ViewBuildFiles()
           
 
Method Summary
 String doExecute()
          Places the current user on the page
 String doPurge()
          Delete the build's working files
 Date formatAsDate(long l)
           
 String formatFileSize(long l)
           
 String getDirectory()
           
 File[] getFiles()
           
 List getSourceCodeBreadcrumb()
           
 void setDirectory(String directory)
           
 
Methods inherited from class com.atlassian.bamboo.build.AbstractBuildAction
getBuild, getBuildKey, getBuildName, getCurrentlyRunningBuild, getPluginManager, getPluginMenuItems, setBuild, setBuildKey, setBuildName, setPluginManager
 
Methods inherited from class com.atlassian.bamboo.webwork.AbstractAction
addFormErrors, doDefault, execute, getAction, getAdministrationConfiguration, getBamboo, getBaseUrl, setAdministrationConfiguration, validate
 
Methods inherited from class com.atlassian.bamboo.ww2.BambooActionSupport
addError, addError, addErrorCollection, addErrorMessage, addErrorMessages, addErrors, addIllegalArgumentException, doesLabelKeyHaveMatchingDescription, getAsPreformattedText, getBambooSession, getBreadCrumbs, getBuildManager, getConglomerateCookieValue, getCookieCutter, getCookieValue, getCurrentUrl, getDescriptionFromLabelKey, getFlushedErrorMessages, getReturnUrl, getUser, getWebItemsForSection, getWebResourceManager, getWebSectionsForLocation, hasAnyErrors, hasBuilds, hasPerm, isEnableSignup, isSelectFieldAndNull, setAuthenticationContext, setBambooPermissionManager, setBuildManager, setCookieCutter, setErrorMessages, setHtmlUtils, setReturnUrl, setWebInterfaceManager, setWebResourceManager
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.atlassian.bamboo.utils.error.ErrorCollection
getErrorMessages, getErrors, getFieldErrors
 

Constructor Detail

ViewBuildFiles

public ViewBuildFiles()
Method Detail

getDirectory

public String getDirectory()

setDirectory

public void setDirectory(String directory)

doExecute

public String doExecute()
                 throws Exception
Description copied from class: AbstractAction
Places the current user on the page

Overrides:
doExecute in class AbstractAction
Returns:
webwork success status
Throws:
Exception - something nasty went wrong

doPurge

public String doPurge()
               throws Exception
Delete the build's working files

Returns:
The webwork page status
Throws:
Exception - A generic failure

getFiles

public File[] getFiles()

formatFileSize

public String formatFileSize(long l)

formatAsDate

public Date formatAsDate(long l)

getSourceCodeBreadcrumb

public List getSourceCodeBreadcrumb()
                             throws Exception
Throws:
Exception


Copyright © 2006 Atlassian Software Systems. All Rights Reserved.