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/10 16:56:28 UTC

[jira] [Created] (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.

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)

Re: [jira] [Created] (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.

Posted by GESCONSULTOR - Óscar Bou <o....@gesconsultor.com>.
For coherence with the programming model, shouldn't be better to have isDisabled() and isHidden (vs isVisible)?

Regards,

Oscar



El 10/09/2014, a las 16:56, Dan Haywood (JIRA) <ji...@apache.org> escribió:

> 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)


Óscar Bou Bou
Responsable de Producto
Auditor Jefe de Certificación ISO 27001 en BSI
CISA, CRISC, APMG ISO 20000, ITIL-F

   902 900 231 / 620 267 520
   http://www.twitter.com/oscarbou

   http://es.linkedin.com/in/oscarbou

   http://www.GesConsultor.com 




Este mensaje y los ficheros anexos son confidenciales. Los mismos contienen información reservada que no puede ser difundida. Si usted ha recibido este correo por error, tenga la amabilidad de eliminarlo de su sistema y avisar al remitente mediante reenvío a su dirección electrónica; no deberá copiar el mensaje ni divulgar su contenido a ninguna persona.
Su dirección de correo electrónico junto a sus datos personales constan en un fichero titularidad de Gesdatos Software, S.L. cuya finalidad es la de mantener el contacto con Ud. Si quiere saber de qué información disponemos de Ud., modificarla, y en su caso, cancelarla, puede hacerlo enviando un escrito al efecto, acompañado de una fotocopia de su D.N.I. a la siguiente dirección: Gesdatos Software, S.L. , Paseo de la Castellana, 153 bajo - 28046 (Madrid), y Avda. Cortes Valencianas num. 50, 1ºC - 46015 (Valencia). Asimismo, es su responsabilidad comprobar que este mensaje o sus archivos adjuntos no contengan virus informáticos, y en caso que los tuvieran eliminarlos.