Skip to content

Commit

Permalink
temporary add WEBUI_TestParentChildViewParams to PickingSlotsClearing…
Browse files Browse the repository at this point in the history
…ViewFactory

#755
  • Loading branch information
teosarca committed Dec 16, 2017
1 parent 41f4ec2 commit 9424eee
Showing 1 changed file with 13 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@

/**
* Browse Picking slots
*
*
* @author metas-dev <dev@metasfresh.com>
* @task https://github.com/metasfresh/metasfresh/issues/518
*/
Expand All @@ -69,7 +69,7 @@ public class PickingSlotsClearingViewFactory implements IViewFactory
@Autowired
private PickingSlotViewRepository pickingSlotRepo;

private CCache<Integer, DocumentFilterDescriptorsProvider> filterDescriptorsProviderCache = CCache.newCache("PickingSlotsClearingViewFactory.FilterDescriptorsProvider", 1, CCache.EXPIREMINUTES_Never);
private final CCache<Integer, DocumentFilterDescriptorsProvider> filterDescriptorsProviderCache = CCache.newCache("PickingSlotsClearingViewFactory.FilterDescriptorsProvider", 1, CCache.EXPIREMINUTES_Never);

@Override
public ViewLayout getViewLayout(final WindowId windowId, final JSONViewDataType viewDataType, @Nullable final ViewProfileId profileId)
Expand Down Expand Up @@ -140,12 +140,17 @@ private List<RelatedProcessDescriptor> createAdditionalRelatedProcessDescriptors
// TODO: cache it

return ImmutableList.of(
// allow to open the HU-editor for various picking related purposes
RelatedProcessDescriptor.builder()
.processId(adProcessDAO.retrieveProcessIdByClass(WEBUI_PickingSlotsClearingView_TakeOutHU.class))
.anyTable().anyWindow()
.webuiQuickAction(true)
.build());
createProcessDescriptor(WEBUI_PickingSlotsClearingView_TakeOutHU.class),
createProcessDescriptor(de.metas.ui.web.process.adprocess.WEBUI_TestParentChildViewParams.class));
}

private RelatedProcessDescriptor createProcessDescriptor(final Class<?> processClass)
{
return RelatedProcessDescriptor.builder()
.processId(adProcessDAO.retrieveProcessIdByClass(processClass))
.anyTable().anyWindow()
.webuiQuickAction(true)
.build();
}

}

0 comments on commit 9424eee

Please sign in to comment.