dWing — die Welt ist nicht gerecht

sign in

Ohne Worte

public class ContentItemServiceImpl implements ContentItemServiceLocal, ContentItemServiceRemote {
	// …
	public void updateTextContentWithoutStoringPipeline(ContentItemI item, String content) 
		throws TextContentNotChangedException {
		
		ContentItem _item = item.getDelegate();
		
		if(renderingPipeline.renderEditor(_item.getTextContent()).equals(content)) {
			throw new TextContentNotChangedException("Could not create TextContentUpdate for an unchanged text content");
		}
		// …
	}
	// …
}