applyAttributeAccess
public void applyAttributeAccess(Frame frame,
boolean reset,
Entity... entities)
Apply attribute access rules to a given frame according to the state of the given entities. All passed entities
will be sent to the middleware and their security state will be recalculated. All screen components
bound to datasources will adjust their visible/read-only/required state according to security state of entity
instances contained in the datasources.
- Parameters:
entities
- list of instances that should recalculate their security state
frame
- frame or screen
reset
- whether to reset the components to the default state specified by role-based security and model
annotations. If you invoke this method to apply attribute access to already opened screen, set
the parameter to true, but keep in mind that previous programmatic changes in the components
visible/read-only/required state will be lost.