- Timestamp:
- 08/09/10 10:51:45 (22 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
ssme/trunk/flex/Common/src/com/kh/ssme/entity/UserEntity.as
r4036 r4037 100 100 for(i = 0; i<json[ownedGroups_field].length; i++){ 101 101 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 ); 104 104 } 105 105 } else { 106 106 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] ); 109 109 } 110 110 } … … 118 118 for(i = 0; i<json[roles_field].length; i++){ 119 119 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 ); 122 122 } 123 123 } else { 124 124 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] ); 127 127 } 128 128 } … … 136 136 for(i = 0; i<json[calendars_field].length; i++){ 137 137 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 ); 140 140 } 141 141 } else { 142 142 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] ); 145 145 } 146 146 } … … 190 190 public override function parseJSONString(json:String, recursive:int = 0):* { 191 191 var jsonEntity:Object = JSONObject.decode(json); 192 return parseJSONObject( jsonEntity );192 return parseJSONObject( jsonEntity, recursive ); 193 193 } 194 194 … … 197 197 var result:String = JSONObject.encode( jsonObject ); 198 198 return result; 199 } 199 } 200 200 201 201 }
