@import security._ @import be.objectify.deadbolt.java.views.html._ @import be.objectify.deadbolt.core.utils.TemplateUtils._
dynamic is the most powerful constraint in Deadbolt. It enforces arbitrary rules. See the documentation for a full overview.
This content may be visible, depending on your luck
@@dynamic("pureLuck") { This content may be visible, depending on your luck }
This content should NOT be visible
@@dynamic(new MyDeadboltHandler("pureLuck", "", new MyAlternativeDynamicResourceHandler())) { This content should NOT be visible }
This content may be visible, depending on your luck
@@dynamicOr("pureLuck") { This content may be visible, depending on your luck }{Guess you were unlucky}
This content should NOT be visible
@@dynamicOr("pureLuck", "", new security.MyAlternativeDeadboltHandler()) { This content should NOT be visible }{Guess you were unlucky}