Details

    • Type: Technical Task
    • Status: Closed
    • Priority: Minor
    • Resolution: Completed
    • Affects Version/s: None
    • Fix Version/s: 7.1.X, Master
    • Component/s: None
    • Labels:
      None

      Description

      Adds a new permission package that can be used to compose model and portlet resource permissions checkers. Extracts common logic into permission checks to be reused by different modules to reduce inconsistency and duplication. New checks can be easily written to add in special business logic if needed to be used by either the ModelResourcePermissionChecker or PortletResourcePermissionChecker, if even more unique logic is required the common interfaces can be easily implemented directly. Request lifecycle permission caching is now managed in ModelResourcePermissionChecker or PortletResourcePermissionChecker which should be considered first before implementing the interfaces directly.

      Since modules using the new API no longer consume static permission classes but instead have spring beans, permissions can be customized by updating spring files to point to new classes implementing either the ModelResourcePermission or PortletResourcePermission interfaces.

      These changes remove the need to export permission classes from service modules and users of the API should now use the published OSGI services implementing the new interfaces in portal-kernel.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              brian.chan Brian Chan
              Reporter:
              matthew.tambara Matthew Tambara
              Recent user:
              Tibor Lipusz
              Participants of an Issue:
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                2 years, 39 weeks, 6 days ago

                  Packages

                  Version Package
                  7.1.X
                  Master