Search in sources :

Example 6 with AccessContext

use of org.dbflute.hook.AccessContext in project fess by codelibs.

the class AccessContextLogic method create.

// ===================================================================================
// Create Context
// ==============
public AccessContext create(final AccessContextResource resource, final UserTypeSupplier userTypeSupplier, final UserBeanSupplier userBeanSupplier, final AppTypeSupplier appTypeSupplier) {
    final AccessContext context = new AccessContext();
    context.setAccessLocalDateTimeProvider(() -> timeManager.currentDateTime());
    context.setAccessUserProvider(() -> buildAccessUserTrace(resource, userTypeSupplier, appTypeSupplier));
    return context;
}
Also used : AccessContext(org.dbflute.hook.AccessContext)

Aggregations

AccessContext (org.dbflute.hook.AccessContext)6 PreparedAccessContext (org.lastaflute.db.dbflute.accesscontext.PreparedAccessContext)2 AccessModuleProvider (org.dbflute.hook.AccessContext.AccessModuleProvider)1 AccessProcessProvider (org.dbflute.hook.AccessContext.AccessProcessProvider)1 AccessUserProvider (org.dbflute.hook.AccessContext.AccessUserProvider)1 CallbackContext (org.dbflute.hook.CallbackContext)1