Class DefaultWidgetAuthorizationService

    • Constructor Detail

      • DefaultWidgetAuthorizationService

        public DefaultWidgetAuthorizationService()
    • Method Detail

      • isAccessAllowed

        public boolean isAccessAllowed​(Widget widget)
        Description copied from interface: WidgetAuthorizationService
        Checks if a widget should be displayed or not, usually based on the widgets access restrictions.
        Specified by:
        isAccessAllowed in interface WidgetAuthorizationService
        Parameters:
        widget - object to check
        Returns:
        whether a widget should be displayed or not, usually based on the widgets access restrictions
      • isAccessAllowedForCurrentUser

        protected boolean isAccessAllowedForCurrentUser​(Widget widget)
        Gets the current session user and checks if he has permisssions to see the widget.
      • checkAuthorityMatch

        protected boolean checkAuthorityMatch​(java.util.List<java.lang.String> list,
                                              java.util.List<java.lang.String> list2)
        Does a null-safe CollectionUtils.containsAny(java.util.Collection, java.util.Collection).
      • setAuthorityGroupService

        public void setAuthorityGroupService​(AuthorityGroupService authorityGroupService)
      • setCockpitUserService

        public void setCockpitUserService​(CockpitUserService cockpitUserService)