2 Replies Latest reply on Mar 8, 2011 7:46 PM by snkd

    Flex User Level Handling

    snkd Level 1

      Hi all,

      is there a profesional way of doing handling diffrent user levels.I mean suppose there are some work classes.L1,L2 L3..somthing like that.

      then,

      L1 user can do every function (add edit delete)

      L2 user can do some functions only..(add.edit)

      L3 user can do some functions only..(add only)

      how can I control it in a proffesional mannar?

      Any responses are appreciated...

        • 1. Re: Flex User Level Handling
          jd_ice Level 1

          You can use state to give the user the appropriate UI for a certain level. See for example you have a super admin state that has all the controls (e.i add, edit, delete, etc...), an admin state which will only see controls like add, edit, etc..

          • 2. Re: Flex User Level Handling
            snkd Level 1

            thnx for the answer.but problem is not solved.that is a some kind of hard codring way.If i need to change previlages then what should I do? I have to change the code.I think that is not profesional way.I need more advanced something.I read about chimp framework which is a permision based security framework but I didn't found how to dinamically define permisions.

             

            <fx:Metadata>
                    [Protected(permissions="user",notInPermissionAction="disable",componentId="btnAdd")]
                    [Protected(permissions="user",notInPermissionAction="disable",componentId="fmAdmin")]
                    [Protected(permissions="user",notInPermissionAction="disable",componentId="fmUser")]
                </fx:Metadata>

            Above is the way of deling with chimp security framwork.

             

            I need to genarate above meta data dinamically. How can I do that?

            In my case user,diable,btnAdd are variables in my case how can I do that.