use of com.enonic.xp.context.Context in project xp by enonic.
the class ContentAuditLogSupportImpl method applyPermissions.
@Override
public void applyPermissions(final ApplyContentPermissionsParams params, final ApplyContentPermissionsResult result) {
final Context context = ContextBuilder.copyOf(ContextAccessor.current()).build();
executor.execute(() -> doApplyPermissions(params, result, 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 unpublishContent.
@Override
public void unpublishContent(final UnpublishContentParams params, final UnpublishContentsResult result) {
final Context context = ContextBuilder.copyOf(ContextAccessor.current()).build();
executor.execute(() -> doUnpublishContent(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));
}
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));
}
Aggregations