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

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: core-1.6.0
    • Fix Version/s: core-1.7.0
    • Component/s: Isis Core
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: