Compare commits

...

3 Commits

Author SHA1 Message Date
Jamie Vigliotta
433b625a87 removing object utils, no longer used 2020-09-22 16:17:48 -07:00
Jamie Vigliotta
a7bfe20492 method will always receive two arguments, updated to reflect that 2020-09-22 16:16:02 -07:00
Jamie Vigliotta
bd9088308f check for two arguments to catch cases where key and namespace are sent in separately 2020-09-22 15:20:48 -07:00

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));
}