use of com.helger.photon.ajax.decl.AjaxFunctionDeclaration in project phoss-smp by phax.
the class CAjax method addAjaxWithLogin.
@Nonnull
public static AjaxFunctionDeclaration addAjaxWithLogin(@Nonnull final IAjaxExecutor aExecutor) {
// random name
final AjaxFunctionDeclaration aFunction = AjaxFunctionDeclaration.builder().executor(aExecutor).filter(CAjax.FILTER_IS_USER_LOGGED_IN).build();
GlobalAjaxInvoker.getInstance().getRegistry().registerFunction(aFunction);
return aFunction;
}
Aggregations