org.zeroexchange.collaboration.contract.permission
Class DAOContractPermissionsInformant

java.lang.Object
  extended by org.zeroexchange.collaboration.contract.permission.DAOContractPermissionsInformant
All Implemented Interfaces:
ContractPermissionsInformant

public class DAOContractPermissionsInformant
extends Object
implements ContractPermissionsInformant

DAO-based PermissionsInformer implementation

Author:
black

Constructor Summary
DAOContractPermissionsInformant()
           
 
Method Summary
 boolean isAddResourceAllowed(Contract contract)
          Returns true if the current user is allowed to add the resource.
 boolean isContractAcceptanceAllowed(Contract contract)
          Returns true if the user can accept the contract.
 boolean isContractCancelAcceptanceAllowed(Contract contract)
          Returns true if the user can cancel the contract's acceptance.
 boolean isTenderDeclineEnabled(ResourceTender resourceTender)
          Returns true if the user is allowed to decline the resource tender.
 boolean isTendersManagementAllowed(Contract contract, Resource resource)
          Returns true if the tender management is allowed for the user.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DAOContractPermissionsInformant

public DAOContractPermissionsInformant()
Method Detail

isContractAcceptanceAllowed

public boolean isContractAcceptanceAllowed(Contract contract)
Returns true if the user can accept the contract.

Specified by:
isContractAcceptanceAllowed in interface ContractPermissionsInformant

isContractCancelAcceptanceAllowed

public boolean isContractCancelAcceptanceAllowed(Contract contract)
Returns true if the user can cancel the contract's acceptance.

Specified by:
isContractCancelAcceptanceAllowed in interface ContractPermissionsInformant

isAddResourceAllowed

public boolean isAddResourceAllowed(Contract contract)
Returns true if the current user is allowed to add the resource.

Specified by:
isAddResourceAllowed in interface ContractPermissionsInformant

isTenderDeclineEnabled

public boolean isTenderDeclineEnabled(ResourceTender resourceTender)
Returns true if the user is allowed to decline the resource tender.

Specified by:
isTenderDeclineEnabled in interface ContractPermissionsInformant

isTendersManagementAllowed

public boolean isTendersManagementAllowed(Contract contract,
                                          Resource resource)
Returns true if the tender management is allowed for the user.

Specified by:
isTendersManagementAllowed in interface ContractPermissionsInformant


Copyright © 2013. All Rights Reserved.