use of de.metas.handlingunits.attribute.storage.IAttributeStorageFactory in project metasfresh-webui-api by metasfresh.
the class WEBUIHUCreationWithSerialNumberService method getAttributeStorage.
private final IAttributeStorage getAttributeStorage(final IHUContext huContext, final I_M_HU hu) {
final IAttributeStorageFactory attributeStorageFactory = huContext.getHUAttributeStorageFactory();
final IAttributeStorage attributeStorage = attributeStorageFactory.getAttributeStorage(hu);
return attributeStorage;
}
use of de.metas.handlingunits.attribute.storage.IAttributeStorageFactory in project metasfresh-webui-api by metasfresh.
the class HUEditorRowAttributesProvider method createAttributeStorageFactory.
private final IAttributeStorageFactory createAttributeStorageFactory() {
final IHandlingUnitsBL handlingUnitsBL = Services.get(IHandlingUnitsBL.class);
final IAttributeStorageFactoryService attributeStorageFactoryService = Services.get(IAttributeStorageFactoryService.class);
final IHUStorageFactory storageFactory = handlingUnitsBL.getStorageFactory();
final IAttributeStorageFactory huAttributeStorageFactory = attributeStorageFactoryService.createHUAttributeStorageFactory(storageFactory);
return huAttributeStorageFactory;
}
Aggregations