In the previous recipe, you have seen how you can secure pages by using the page hierarchy. In that case, you need to redeploy the application before changes take effect. In some cases, you don't want to do this, for example, when you create pages at runtime. These pages are not available in JDeveloper, so you also need to set the security at runtime.
In this recipe, we will do the same thing as in the previous recipe. We will secure the
internal.jspx page, so only the internal role has access to the page.
For this recipe, you need a WebCenter Portal application.
I have prepared an application for this recipe which you can find in the code accompanying the book. It's called
SecuringPages. In this application, ...