In a call center application one of the key/core aspects is the user entitlements which determine given a user what can and cannot this user do.
Another reason for an action to be available can depend on the entity which that action belongs to. For example you might not to edit a policy if the policy is already closed.
So that's two different reasons to determine if action is available: the entitlement and the action entity or context in which the action is carried over. Its quite possible that these reason are handled in different ways. Entitlement failure, can be handled simply by hiding the functionality. While context failure can be handled with an informative error message.
Again is important to determine same simple error code object which allow to handle the failure in different ways.
Again this can fit within the generic validator, handler approach. Where a composed validator can be created, and them invoked by passing the handler which can be composed one too;one generic handler which handles the failure hiding a parametrized form component. And one popup error message handler which displays the failure message for the context failure.
martes, 29 de septiembre de 2015
Action entitlement manager
Suscribirse a:
Enviar comentarios (Atom)
No hay comentarios:
Publicar un comentario