Ignore:
Timestamp:
Mar 26, 2010, 2:24:23 AM (14 years ago)
Author:
gav
Message:

Add exportAssetTreeHtml to AssetDetailedController.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/controllers/AssetDetailedController.groovy

    r429 r459  
    3939    @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_AssetManager', 'ROLE_AssetUser'])
    4040    def assetTree = {
     41        def s = assetTreeService.buildAssetTree(params, session)
     42        render s
     43    }
     44
     45    @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_AssetManager', 'ROLE_AssetUser'])
     46    def exportAssetTreeHtml = {
     47        response.contentType = ConfigurationHolder.config.grails.mime.types["csv"]
     48        response.setHeader("Content-disposition", "attachment; filename=AssetTree.html")
    4149        def s = assetTreeService.buildAssetTree(params, session)
    4250        render s
Note: See TracChangeset for help on using the changeset viewer.