|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.zeroexchange.flow.collaboration.PersonalContractStatusInformant
public class PersonalContractStatusInformant
Provides contract status considering the user acceptance state.
Constructor Summary | |
---|---|
PersonalContractStatusInformant()
|
Method Summary | |
---|---|
ContractStatus |
getContractStatus(Contract contract,
Integer userId)
Returns actual contract status. |
protected boolean |
isContractIsAcceptedByUser(Contract contract,
Integer userId)
Returns true if the contract is accepted by the user. |
boolean |
isContractModificationAllowed(Contract contract)
Returns true if the contract status allows to change the contract conditions. |
boolean |
isDeliveryDone(Contract contract,
Integer currentUserId)
Returns true if the user completed at least one delivery. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PersonalContractStatusInformant()
Method Detail |
---|
public boolean isContractModificationAllowed(Contract contract)
isContractModificationAllowed
in interface ContractStatusInformant
public ContractStatus getContractStatus(Contract contract, Integer userId)
getContractStatus
in interface ContractStatusInformant
public boolean isDeliveryDone(Contract contract, Integer currentUserId)
isDeliveryDone
in interface ContractStatusInformant
protected boolean isContractIsAcceptedByUser(Contract contract, Integer userId)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |