ten24/Slatwall — Issue #530: Proposed Restriction of "Type" values in Entities
Author: bhendel
Created: 2012-01-09 18:49:20+00:00
State: open
Labels: Feature Request

I propose that when an entity (such as StockAdjustment) has a type property that should ONLY accept a value in a fixed list of possible values, that we override the setType() method, check the provided value against a list of acceptable values, throw an exception if the provided type is not acceptable, or call super.setType() otherwise.

This provides a guarantee of proper values, and self documenting code (the list in the method or non-persistent property defines the list of value).