Details

    • Type: Story
    • Status: Closed
    • Priority: TBD
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.1
    • Labels:
      None
    • Complexity:
      Undetermined

      Description

      Currently, when using the AppFrameworkService to fetch the the extensions for a specific user, the getExtensionsForCurrentUser method takes in a Bindings parameter so that the calling app can pass in a context model to evaluate against when determining which apps are available. We want to make this more explicit, and allow a way for an app to easily populate that context with some basic parameters, like the privileges and roles associated with the current user.

      To do this we want to:

      1) Create a new AppContextModel in app-framework that simply extends SimpleBindings for now

      2) Change the method signature of the getExtensionsForCurrentUser so that it takes in a AppContextModel instead of a Bindings

      3) In appui, add a generateAppContextModel method to UiSessionContext so that apps can generate a AppContextModel from the ui session context. For starters, this context should contain a UserContextModel, which can for now just contain string lists of the authenicated user's roles and privileges.

        Gliffy Diagrams

          Attachments

            Attachments-Category-Modification

              Activity

                People

                • Assignee:
                  mogoodrich Mark Goodrich
                  Reporter:
                  mogoodrich Mark Goodrich
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: