Re: ParameterFilterInterceptor blocking
Jens <[email protected]>
| Newsgroups | gmane.comp.java.open-symphony.webwork |
|---|---|
| Message-ID | <9591159.1150154510045.JavaMail.os-j2ee@opensymphony01.managed.contegix.com> |
Hi Gabe, the implementation is pretty simple. The [i]currRule[/i] String is used as regexp pattern by escaping the relevant charcters ([,],(,),*) to get a valid regexp pattern. afterwards patterns for potential subsequent properties are attached by [b]OR[/b] operators. The resulting pattern is matched against the parameter. Because of the [b]TreeMap[/b] implementation of the [i]includesExcludesMap[/i] the rule check sequence matches the most specific rule at last and therefor determines the right permission. I only implemented the [b]*[/b] wildcard, but it would be no problem to extend to [b]?[/b] wildcards. Extending to regexp rules would probably be not too difficult, but I don't know if it would be of great benefit. If the extension to ? wildcards or regexp rules is of interest to you, I'll look into it. --------------------------------------------------------------------- Posted via Jive Forums http://forums.opensymphony.com/thread.jspa?threadID=33614&messageID=66340#66340 --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]