nu.localhost.tapestry.acegi.components.IfRole

Render it's body depending whether the user is in a specific role or not.

[JavaDoc]

Component Parameters

NameTypeFlagsDefaultDefault PrefixDescription
elseorg.apache.tapestry.BlockpropAn alternate org.apache.tapestry.Block to render if the test parameter is false. The default, null, means render nothing in that situation.
ifAllGrantedStringliteralA comma-separated list of roles is supplied to one or more of the following parameters. If none are supplied, the default behavior is to permit access. Behavior should be self-explanatory.
ifAnyGrantedStringliteral
ifNotGrantedStringliteral
negatebooleanpropOptional parameter to invert the test. If true, then the body is rendered when the test parameter is false (not true).
roleStringliteralIf the logged in user matches this role, then the body of the IfRole component is rendered. If false, the body is omitted. This is retained for backward compatibility, and corresponds to a single entry in ifAnyGranted

Back to index