Package org.zeroexchange.model.collaboration

Examples of org.zeroexchange.model.collaboration.ContractStatus


    /**
     * {@inheritDoc}
     */
    @Override
    public ContractStatus nextStep(Contract contract) {
        ContractStatus contractStatus = contract.getStatus();
        ContractStatus processorStatus = getProcessingStatus();
        if(contract.getStatus() != processorStatus) {
            throw new BusinessLogicException("Contract with status '" + contractStatus.name() +
                    "' cannot be processed with the processor for state '" + getProcessingStatus() + "'!");
        }
        return calculateNextNearestStep(contract);
View Full Code Here


    /**
     * {@inheritDoc}
     */
    @Override
    protected ContractStatus calculateNextNearestStep(Contract contract) {
        ContractStatus contractStatus = super.calculateNextNearestStep(contract);
        if(contractStatus != ContractStatus.READY) {
            return contractStatus;
        }
       
        Collection<User> acceptors = contract.getAcceptors();
View Full Code Here

            private static final long serialVersionUID = 1L;
            @Override
            public void populateItem(Item<ICellPopulator<Contract>> cellItem,
                    String componentId, IModel<Contract> rowModel) {
                Contract contract = rowModel.getObject();
                ContractStatus contractStatus = contractStatusInformant.getContractStatus(contract,
                        authorizedUserService.getCurrentUserId());
                if(contractStatus != null) {
                    cellItem.add(new Label(componentId, new ResourceModel(MKEY_STATE_PREFIX  + contractStatus.name())));
                } else {
                    cellItem.add(new Label(componentId, "???"));
                }
            }
View Full Code Here

TOP

Related Classes of org.zeroexchange.model.collaboration.ContractStatus

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.