use of org.asqatasun.entity.audit.JavascriptContent in project Asqatasun by Asqatasun.
the class JSHandlerImpl method initialize.
private void initialize() {
if (initialized) {
return;
}
XStream xStream = new XStream();
XStream.setupDefaultSecurity(xStream);
xStream.allowTypesByWildcard(new String[] { "org.asqatasun.**" });
for (RelatedContent relatedContent : ssp.getRelatedContentSet()) {
if (relatedContent instanceof JavascriptContent) {
if (javaScriptSet == null) {
javaScriptSet = new HashSet<>();
}
javaScriptSet.addAll((Set<JSResource>) xStream.fromXML(((JavascriptContent) relatedContent).getAdaptedContent()));
}
}
initialized = true;
}
Aggregations