Project

General

Profile

« Previous | Next » 

Revision 48139

integrated (hopefully) all required changes from dnet40

View differences:

UpsertHostedByApisJobNode.java
46 46
		return Arc.DEFAULT_ARC;
47 47
	}
48 48

  
49
	private void updateHostedByApi(final DatasourceManagerService dsManager, final String dsId, final String namepsacePrefix, final String date, final int size) {
49
	private void updateHostedByApi(final DatasourceManagerService dsManager,
50
			final String dsId,
51
			final String namepsacePrefix,
52
			final String date,
53
			final int size) {
50 54
		log.info("Verifying hostedBy api in ds: " + dsId);
51 55
		try {
52 56
			final DatasourceDesc ds = dsManager.getDatasource(dsId);
53 57

  
54 58
			for (IfaceDesc iface : ds.getInterfaces()) {
55 59
				if (HOSTED_BY_COMPLIANCE.equals(iface.getCompliance())) {
56

  
57
					//dsManager.updateExtraField(dsId, iface.getId(), namepsacePrefix + ":" + extraFieldForDate, date, false);
58
					//dsManager.updateExtraField(dsId, iface.getId(), namepsacePrefix + ":" + extraFieldsForTotal, Integer.toString(size), false);
59
					//dsManager.updateExtraField(dsId, iface.getId(), namepsacePrefix + ":" + extraFieldForMdId, mdId, false);
60 60
					return;
61 61
				}
62 62
			}
......
70 70
			iface.setBaseUrl("");
71 71
			iface.setActive(false);
72 72
			iface.setRemovable(true);
73
			iface.getExtraFields().put(namepsacePrefix + ":" + extraFieldForDate, date);
74
			iface.getExtraFields().put(namepsacePrefix + ":" + extraFieldsForTotal, Integer.toString(size));
75
			iface.getExtraFields().put(namepsacePrefix + ":" + extraFieldForMdId, mdId);
76 73
			dsManager.addInterface(dsId, iface);
77 74
		} catch (DatasourceManagerServiceException e) {
78 75
			log.warn("Error setting hostedBy api of ds: " + dsId, e);

Also available in: Unified diff