- Timestamp:
- Feb 8, 2010, 3:43:08 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/controllers/AssetDetailedController.groovy
r318 r325 17 17 def index = { redirect(action:search,params:params) } 18 18 19 def importAssetTree = { 20 } 21 19 /** 20 * Build and return the asset tree response for the AJAX request. 21 */ 22 @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_AssetManager', 'ROLE_AssetUser']) 22 23 def assetTree = { 23 24 def s = assetTreeService.buildAssetTree(params, session) … … 28 29 * Save the asset tree status in the current http session. 29 30 */ 31 @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_AssetManager', 'ROLE_AssetUser']) 30 32 def saveAssetTreeStatus = { 31 33 session.assetTreeVisibleBranches = params.assetTreeVisibleBranches 32 34 } 33 35 36 /** 37 * Disaply the import view. 38 */ 39 def importAssetTree = { 40 } 41 42 /** 43 * Handle the import save. 44 */ 34 45 def importAssetTreeSave = { 35 46 def result = csvService.importAssetTree(request) … … 56 67 } 57 68 69 /** 70 * Export a csv test file. 71 */ 58 72 def exportAssetTreeTest = { 59 73 response.contentType = ConfigurationHolder.config.grails.mime.types["csv"] … … 64 78 65 79 /** 66 * Export the entire asset tree .80 * Export the entire asset tree as a csv file. 67 81 */ 68 82 @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_AssetManager', 'ROLE_AssetUser']) … … 92 106 def search = { 93 107 94 if(session. taskSearchParamsMax)95 params.max = session. taskSearchParamsMax108 if(session.assetSearchParamsMax) 109 params.max = session.assetSearchParamsMax 96 110 97 111 params.max = Math.min( params.max ? params.max.toInteger() : 10, 1000)
Note: See TracChangeset
for help on using the changeset viewer.