Difference between revisions of "QUARANTINE BUSINESS RULES"
Jump to navigation
Jump to search
| Line 1: | Line 1: | ||
{| class="wikitable" style="text-align: center; | {| class="wikitable" style="text-align: center; | ||
|<span style="color:#00ffff"> '''#'''</span> | |<span style="color:#00ffff"> '''#'''</span> | ||
|<span style="color:#00ffff"> MODULE NAME </span> | |<span style="color:#00ffff"> '''MODULE NAME''' </span> | ||
|<span style="color:#00ffff"> OBJECT </span> | |<span style="color:#00ffff"> '''OBJECT''' </span> | ||
|<span style="color:#00ffff"> ACTION </span> | |<span style="color:#00ffff"> '''ACTION''' </span> | ||
|<span style="color:#00ffff"> VALIDATION NAME </span> | |<span style="color:#00ffff"> '''VALIDATION NAME''' </span> | ||
|<span style="color:#00ffff"> VALIDATION DESCRIPTION </span> | |<span style="color:#00ffff"> '''VALIDATION DESCRIPTION''' </span> | ||
|<span style="color:#00ffff"> VALIDATION CATEGORY </span> | |<span style="color:#00ffff"> '''VALIDATION CATEGORY''' </span> | ||
|<span style="color:#00ffff"> METHOD NAME </span> | |<span style="color:#00ffff"> '''METHOD NAME''' </span> | ||
|<span style="color:#00ffff"> CLASS NAME </span> | |<span style="color:#00ffff"> '''CLASS NAME''' </span> | ||
|<span style="color:#00ffff"> DUPLICATED IN CLASS </span> | |<span style="color:#00ffff"> '''DUPLICATED IN CLASS''' </span> | ||
|- | |- | ||
|'''1''' | |'''1''' | ||
Latest revision as of 07:28, 3 December 2021
| # | MODULE NAME | OBJECT | ACTION | VALIDATION NAME | VALIDATION DESCRIPTION | VALIDATION CATEGORY | METHOD NAME | CLASS NAME | DUPLICATED IN CLASS |
| 1 | QUARANTINE | QUARANTINE | EDIT | Blacklist quarantine – fields date from/date to/type are not updateable | Checks if date from/date to/type is updated | Other | quarantineOnSaveValidationSet | ValidationChecks | Yes |
| 2 | QUARANTINE | QUARANTINE | EDIT | Export quarantine – fields date to are not updateable | Checks if date to/type is updated | Other | quarantineOnSaveValidationSet | ValidationChecks | Yes |
| 3 | QUARANTINE | QUARANTINE | EDIT | Quarantine end date can’t be shorted | Checks if quarantine end date s shorted | Other | quarantineOnSaveValidationSet | ValidationChecks | Yes |
| 4 | QUARANTINE | QUARANTINE | EDIT | Quarantine end can’t be extended for more than 15 days | Checks if quarantine end date is extended for more than 15 days | Other | quarantineOnSaveValidationSet | ValidationChecks | Yes |
| 5 | QUARANTINE | QUARANTINE | EDIT | Quarantine can be edited only on its last day of expiration | Checks if quarantine is updated on its last day of expiration | Other | quarantineOnSaveValidationSet | ValidationChecks | Yes |
| 6 | QUARANTINE | QUARANTINE | REGISTRATION/EDIT | Quarantine can’t be registered in the past | Checks if quarantine date from is before current date | Other | quarantineOnSaveValidationSet | ValidationChecks | Yes |
| 7 | QUARANTINE | QUARANTINE | REGISTRATION/EDIT | Quarantine can’t have end date before start date | Checks if quarantine start date is after end date | Other | isQuarantineStartDateAfterEndDate | ValidationChecks | No |
| 8 | QUARANTINE | QUARANTINE | REGISTRATION/EDIT | Link between holding and quarantine | Check if link between holding and quarantine | Other | checkIfSomeLinkExistsBetweenHoldingAndQuarantine | Reader | Yes |
| 9 | QUARANTINE | EXPORT_CERT | REGISTRATION/EDIT | Invalid export certificate format | Checks if export certificate has valid format | Other | beforeSave | OnSaveValidations | Yes |
| 10 | QUARANTINE | EXPORT_CERT | REGISTRATION/EDIT | Generate export certificate | Checks if export cert can be generated | Other | checkIfExportCertificateCanBeSaved | ValidationChecks | No |
| 11 | QUARANTINE | EXPORT_CERT | REGISTRATION/EDIT | Certificate for BIP holding | Checks if BIP holding is valid in order to generate certificate | Other | checkIfBIPholdingValid | ValidationChecks | No |
| 12 | QUARANTINE | DISEASE_QUARANTINE | REGISTRATION/EDIT | Disease can be added only in blacklist quarantine | Checks if disease is added in blacklist quarantine | Other | checkIfQuarantineBlackList | ValidationChecks | No |
| 13 | QUARANTINE | HOLDING_QUARANTINE (LINK) | REGISTRATION/EDIT | Holding must be added in active quarantine | Check if quarantine is not active | Other | checkIfQuarantineActive | ValidationChecks | No |
| 14 | QUARANTINE | HOLDING_QUARANTINE (LINK) | REGISTRATION/EDIT | Export quarantine can have only one holding | Checks if another holding is added and quarantine already has holding | Other | checkIfSomeLinkExistsBetweenHoldingAndQuarantine | Reader | Yes |
| 15 | QUARANTINE | HOLDING_QUARANTINE (LINK) | REGISTRATION/EDIT | Holding can belong to only one active quarantine | Checks if holding already belongs to quarantine | Other | checkIfHoldingBelongsInActiveQuarantine | ValidationChecks | No |
| 16 | QUARANTINE | HOLDING_QUARANTINE (LINK) | REGISTRATION/EDIT | Holding with pending movements can’t be added to quarantine | Checks if holding is added to quarantine and has pending movements | Other | beforeSave | OnSaveValidations | Yes |
| 17 | QUARANTINE | HOLDING_QUARANTINE (LINK) | DIRECT_TRANSFER | Source holding belongs to active quarantine | Checks if holding belongs to active quarantine | Other | checkIfHoldingBelongsInActiveQuarantine | Writer | No |
| 18 | QUARANTINE | HOLDING_QUARANTINE (LINK) | DELETE | Holding can’t be deleted if there is existing export certificate in the quarantine | Checks if holding is deleted and has existing export certificate in active quarantine | Other | afterSave | OnSaveValidations | No |
| 19 | QUARANTINE | ANIMAL | GENERATE_CERITIFICATE | Animal can’t be certified before end date quarantine | Checks certification date is before quarantine end date | Dates | checkIfDateOfInsertIsBeforeEndDate | MassActions | No |