]> git.argeo.org Git - gpl/argeo-suite.git/blob - publishing/org.argeo.publishing.ui/src/org/argeo/cms/text/TextInterpreterImpl.java
Improve terms framework.
[gpl/argeo-suite.git] / publishing / org.argeo.publishing.ui / src / org / argeo / cms / text / TextInterpreterImpl.java
1 package org.argeo.cms.text;
2
3 import javax.jcr.Item;
4 import javax.jcr.RepositoryException;
5
6 /**
7 * Text interpreter that sanitise and validates before saving, and support CMS
8 * specific formatting and integration.
9 */
10 class TextInterpreterImpl extends IdentityTextInterpreter {
11 private MarkupValidatorCopy markupValidator = MarkupValidatorCopy.getInstance();
12
13 @Override
14 protected void validateBeforeStoring(String raw) {
15 markupValidator.validate(raw);
16 }
17
18 @Override
19 protected String convertToStorage(Item item, String content) throws RepositoryException {
20 return super.convertToStorage(item, content);
21 }
22
23 @Override
24 protected String convertFromStorage(Item item, String content) throws RepositoryException {
25 return super.convertFromStorage(item, content);
26 }
27
28 }