use of org.alfresco.service.cmr.view.ImportPackageHandler in project alfresco-remote-api by Alfresco.
the class SitesImpl method importSite.
private void importSite(final String siteId, final NodeRef siteNodeRef) {
ImportPackageHandler acpHandler = new SiteImportPackageHandler(siteSurfConfig, siteId);
Location location = new Location(siteNodeRef);
ImporterBinding binding = new ImporterBinding() {
@Override
public String getValue(String key) {
if (key.equals("siteId")) {
return siteId;
}
return null;
}
@Override
public UUID_BINDING getUUIDBinding() {
return UUID_BINDING.CREATE_NEW;
}
@Override
public QName[] getExcludedClasses() {
return null;
}
@Override
public boolean allowReferenceWithinTransaction() {
return false;
}
@Override
public ImporterContentCache getImportConentCache() {
return null;
}
};
importerService.importView(acpHandler, location, binding, (ImporterProgress) null);
}
Aggregations