Dan Haywood created ISIS-886:
--------------------------------

             Summary: Provide an API (perhaps in the WrapperFactory)to allow a 
programmer to determine whether the current user has view and/or modify access 
to a feature.
                 Key: ISIS-886
                 URL: https://issues.apache.org/jira/browse/ISIS-886
             Project: Isis
          Issue Type: New Feature
          Components: Core
    Affects Versions: core-1.6.0
            Reporter: Dan Haywood
            Assignee: Dan Haywood
            Priority: Minor
             Fix For: core-1.7.0


The main use case being to allow a suitable title to be rendered (in title()) 
based on the users' permissions, eg:

public String title() {
    StringBuilder buf = new StringBuilder();
    if(wrapperFactory.isVisible(buf, "firstName")) {
       buf.append(this.getFirstName());
    }
   return buf.toString();
}





--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to