PETS AND STRAY ANIMALS BUSINESS RULES
Jump to navigation
Jump to search
| # | MODULE NAME | OBJECT | ACTION | VALIDATION NAME | VALIDATION DESCRIPTION | VALIDATION CATEGORY | METHOD NAME | CLASS NAME | DUPLICATED IN CLASS |
| 1 | PETS AND STRAY ANIMALS | PET | REGISTRATION/EDIT | Pet type must be entered for pet | Checks if pet type is null | Mandatory fields | petValidationSet | ValidationChecks | Yes |
| 2 | PETS AND STRAY ANIMALS | PET | REGISTRATION/EDIT | Pet tag ID must be unique | Checks if pet tag ID is unique | Uniqueness | checkIfFieldIsUnique | ValidationChecks | Yes |
| 3 | PETS AND STRAY ANIMALS | PET | REGISTRATION/EDIT | Pet type tag must be different than none if tag ID is enetered | Checks if tag ID is entered and type is none | Other | petValidationSet | ValidationChecks | Yes |
| 4 | PETS AND STRAY ANIMALS | PET | REGISTRATION/EDIT | Pet tag type must be none if tag ID is not enetered | Checks if tag ID is not entered and tag type is entered | Other | petValidationSet | ValidationChecks | Yes |
| 5 | PETS AND STRAY ANIMALS | PET | EDIT | Pet tag ID can’t be edited | Checks if pet tag ID is edited | Other | petValidationSet | ValidationChecks | Yes |
| 6 | PETS AND STRAY ANIMALS | PET | EDIT | Pet tag ID can’t be edited. Only pet’s ID, that is linked to inventory item can be replaced | Other | petValidationSet | ValidationChecks | Yes | |
| 7 | PETS AND STRAY ANIMALS | PET | REGISTRATION/EDIT | Pet tag ID must be digit only | Checks if pet tag ID is digit only | Character/number constraints | petValidationSet | ValidationChecks | Yes |
| 8 | PETS AND STRAY ANIMALS | PET | REGISTRATION/EDIT | Pet can’t be parent by itself | Checks if pet is not parent itself | Other | checkIfAnimalIdIsNotSelfParent | ValidationChecks | Yes |
| 9 | PETS AND STRAY ANIMALS | PET | REGISTRATION/EDIT | Pet birth date can’t be after current date | Checks if pet birth date is after current date | Dates | petValidationSet | ValidationChecks | Yes |
| 10 | PETS AND STRAY ANIMALS | PET | REGISTRATION/EDIT | Pet registration date can’t be after current date | Checks if pet registration date is after current date | Dates | petValidationSet | ValidationChecks | Yes |
| 11 | PETS AND STRAY ANIMALS | PET | REGISTRATION/EDIT | Pet death date can’ be before birth date | Checks if pet birth date is after death date | Dates | checkIfAnimalDeathDateIsNotBeforeBirthDate | ValidationChecks | Yes |
| 12 | PETS AND STRAY ANIMALS | PET | REGISTRATION/EDIT | Pet registration date can’t be after birth date | Checks if pet registration date is not after birth date | Dates | checkIfAnimalRegDateIsNotAfterAnimalBirthDate | ValidationChecks | Yes |
| 13 | PETS AND STRAY ANIMALS | PET | REGISTRATION/EDIT | Pet mother and father tag ID can’t be the same | Checks if pet’s mother and father tag ID are the same | Other | checkIfAnimalsMotherAndFatherHaveSameAnimalId | ValidationChecks | Yes |
| 14 | PETS AND STRAY ANIMALS | PET | REGISTRATION/EDIT | Pet’s mother tag ID is not registered | Checks if mother tag ID exists | Other | checkIfAnimalMotherTagIdExist | ValidationChecks | Yes |
| 15 | PETS AND STRAY ANIMALS | PET | REGISTRATION/EDIT | Pet’s mother gender must be female | Checks if mother gender is valid | Other | checkIfAnimalMotherGenderIsValid | ValidationChecks | Yes |
| 16 | PETS AND STRAY ANIMALS | PET | REGISTRATION/EDIT | Pet’s father tag ID is not registered | Checks if father tag ID exists | Other | checkIfAnimalFatherTagIdExist | ValidationChecks | Yes |
| 17 | PETS AND STRAY ANIMALS | PET | REGISTRATION/EDIT | Pet’s father gender must be male | Checks if father gender is valid | Other | checkIfAnimalFatherGenderIsValid | ValidationChecks | Yes |
| 18 | PETS AND STRAY ANIMALS | PET | REGISTRATION/EDIT | Date of adoption is only available for dogs | Checks if date of adoption is available for other pet type than dog | Other | petValidationSet | ValidationChecks | Yes |
| 19 | PETS AND STRAY ANIMALS | PET | REGISTRATION/EDIT | Date of euthanasia is only available for dogs | Checks if date of euthanasia is available for other pet type than dog | Other | petValidationSet | ValidationChecks | Yes |
| 20 | PETS AND STRAY ANIMALS | PET | REGISTRATION/EDIT | Date of adoption can’t be after death date | Checks if adoption date is after death date | Dates | petValidationSet | ValidationChecks | Yes |
| 21 | PETS AND STRAY ANIMALS | PET | REGISTRATION/EDIT | Date of adoption can’t be in the future | Checks if adoption date is in future | Dates | checkIfDateIsInFuture | ValidationChecks | Yes |
| 22 | PETS AND STRAY ANIMALS | PET | EDIT | Draft passport for pets | Checks if pet has draft passport | Other | checkIfPetHasDraftPassportRequest | Writer | No |
| 23 | PETS AND STRAY ANIMALS | PET | CAMPAIGN | Pet/s match with campaign scope | Checks if pet matches with selected campaign’s scope | Other | checkIfAnimalTypeScopeIsApplicableOnSelectedAnimal | MassActions | Yes |
| 24 | PETS AND STRAY ANIMALS | STRAY_PET | REGISTRATION/EDIT | Pet tag ID must be digit only | Checks if pet tag ID is digit only | Character/number constraints | strayPetValidationSet | ValidationChecks | Yes |
| 25 | PETS AND STRAY ANIMALS | STRAY_PET | REGISTRATION/EDIT | Pet ID must be unique | Checks if pet ID already exists and there is pet with the same ID | Uniqueness | strayPetValidationSet | ValidationChecks | Yes |
| 26 | PETS AND STRAY ANIMALS | STRAY_PET | REGISTRATION/EDIT | Pet type must be entered | Checks if pet type is entered | Mandatory fields | strayPetValidationSet | ValidationChecks | Yes |
| 27 | PETS AND STRAY ANIMALS | STRAY_PET | REGISTRATION/EDIT | Date section is only available for dogs | Checks if date section is available for other type of pets | Other | strayPetValidationSet | ValidationChecks | Yes |
| 28 | PETS AND STRAY ANIMALS | STRAY_PET | REGISTRATION/EDIT | Date of adoption can’t be after death date | Checks if adoption date is after death date | Dates | strayPetValidationSet | ValidationChecks | Yes |
| 29 | PETS AND STRAY ANIMALS | PET_HEALTH_BOOK | REGISTRATION/EDIT | Fields filled by campaign can’t be edited | Checks if fields filled by campaign are edited | Other | checkIfObjectHasBeenEditedDependOnSpecificFields | Reader | Yes |
| 30 | PETS AND STRAY ANIMALS | PET_HEALTH_BOOK | REGISTRATION/EDIT | Is pet allowed to participate in campaign | Checks if pet is allowed to participate in selected campaign | Other | isPetAllowedToParticipateInCampaign | ValidationChecks | No |
| 31 | PETS AND STRAY ANIMALS | PET_HEALTH_BOOK | REGISTRATION/EDIT | Pet/s match with campaign scope | Checks if pet matches with selected campaign’s scope | Other | checkIfAnimalTypeScopeIsApplicableOnSelectedAnimal | ValidationChecks | Yes |
| 32 | PETS AND STRAY ANIMALS | PET_HEALTH_BOOK | REGISTRATION/EDIT | Date of action can’t be after date of expiration | Checks if date of action is after date of expiration | Dates | petHealthBookValidationSet | ValidationChecks | No |
| 33 | PETS AND STRAY ANIMALS | PET_HEALTH_BOOK | REGISTRATION/EDIT | Date of action can’t be in the future | Checks if action date is in future | Dates | checkIfDateIsInFuture | ValidationChecks | Yes |
| 34 | PETS AND STRAY ANIMALS | PET_PASSPORT | REGISTRATION/EDIT | Valid passport exists for selected pet | Checks if valid passport exists for pet | Other | petPassportValidationSet | ValidationChecks | Yes |
| 35 | PETS AND STRAY ANIMALS | PET_PASSPORT | REGISTRATION/EDIT | Date of issuing can’t be after date of delivery | Checks if issuing date is after delivery date | Dates | petPassportValidationSet | ValidationChecks | Yes |
| 36 | PETS AND STRAY ANIMALS | PET_PASSPORT | REGISTRATION/EDIT | Date of expiration can’t be before date of delivery | Check s if expiration date is before delivery date | Dates | petPassportValidationSet | ValidationChecks | Yes |
| 37 | PETS AND STRAY ANIMALS | PET_PASSPORT | REGISTRATION/EDIT | Date of expiration can’t be before date of issuing | Checks if date of expiration date is before issuing date | Dates | petPassportValidationSet | ValidationChecks | Yes |
| 38 | PETS AND STRAY ANIMALS | HEALTH_PASSPORT | REGISTRATION/EDIT | Holding name must be entered | Checks if holding name is null | Mandatory fields | healthPassportValidationSet | ValidationChecks | Yes |
| 39 | PETS AND STRAY ANIMALS | HEALTH_PASSPORT | REGISTRATION/EDIT | Pet ID must be entered | Checks if pet ID is null | Mandatory fields | healthPassportValidationSet | ValidationChecks | Yes |
| 40 | PETS AND STRAY ANIMALS | HEALTH_PASSPORT | REGISTRATION/EDIT | Date from must be entered | Checks if date from is null | Mandatory fields | healthPassportValidationSet | ValidationChecks | Yes |
| 41 | PETS AND STRAY ANIMALS | HEALTH_PASSPORT | REGISTRATION/EDIT | Date to must be entered | Checks if date to is null | Mandatory fields | healthPassportValidationSet | ValidationChecks | Yes |
| 42 | PETS AND STRAY ANIMALS | HEALTH_PASSPORT | REGISTRATION/EDIT | Pet owner must be entered in the passport | Checks if pet owner is entered in the passport | Mandatory fields | healthPassportValidationSet | ValidationChecks | Yes |
| 43 | PETS AND STRAY ANIMALS | HEALTH_PASSPORT | REGISTRATION/EDIT | Date valid from can’t be after valid to | Checks if valid from is after valid to | Dates | healthPassportValidationSet | ValidationChecks | Yes |