Strategy that uses the Wicket metadata facility to check authorization. The static
authorize
methods are for authorizing component actions and component instantiation by role. This class is the main entry point for users wanting to use the roles-based authorization of the wicket-auth-roles package based on wicket metadata. For instance, use like:
MetaDataRoleAuthorizationStrategy.authorize(myPanel, RENDER, "ADMIN");
for actions on component instances, or:
MetaDataRoleAuthorizationStrategy.authorize(AdminBookmarkablePage.class, "ADMIN");
for doing role based authorization for component instantation.
@see org.apache.wicket.MetaDataKey
@author Eelco Hillenius
@author Jonathan Locke