@ RequestMapping ( value = "" , method = RequestMethod . GET ) public Resources < DescribedForm > configuration ( ) { securityService . checkGlobalFunction ( GlobalSettings . class ) ; List < DescribedForm > forms = settingsManagers . stream ( ) . sorted ( ( o1 , o2 ) -> o1 . getTitle ( ) . compareTo ( o2 . getTitle ( ) ) ) . map ( this :: getSettingsForm ) . collect ( Collectors . toList ( ) ) ; // OK return Resources . of ( forms , uri ( on ( getClass ( ) ) . configuration ( ) ) ) ; }
List of forms to configure .