You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@isis.apache.org by "Dan Haywood (JIRA)" <ji...@apache.org> on 2014/09/26 19:52:34 UTC

[jira] [Resolved] (ISIS-886) 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.

     [ https://issues.apache.org/jira/browse/ISIS-886?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dan Haywood resolved ISIS-886.
------------------------------
    Resolution: Fixed

documentation fix... http://isis.apache.org/more-advanced-topics/how-to-hide-part-of-a-title.html

> 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:
> {code}
> public String title() {
>     StringBuilder buf = new StringBuilder();
>     if(wrapperFactory.isHidden(this, "firstName")) {
>        buf.append(this.getFirstName());
>     }
>    return buf.toString();
> }
> {code}
> and isDisabled(...) similarly



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