Compare commits

...

3 Commits

View File

@ -20,8 +20,6 @@
* at runtime from the About dialog for additional information.
*****************************************************************************/
import objectUtils from 'objectUtils';
export default class LegacyPersistenceAdapter {
constructor(openmct) {
this.openmct = openmct;
@ -39,8 +37,11 @@ export default class LegacyPersistenceAdapter {
return this.openmct.objects.save(legacyDomainObject.useCapability('adapter'));
}
readObject(keystring) {
let identifier = objectUtils.parseKeyString(keystring);
readObject(space, key) {
const identifier = {
namespace: space,
key: key
};
return this.openmct.legacyObject(this.openmct.objects.get(identifier));
}