Search in sources :

Example 1 with IAttributeStorageFactory

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;
}
Also used : IAttributeStorage(de.metas.handlingunits.attribute.storage.IAttributeStorage) IAttributeStorageFactory(de.metas.handlingunits.attribute.storage.IAttributeStorageFactory)

Example 2 with IAttributeStorageFactory

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;
}
Also used : IHandlingUnitsBL(de.metas.handlingunits.IHandlingUnitsBL) IAttributeStorageFactory(de.metas.handlingunits.attribute.storage.IAttributeStorageFactory) IHUStorageFactory(de.metas.handlingunits.storage.IHUStorageFactory) IAttributeStorageFactoryService(de.metas.handlingunits.attribute.storage.IAttributeStorageFactoryService)

Aggregations

IAttributeStorageFactory (de.metas.handlingunits.attribute.storage.IAttributeStorageFactory)2 IHandlingUnitsBL (de.metas.handlingunits.IHandlingUnitsBL)1 IAttributeStorage (de.metas.handlingunits.attribute.storage.IAttributeStorage)1 IAttributeStorageFactoryService (de.metas.handlingunits.attribute.storage.IAttributeStorageFactoryService)1 IHUStorageFactory (de.metas.handlingunits.storage.IHUStorageFactory)1