validateBeforeStoring(raw);
node.setProperty(CMS_CONTENT, raw);
} else {
- throw new CmsException("Don't know how to interpret "
- + node);
+ throw new CmsException("Don't know how to interpret " + node);
}
} else {// property
Property property = (Property) item;
}
}
+ @Override
+ public String readSimpleHtml(Item item) {
+ return raw(item);
+ }
+
@Override
public String read(Item item) {
try {
return node.getProperty(CMS_CONTENT).getString();
} else {
- throw new CmsException("Don't know how to interpret "
- + node);
+ throw new CmsException("Don't know how to interpret " + node);
}
} else {// property
Property property = (Property) item;
}
/** To be overridden, in order to support additional formatting. */
- protected String convertToStorage(Item item, String content)
- throws RepositoryException {
+ protected String convertToStorage(Item item, String content) throws RepositoryException {
return content;
}
/** To be overridden, in order to support additional formatting. */
- protected String convertFromStorage(Item item, String content)
- throws RepositoryException {
+ protected String convertFromStorage(Item item, String content) throws RepositoryException {
return content;
}
}