Example of data, profiles, and roles
Wednesday, April 14, 2010
2:37 PM
 Data, profiles, and roles
Order record contains state variables: 
paid: 'true' if order is paid. 
shipped: 'true' if order is shipped. 
returned: 'true' if order returned. 
canceled: 'true' if order canceled. 
Profiles: customer, billing, shipping
customer creates Order record, which is partially writeable to billing and shipping.  
billing can change 'paid' or 'cancelled' to true in order record, but cannot change the order itself.
shipping can change 'shipped' or 'returned' to true in order record, but cannot change whether it is paid. 
customer can only see personal records; 
billing and shipping can see all records. 