Library
    
Gateways
A gateway is a set of rules or logic that work to restrict data. With a gateway you can implement controls that ensure some items are only visible in some stores, or you can restrict staff logins to specific geographic regions.
| All Products | ---» | Gateway #1 | ---» | Gateway #2 | ---» | Visible Products | 
While a gateway is conceptually like security, a gateways primary purpose is to remove excess data.
Using a Gateway to restrict products sent to stores
Each product can be connected to up to four gateways. The first gateway is specific to this product only, and the 3 gateways can be shared gateways. For a product to be transmitted to a remote store if must be approved by all gateways
| Product | Gateway 1 (private)  | Gateway 2 (shared)  | Gateway 3 (shared)  | Gateway 4 (shared)  | 
| Cheddar Cheese | StoresWithFridges | |||
| Rum Cheese | StoresWithFridges | AlcoholLicence | ||
| Cheese Voucher | AgencyStores | 
| Gateway | Controls | ||||||
| StoresWithFridges | 
                                
  | 
                        ||||||
| AlcoholLicence | 
                                
  | 
                        ||||||
| AgencyStores | 
                                
  | 
                        
- Store #1 can only see cheddar cheese, as it is allowed by the StoresWithFridges gateway
 - Store #2 can see both cheeses, as it is meets both gateway criteria
 - Store #5 cannot see any cheeses, as it is blocked by the StoresWithFridges gateway
 - All stores except 1,2,4,5,22 can see the Cheese voucher.