Changeset 688 for trunk/grails-app/controllers
- Timestamp:
- Oct 6, 2010, 4:23:46 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/controllers/AppCoreController.groovy
r687 r688 9 9 10 10 def authService 11 def assetService 11 12 def appConfigService 12 13 def createDataService 13 14 def searchableService 15 def assetSubItemService 14 16 def createBulkDataService 15 17 … … 269 271 } 270 272 273 /** 274 * Allow admin to create recommended extended attributes for assets. 275 */ 276 @Secured(['ROLE_AppAdmin']) 277 def createRecommendedAssetExtendedAttributes = { 278 def result = assetService.createRecommendedExtendedAttributes() 279 if(!result.error) { 280 flash.message = g.message(code:"default.create.success", args:["Extended attributes created", '']) 281 redirect(action: appAdmin) 282 return 283 } 284 285 flash.errorMessage = g.message(code: result.error.code, args: result.error.args) 286 redirect(action: appAdmin) 287 } 288 289 /** 290 * Allow admin to create recommended extended attributes for level 1 assetSubItems. 291 */ 292 @Secured(['ROLE_AppAdmin']) 293 def createRecommendedAssetSubItemExtendedAttributes = { 294 def result = assetSubItemService.createRecommendedExtendedAttributes() 295 if(!result.error) { 296 flash.message = g.message(code:"default.create.success", args:["Extended attributes created", '']) 297 redirect(action: appAdmin) 298 return 299 } 300 301 flash.errorMessage = g.message(code: result.error.code, args: result.error.args) 302 redirect(action: appAdmin) 303 } 304 271 305 } // end of class.
Note: See TracChangeset
for help on using the changeset viewer.