Package org.zeroexchange.collaboration.contract.event

Examples of org.zeroexchange.collaboration.contract.event.TenderChanged


                            if(getTenderType() == TenderType.NEED) {
                                needManager.acceptTender((Need) tender);
                            } else {
                                supplyManager.acceptTender((Supply) tender);
                            }
                            eventsDispatcher.publishEvent(new TenderChanged(
                                    tender.getResource().getContract(), tender, TenderOperation.ACCEPTED));
                            goBack();
                        }
                    };
                }
               
            });
        }
       
        //'Decline' action
        if(contractPermissionsInformant.isTenderDeclineEnabled(tender)) {
            toolbarActions.add(new ToolbarItem() {
                private static final long serialVersionUID = 1L;

                @Override
                public Component getComponent(String componentId) {
                    return new LinkPanel(componentId,
                            new ResourceModel(MKEY_DECLINE_TENDER)) {
                        private static final long serialVersionUID = 1L;
                        @Override
                        protected void onClick() {
                            if(getTenderType() == TenderType.NEED) {
                                needManager.declineTender((Need) tender);
                            } else {
                                supplyManager.declineTender((Supply) tender);
                            }
                            eventsDispatcher.publishEvent(new TenderChanged(
                                    tender.getResource().getContract(), tender, TenderOperation.ACCEPTED));
                            goBack();
                        }
                    };
                }
View Full Code Here


            resource = resourceWriter.addNeed(resource, (Need) resourceTender);
        }
       
        resourceModel.setObject(resource);

        eventsDispatcher.publishEvent(new TenderChanged(resource.getContract(),
                resourceTender, TenderOperation.SUBMITTED));

        // Reload the page
        setResponsePage(EditContract.class, new PageParameters().add(
                EditContract.PARAM_CONTRACT_ID, resource.getContract().getId()));
View Full Code Here

TOP

Related Classes of org.zeroexchange.collaboration.contract.event.TenderChanged

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.