requestContext.session().terminate();
return AWComponentActionRequestHandler.SharedInstance.processFrontDoorRequest(requestContext);
}
});
ConditionHandler.setHandler("disableLogoutAction", new ConditionHandler() {
public boolean evaluateCondition (AWRequestContext requestContext)
{
return !User.isLoggedIn();
}
});
if (allowAccessWithoutLogin) {
ConditionHandler.setHandler("showLoginAction", new ConditionHandler() {
public boolean evaluateCondition (AWRequestContext requestContext)
{
return !User.isLoggedIn();
}
});