};
final OrderViewHandlerFactory orderViewHandlerFactory = new OrderViewHandlerFactory() {
public OrderViewHandler create(boolean notInitData) {
return new OrderViewHandler(login, managerRepository,
deviationOverviewViewFactory,
deviationViewHandlerFactory, notInitData);
}
};
final SupplierOrderViewHandler supplierOrderViewHandler = new SupplierOrderViewHandler(
login, managerRepository, assemblyReportFactory,
deviationViewHandlerFactory, orderViewHandlerFactory, supplier,
yearWeek);
Set<UserTypeAccess> userTypeAccesses = new HashSet<UserTypeAccess>();
UserTypeAccess userTypeAccess = new UserTypeAccess();
userTypeAccess.setWindowAccess(new WindowAccess(null, "Attributter",
null));
userTypeAccesses.add(userTypeAccess);
userType.setUserTypeAccesses(userTypeAccesses);
final List<Supplier> supplierList = new ArrayList<Supplier>();
supplierList.add(supplier);
final OrderViewHandler orderViewHandler = new OrderViewHandler(login,
managerRepository, deviationOverviewViewFactory,
deviationViewHandlerFactory, true);
SupplierOrderViewHandlerFactory supplierOrderViewHandlerFactory = new SupplierOrderViewHandlerFactory() {