Search in sources :

Example 1 with StackedBusinessControl

use of org.olat.core.id.context.StackedBusinessControl in project openolat by klemens.

the class UserActivityLoggerImpl method frameworkSetBusinessPathFromWindowControl.

@Override
public void frameworkSetBusinessPathFromWindowControl(WindowControl wControl) {
    if (wControl != null && wControl.getBusinessControl() != null) {
        if (wControl.getBusinessControl() instanceof StackedBusinessControl) {
            StackedBusinessControl sbc = (StackedBusinessControl) wControl.getBusinessControl();
            final List<ContextEntry> ces = sbc.getContextEntryStack();
            if (ces != null) {
                frameworkSetBCContextEntries(new LinkedList<ContextEntry>(ces));
            }
        }
        final String bp = wControl.getBusinessControl().getAsString();
        frameworkSetBusinessPath(bp);
    }
}
Also used : StackedBusinessControl(org.olat.core.id.context.StackedBusinessControl) ContextEntry(org.olat.core.id.context.ContextEntry)

Example 2 with StackedBusinessControl

use of org.olat.core.id.context.StackedBusinessControl in project OpenOLAT by OpenOLAT.

the class UserActivityLoggerImpl method frameworkSetBusinessPathFromWindowControl.

@Override
public void frameworkSetBusinessPathFromWindowControl(WindowControl wControl) {
    if (wControl != null && wControl.getBusinessControl() != null) {
        if (wControl.getBusinessControl() instanceof StackedBusinessControl) {
            StackedBusinessControl sbc = (StackedBusinessControl) wControl.getBusinessControl();
            final List<ContextEntry> ces = sbc.getContextEntryStack();
            if (ces != null) {
                frameworkSetBCContextEntries(new LinkedList<ContextEntry>(ces));
            }
        }
        final String bp = wControl.getBusinessControl().getAsString();
        frameworkSetBusinessPath(bp);
    }
}
Also used : StackedBusinessControl(org.olat.core.id.context.StackedBusinessControl) ContextEntry(org.olat.core.id.context.ContextEntry)

Aggregations

ContextEntry (org.olat.core.id.context.ContextEntry)2 StackedBusinessControl (org.olat.core.id.context.StackedBusinessControl)2