[jbossseam-issues] [JBoss JIRA] Commented: (JBSEAM-1018) Allow security checks in component lifecycle methds
Christian Bauer (JIRA)
jira-events at lists.jboss.org
Fri Mar 9 13:37:51 EST 2007
[ http://jira.jboss.com/jira/browse/JBSEAM-1018?page=comments#action_12355655 ]
Christian Bauer commented on JBSEAM-1018:
-----------------------------------------
Workaround:
@Create createNodeHome() {}
public void checkNodeCreatePermission() {
if (!isManaged()) {
Identity.instance().checkPermission("NodeHome", "create", getParentDirectory());
}
}
<page view-id="/docEdit.xhtml" login-required="true" action="#{documentHome.checkNodeCreatePermission()}">
> Allow security checks in component lifecycle methds
> ---------------------------------------------------
>
> Key: JBSEAM-1018
> URL: http://jira.jboss.com/jira/browse/JBSEAM-1018
> Project: JBoss Seam
> Issue Type: Feature Request
> Components: Core
> Reporter: Christian Bauer
> Priority: Minor
>
> The Component.java.callComponentMethod() is used for lifecycle method calling, such as @Create methods. It also wraps all exceptions thrown in these methods, or at least casts them into RuntimeException (even if it already is a RuntimeException). So I can't use Identity.instance.checkPermission() in a @Create method and have my exception handling apply to failure. Minimum required: document this.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the seam-issues
mailing list