Show
Ignore:
Timestamp:
08/09/10 10:51:45 (22 months ago)
Author:
mszopinski
Message:

calendar, simple display

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • ssme/trunk/flex/Common/src/com/kh/ssme/entity/UserEntity.as

    r4036 r4037  
    100100                    for(i = 0; i<json[ownedGroups_field].length; i++){ 
    101101                        ogrp = (new GroupEntity()).parseJSONObject( (json[ownedGroups_field][i]), recursive-1 ); 
    102                         groupsEntities.put( ogrp.UUID, ogrp ); 
    103                         groupsNames.put( ogrp.UUID, ogrp.name ); 
     102                        ownedGroupsEntities.put( ogrp.UUID, ogrp ); 
     103                        ownedGroupsNames.put( ogrp.UUID, ogrp.name ); 
    104104                    } 
    105105                } else { 
    106106                    for(i = 0; i<json[ownedGroups_field].length; i++){ 
    107                         groupsEntities.put( (json[ownedGroups_field][i])[uuid_field], null ); 
    108                         groupsNames.put( (json[ownedGroups_field][i])[uuid_field], (json[ownedGroups_field][i])[readableName_field] ); 
     107                        ownedGroupsEntities.put( (json[ownedGroups_field][i])[uuid_field], null ); 
     108                        ownedGroupsNames.put( (json[ownedGroups_field][i])[uuid_field], (json[ownedGroups_field][i])[readableName_field] ); 
    109109                    } 
    110110                } 
     
    118118                    for(i = 0; i<json[roles_field].length; i++){ 
    119119                        role = (new RoleEntity()).parseJSONObject( (json[roles_field][i]), recursive-1 ); 
    120                         groupsEntities.put( role.UUID, role ); 
    121                         groupsNames.put( role.UUID, role.role ); 
     120                        rolesEntities.put( role.UUID, role ); 
     121                        rolesNames.put( role.UUID, role.role ); 
    122122                    } 
    123123                } else { 
    124124                    for(i = 0; i<json[roles_field].length; i++){ 
    125                         groupsEntities.put( (json[roles_field][i])[uuid_field], null ); 
    126                         groupsNames.put( (json[roles_field][i])[uuid_field], (json[roles_field][i])[readableName_field] ); 
     125                        rolesEntities.put( (json[roles_field][i])[uuid_field], null ); 
     126                        rolesNames.put( (json[roles_field][i])[uuid_field], (json[roles_field][i])[readableName_field] ); 
    127127                    } 
    128128                } 
     
    136136                    for(i = 0; i<json[calendars_field].length; i++){ 
    137137                        cal = (new CalendarEntity()).parseJSONObject( (json[calendars_field][i]), recursive-1 ); 
    138                         groupsEntities.put( cal.UUID, cal ); 
    139                         groupsNames.put( cal.UUID, cal.name ); 
     138                        calendarsEntities.put( cal.UUID, cal ); 
     139                        calendarsNames.put( cal.UUID, cal.name ); 
    140140                    } 
    141141                } else { 
    142142                    for(i = 0; i<json[calendars_field].length; i++){ 
    143                         groupsEntities.put( (json[calendars_field][i])[uuid_field], null ); 
    144                         groupsNames.put( (json[calendars_field][i])[uuid_field], (json[calendars_field][i])[readableName_field] ); 
     143                        calendarsEntities.put( (json[calendars_field][i])[uuid_field], null ); 
     144                        calendarsNames.put( (json[calendars_field][i])[uuid_field], (json[calendars_field][i])[readableName_field] ); 
    145145                    } 
    146146                } 
     
    190190        public override function parseJSONString(json:String, recursive:int = 0):* { 
    191191            var jsonEntity:Object = JSONObject.decode(json); 
    192             return parseJSONObject( jsonEntity ); 
     192            return parseJSONObject( jsonEntity, recursive ); 
    193193        } 
    194194 
     
    197197            var result:String = JSONObject.encode( jsonObject ); 
    198198            return result; 
    199         }            
     199        }         
    200200 
    201201    }