1 package org
.argeo
.cms
.ui
.internal
.text
;
4 import javax
.jcr
.RepositoryException
;
6 import org
.argeo
.cms
.text
.IdentityTextInterpreter
;
9 * Text interpreter that sanitise and validates before saving, and support CMS
10 * specific formatting and integration.
12 class TextInterpreterImpl
extends IdentityTextInterpreter
{
13 private MarkupValidatorCopy markupValidator
= MarkupValidatorCopy
17 protected void validateBeforeStoring(String raw
) {
18 markupValidator
.validate(raw
);
22 protected String
convertToStorage(Item item
, String content
)
23 throws RepositoryException
{
24 return super.convertToStorage(item
, content
);
28 protected String
convertFromStorage(Item item
, String content
)
29 throws RepositoryException
{
30 return super.convertFromStorage(item
, content
);