use of com.enonic.xp.schema.content.ContentType in project xp by enonic.
the class HtmlAreaContentProcessor method processCreate.
@Override
public ProcessCreateResult processCreate(final ProcessCreateParams params) {
final CreateContentParams createContentParams = params.getCreateContentParams();
final ContentIds.Builder processedIds = ContentIds.create();
final ContentType contentType = contentTypeService.getByName(GetContentTypeParams.from(createContentParams.getType()));
processContentData(createContentParams.getData(), contentType, processedIds);
processExtraData(createContentParams.getExtraDatas(), processedIds);
return new ProcessCreateResult(CreateContentParams.create(createContentParams).addProcessedIds(processedIds.build()).build());
}
Aggregations