Uploaded image for project: 'Causeway'
  1. Causeway
  2. CAUSEWAY-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.

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • core-1.6.0
    • core-1.7.0
    • Core
    • None

    Description

      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.isHidden(this, "firstName")) {
             buf.append(this.getFirstName());
          }
         return buf.toString();
      }
      

      and isDisabled(...) similarly

      Attachments

        Activity

          People

            Unassigned Unassigned
            danhaywood Daniel Keir Haywood
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: