Admin bundles require PostgreSQL to be used since some of the bundles use db specific sql.
-
Uncomment these lines in
servlet-map/src/main/resources/oskari.properties
to enable admin-layerselector and admin-layerrights bundles to be added for users with role Admin for the default view.actionhandler.GetAppSetup.dynamic.bundles = admin-layerselector, admin-layerrights actionhandler.GetAppSetup.dynamic.bundle.admin-layerrights.roles = Admin actionhandler.GetAppSetup.dynamic.bundle.admin-layerselector.roles = Admin
The property actionhandler.GetAppSetup.dynamic.bundles
is a comma-separated list of bundle identifiers
that we want to add when loading the default view. The listed bundles can then be added for users with roles
referenced in properties with syntax actionhandler.GetAppSetup.dynamic.[BUNDLE ID].roles
. These properties
have values of comma-separated lists of role names.
-
Restart the jetty instance
-
Open a browser with
http://localhost:2373/
-
log in with the admin user
You should now see these two bundles added to the view.
Note! Dynamic bundles are only added for default view. If you want to use view 2 for default view you can add
a property view.default=2
to servlet-map/src/main/resources/oskari.properties