I am working on an application in which we are doing our best to separate the separation of problems. We find that end-to-end safety concerns create a number of complications.
However, it seems that they can be mitigated using attributes and aspect-oriented programming.
I understand this in relation to aspects of the domain code, but what if you want to apply it to user interface elements? For example, what should I do if I do not want to display a button when the user does not have permission to execute this function?
In our MVC application, at this point we will have to write (pseudocode follows):
<% if (user.CanSeeSomeData) { <%=Html.TextBox("MyTextBox") } %>
But we would like to manage the display with attributes a la AOP, if possible.
Any ideas?
Also, if there are third-party open source tools that would be helpful, these suggestions are welcome.
aop asp.net-mvc domain-driven-design
jlembke
source share