Ignore:
Timestamp:
Feb 18, 2010, 3:42:40 AM (15 years ago)
Author:
gav
Message:

Svn move InventoryGroup controller and views to detailed and complete detailing.

File:
1 moved

Legend:

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

    r361 r380  
    11import org.codehaus.groovy.grails.plugins.springsecurity.Secured
    22
    3 class InventoryGroupController extends BaseAppAdminController {
    4    
     3@Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_InventoryManager'])
     4class InventoryGroupDetailedController extends BaseController {
     5
     6    @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_InventoryManager', 'ROLE_InventoryUser'])
    57    def index = { redirect(action:list,params:params) }
    68
     
    810    static allowedMethods = [delete:'POST', save:'POST', update:'POST']
    911
     12    @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_InventoryManager', 'ROLE_InventoryUser'])
    1013    def list = {
    1114        params.max = Math.min( params.max ? params.max.toInteger() : 10,  100)
     
    1316    }
    1417
     18    @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_InventoryManager', 'ROLE_InventoryUser'])
    1519    def show = {
     20
     21        // In the case of an actionSubmit button, rewrite action name from 'index'.
     22        if(params._action_Show)
     23            params.action='show'
     24
    1625        def inventoryGroupInstance = InventoryGroup.get( params.id )
    1726
     
    4352
    4453    def edit = {
     54
     55        // In the case of an actionSubmit button, rewrite action name from 'index'.
     56        if(params._action_Edit)
     57            params.action='edit'
     58
    4559        def inventoryGroupInstance = InventoryGroup.get( params.id )
    4660
Note: See TracChangeset for help on using the changeset viewer.