Class WorkOrderPermits
java.lang.Object
overit.geocallapp.wfm.core.bl.permits.workorder.WorkOrderPermits
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddObtainedPermit(BOPermitObtained boPermitObtained, PoolKit pk) voidaddRequiredPermit(BOPermitRequired boPermitRequired, PoolKit pk) booleanbooleanvoidcancelObtainedPermitOnPartialOutcome(Long outcomeReasonId, Long wooId, PoolKit poolKit) Search all permits with the specified outcome reason associated.Check the validity the requirements against the workOrderOperationId if specified, otherwise on the ones with no work order operation.voiddeleteObtainedPermit(Long obtainedPermitId, PoolKit pk) Return the specific Permit required from the list of permits.booleanvoidremoveRequiredPermit(Long removeId, PoolKit pk) voidsetPermits(List<Permit> permits) voidsetWorkOrderId(Long workOrderId) voidupdateObtainedPermit(BOPermitObtained boPermitObtained, PoolKit pk) voidupdateRequiredPermit(BOPermitRequired boPermitRequired, PoolKit pk)
-
Constructor Details
-
WorkOrderPermits
public WorkOrderPermits()
-
-
Method Details
-
getWorkOrderId
-
setWorkOrderId
-
getPermits
-
setPermits
-
areValid
-
areValid
-
haveNotBlockingNotObtained
public boolean haveNotBlockingNotObtained() -
check
Check the validity the requirements against the workOrderOperationId if specified, otherwise on the ones with no work order operation.- Returns:
- a list with all the result of every check for each requirement.
-
addRequiredPermit
public void addRequiredPermit(BOPermitRequired boPermitRequired, PoolKit pk) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
removeRequiredPermit
- Throws:
DAExceptionDAValidateException
-
updateRequiredPermit
public void updateRequiredPermit(BOPermitRequired boPermitRequired, PoolKit pk) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
addObtainedPermit
public Long addObtainedPermit(BOPermitObtained boPermitObtained, PoolKit pk) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
updateObtainedPermit
public void updateObtainedPermit(BOPermitObtained boPermitObtained, PoolKit pk) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
getPermit
Return the specific Permit required from the list of permits.- Parameters:
idPermitRequired- the id of the permit required researched
-
cancelObtainedPermitOnPartialOutcome
public void cancelObtainedPermitOnPartialOutcome(Long outcomeReasonId, Long wooId, PoolKit poolKit) throws DAException, DAValidateException Search all permits with the specified outcome reason associated. If any is found,- Parameters:
outcomeReasonId-wooId-poolKit-- Throws:
DAExceptionDAValidateException
-
deleteObtainedPermit
public void deleteObtainedPermit(Long obtainedPermitId, PoolKit pk) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-