Search in sources :

Example 1 with AjaxFunctionDeclaration

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;
}
Also used : AjaxFunctionDeclaration(com.helger.photon.ajax.decl.AjaxFunctionDeclaration) IAjaxFunctionDeclaration(com.helger.photon.ajax.decl.IAjaxFunctionDeclaration) Nonnull(javax.annotation.Nonnull)

Aggregations

AjaxFunctionDeclaration (com.helger.photon.ajax.decl.AjaxFunctionDeclaration)1 IAjaxFunctionDeclaration (com.helger.photon.ajax.decl.IAjaxFunctionDeclaration)1 Nonnull (javax.annotation.Nonnull)1