Detailed Design Document
CPSC 451 Supplier Group #1

Department of Computer Science
University of Calgary
27 February 1997

Page maintainer: Terrence Asgar-Deen
terrence@cpsc.ucalgary.ca

  • Terrence Asgar-Deen
  • Patrick Chan
  • Thomas Hui
  • Carsten Jaeger
  • Matthew Johnson
  • Brian Low
  • Hoang Nguyen
  • Kevin Pattison
  • Csaba Suveges
  • Jeremy Tang
  • Leena Thakkar
  • Al-Amin Vira
  • Lin Zhang

  • Delete User

     

    Deleting a user is described in the above diagram. The administrator passes the user ID to the system.

    The system checks to see if the corresponding user possesses any customers by checking the Customer datastore before flagging the user as inactive (deleted).

    The returned status corresponds to the success of the operation. If the user is successfully flagged as deleted in the user datastore, the status returns Successful. If the user still possesses any customers, the administrator is notified of this condition and must transfer the customers to another salesperson.


    P-Spec

    Process ID 1.D.4
    Process Name Delete User
    Inputs user ID
    Outputs None
    Permissible User Administrator
    Assumptions All information entered is syntactically correct.
    Error Conditions The user ID entered does not exist.
    There are customers still assigned to the user.
    Successful

    Data Elements (Data Dictionary)

    Name customers
    Kind Data movement in DFD
    Type Instance of an Entity
    Description This data element corresponds to one or more complete instances of the Entity Customer.

    Name status
    Kind Data movement in DFD
    Type Return Message
    Description This data element corresponds to an error message being returned from an operation. An error message may be both successful and unsuccessful. Unsuccessful error messages are further subcategorized into different errors based on the possible errors that can occur in an operation.

    Name user
    Kind Data movement in DFD
    Type Instance of an Entity
    Description This data element corresponds to a complete instance of the Entity User.

    Name user ID
    Kind Primary Key
    Type Integer
    Description A primary key attribute of entity User.

    The maximum length is 8 digits.

    The format is the type integer.
    For example: 35492543

    The primary key specifies the unique user identification number in the company.