use MetaDataRoleAuthorizationStrategy
2010-04-09 wicketyan 发件人: Janani Sundarrajan 发送时间: 2010-04-09 05:38:24 收件人: [email protected] 抄送: 主题: Wicket Authorization Is it possible use a metadata driven component based authorization? Wicket in Action gives an example @AdminOnly private class ModeLink extends Link {.....} Then implement isActionAuthorized() of the Authorization Strategy. But I feel that it is not a good solution to create new classes for every role. Is there a metadata driven way to do this? Can I add some metadata to a component and then check based on that in the isActionAuthorized() method of the Authorization Strategy? I am a Wicket newbie, so forgive me if I am missing something very basic. Thanks, ~Janani
