use of com.enonic.xp.context.Context in project xp by enonic.
the class ContentAuditLogSupportImpl method delete.
@Override
public void delete(final DeleteContentParams params, final DeleteContentsResult contents) {
final Context context = ContextBuilder.copyOf(ContextAccessor.current()).build();
executor.execute(() -> doDelete(params, contents, context));
}
use of com.enonic.xp.context.Context in project xp by enonic.
the class ContentAuditLogSupportImpl method update.
@Override
public void update(final UpdateMediaParams params, final Content content) {
final Context context = ContextBuilder.copyOf(ContextAccessor.current()).build();
executor.execute(() -> doUpdate(params, content, context));
}
use of com.enonic.xp.context.Context in project xp by enonic.
the class ContentAuditLogSupportImpl method reorderChildren.
@Override
public void reorderChildren(final ReorderChildContentsParams params, final ReorderChildContentsResult result) {
final Context context = ContextBuilder.copyOf(ContextAccessor.current()).build();
executor.execute(() -> doReorderChildren(params, result, context));
}
use of com.enonic.xp.context.Context in project xp by enonic.
the class ContentAuditLogSupportImpl method createContent.
@Override
public void createContent(final CreateContentParams params, final Content content) {
final Context context = ContextBuilder.copyOf(ContextAccessor.current()).build();
executor.execute(() -> doCreateContent(params, content, context));
}
use of com.enonic.xp.context.Context in project xp by enonic.
the class ContentAuditLogSupportImpl method rename.
@Override
public void rename(final RenameContentParams params, final Content content) {
final Context context = ContextBuilder.copyOf(ContextAccessor.current()).build();
executor.execute(() -> doRename(params, content, context));
}
Aggregations