use of com.enonic.xp.context.Context in project xp by enonic.
the class ContentAuditLogSupportImpl method reprocess.
@Override
public void reprocess(final Content content) {
final Context context = ContextBuilder.copyOf(ContextAccessor.current()).build();
executor.execute(() -> doReprocess(content, context));
}
use of com.enonic.xp.context.Context in project xp by enonic.
the class ContentAuditLogSupportImpl method setChildOrder.
@Override
public void setChildOrder(final SetContentChildOrderParams params, final Content content) {
final Context context = ContextBuilder.copyOf(ContextAccessor.current()).build();
executor.execute(() -> doSetChildOrder(params, content, context));
}
use of com.enonic.xp.context.Context in project xp by enonic.
the class ContentAuditLogSupportImpl method undoPendingDelete.
@Override
public void undoPendingDelete(final UndoPendingDeleteContentParams params, final Contents contents) {
final Context context = ContextBuilder.copyOf(ContextAccessor.current()).build();
executor.execute(() -> doUndoPendingDelete(params, contents, context));
}
use of com.enonic.xp.context.Context in project xp by enonic.
the class ContentAuditLogSupportImpl method archive.
@Override
public void archive(final ArchiveContentParams params, final ArchiveContentsResult result) {
final Context context = ContextBuilder.copyOf(ContextAccessor.current()).build();
executor.execute(() -> doArchive(params, result, context));
}
use of com.enonic.xp.context.Context in project xp by enonic.
the class ContentAuditLogSupportImpl method createMedia.
@Override
public void createMedia(final CreateMediaParams params, final Content content) {
final Context context = ContextBuilder.copyOf(ContextAccessor.current()).build();
executor.execute(() -> doCreateMedia(params, content, context));
}
Aggregations