Validator Examples - KostasMparmparousis/uLookup GitHub Wiki

Τα παρακάτω responses προκύπτουν ύστερα από επιτυχείς/ολοκληρωμένες κλήσεις του Validator:

No conflicts.

Αίτηση δημιουργίας λογαριασμού η οποία δεν επιστρέφει κανένα conflict βάσει αναζήτησης με το loginName. Πιθανά είναι τα παρακάτω σενάρια:

  • Είναι ο πρώτος λογαριασμός του υποψηφίου στο ίδρυμα (100).
{
  "Response code": 100,
  "Message": "No conflicts. Also this will probably be the Person's first Account in any registry."
}
  • Θέλει να χρησιμοποιήσει το συγκεκριμένο loginName που του έχει γινει reserved (101).
{
  "Response code": 101,
  "Message": "No conflicts. The Person has already reserved the requested loginName."
}
  • Θέλει να ξαναχρησιμοποιήσει το συγκεκριμένο loginName που του ανήκει ήδη (102).
{
  "Response code": 102,
  "Message": "No conflicts. The Person owns the requested loginName."
}
  • Ενώ το υποψήφιο loginName είναι διαθέσιμο, σε κάποιο registry βρέθηκε για τον αιτούμενο ένα ήδη υπάρχων loginName (110).
{
  "Response code": 110,
  "Message": "No conflicts. But this Person already owns a different loginName.",
  "personPairedWith": [
    "gunetdemo"
  ]
}

Conflicts found.

Αίτηση δημιουργίας λογαριασμού η οποία επιστρέφει conflict βάσει αναζήτησης με το loginName. Πιθανά είναι τα παρακάτω σενάρια:

  • Ένα η παραπάνω attribute πέρα απο τους primary identifiers (SSN,SSNCountry) ήταν διαφορετικό μεταξύ του Request και των δεδομένων σε κάποιο Registry (200).
{
  "Response code": 200,
  "Message": "Conflicts found. After the lookup SSN-SSNCountry were identical, but one or more of the remaining attributes were different."
}
  • Το υποψήφιο loginName υπάρχει και ανήκει σε έναν διαφορετικό χρήστη. Ωστόσο βρέθηκε ενα ήδη υπάρχων loginName για τον αιτούμενο (210).
{
  "Response code": 210,
  "Message": "Conflicts found. The requested loginName belongs to someone else. However this Person is already paired with a different loginName."
}
  • Το υποψήφιο loginName υπάρχει και ανήκει σε έναν διαφορετικό χρήστη. Επιπλέον δεν βρέθηκε κάποιο υπάρχων loginName για τον αιτούμενο (220).
{
  "Response code": 220,
  "Message": "Conflicts found. The requested loginName belongs to someone else."
}

Διαθέσιμη προς χρήση είναι και η επιλογή verbose. Έχοντας την ενεργοποιημένη σε περίπτωση Conflict θα εμφανιστεί μια αναλυτική περιγραφή για την προέλευση αυτού. Για παράδειγμα:

{
  "Response code": 220,
  "Message": "Conflicts found. The requested loginName belongs to someone else.",
  "conflicts": [
    {
      "type": "existing-login",
      "description": "A record exists in 'SIS DB View' with the same loginName, but a different SSN",
      "conflictingData": "SSN",
      "conflictingRecordKey": "registrationID=1628-00-000000,systemID=086EDB91-E6F5-485C-A3AD-BC6E08590F6E",
      "conflictSource": "sis",
      "requestValue": "12312312313",
      "conflictingValue": "12312312312"
    },
    {
      "type": "existing-login",
      "description": "A record exists in 'HRMS DB View' with the same loginName, but a different SSN",
      "conflictingData": "SSN",
      "conflictingRecordKey": "registrationID=ΔΠ-9128,systemID=1802",
      "conflictSource": "hrms",
      "requestValue": "12312312313",
      "conflictingValue": "12312312312"
    },
    {
      "type": "existing-login",
      "description": "A record exists in 'DS' with the same loginName, but a different SSN",
      "conflictingData": "SSN",
      "conflictingRecordKey": "academicID=E2Q4KXGLNSPLB25T8TLLT5",
      "conflictSource": "ds",
      "requestValue": "12312312313",
      "conflictingValue": "12312312312"
    },
    {
      "type": "existing-login",
      "description": "A record exists in 'HRMS DB View' with the same loginName, but a different SSN",
      "conflictingData": "SSN",
      "conflictingRecordKey": "registrationID=θΑΧ031115,systemID=1802",
      "conflictSource": "hrms",
      "requestValue": "12312312313",
      "conflictingValue": "12312312312"
    },
    {
      "type": "existing-login",
      "description": "A record exists in 'Associates DB View' with the same loginName, but a different SSN",
      "conflictingData": "SSN",
      "conflictingRecordKey": "registrationID=1,systemID=1",
      "conflictSource": "associates",
      "requestValue": "12312312313",
      "conflictingValue": "12312312312"
    },
    {
      "type": "existing-login",
      "description": "A record exists in 'HRMS DB View' with the same loginName, but a different SSN",
      "conflictingData": "SSN",
      "conflictingRecordKey": "registrationID=ΔΠ-9128,systemID=1802",
      "conflictSource": "hrms",
      "requestValue": "12312312313",
      "conflictingValue": "12312312312"
    },
    {
      "type": "existing-login",
      "description": "A record exists in 'Associates DB View' with the same loginName, but a different SSN",
      "conflictingData": "SSN",
      "conflictingRecordKey": "registrationID=1,systemID=1",
      "conflictSource": "associates",
      "requestValue": "12312312313",
      "conflictingValue": "12312312312"
    }
  ]
}

Warning.

Ενδέχεται να υπάρξουν περιπτώσεις στις οποίες τα δεδομένα διαθέσιμα στα registries δεν μας αρκούν ώστε να καταλήξουμε με σιγουριά στο αποτέλεσμα No conflicts/Conflicts found. Αυτές οι περιπτώσεις είναι:

  • Αίτηση δημιουργίας λογαριασμού με ολοκληρωμένα στοιχεία, του οποίου όμως το loginName εντοπίστηκε ότι έχει ήδη καταχωρηθεί στον Directory Service χωρίς να έχει ακολουθηθεί η τυπική διαδικασία δημιουργίας λογαριασμού (300).
{
  "Response code": 300,
  "Message": "A user with that loginName was found in the DS, but he was not created following the typical Account generation procedure."
}
  • Αίτηση δημιουργίας λογαριασμού με ολοκληρωμένα στοιχεία, του οποίου όμως για το loginName ενω υπάρχει τουλάχιστον μία εγγραφή σε κάποιο source, δεν βρέθηκαν επαρκή στοιχεία ώστε να μπορούμε να πούμε με σιγουριά ότι πρόκειται για το ίδιο άτομο (1 ή περισσότερα απο τα πεδία SSN, SSNCountry είναι NULL παντού) (310).
{
  "Response code": 310,
  "Message": "LoginName was found after lookup, however we can not examine if it belongs to the same Person. One or more primary identifiers were NULL."
}