/*
 * Copyright 2015 Ryan Gilera.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.github.daytron.revworks.authentication;

import com.github.daytron.revworks.data.UserType;

/**
 *
 * @author Ryan Gilera
 */
class StudentUser extends User {

    private final String studentID;

    public StudentUser(String id, String studentID, String firstname, 
            String lastname, UserType userType) {
        super(id, firstname, lastname, userType);
        this.studentID = studentID;
    }

    public String getStudentID() {
        return studentID;
    }
    
    

}

@@ -698,16 +698,81 @@
 e;%0A%0A/**%0A
+ * The child class of %7B@link User%7D for Administrators user role.%0A
  *%0A * @a
@@ -799,23 +799,21 @@
 /%0Aclass 
-Student
+Admin
 User ext
@@ -854,38 +854,486 @@
 ing 
-studentID;%0A%0A    public Student
+adminEmail;%0A%0A     /**%0A     * Creates a new AdminUser object with parameter values namely the user id,%0A     * admin's email, first name and last name.%0A     *%0A     * @param userId The identifying id for a user%0A     * @param lecturerId The identifying id for a lecturer%0A     * @param email The email assigned by the College which acts as a username%0A     * @param firstname The first name of the lecturer%0A     * @param lastname The last name of the lecturer%0A     */%0A    public Admin
 User
@@ -1351,25 +1351,26 @@
  String 
-studentID
+adminEmail
 , String
@@ -1380,17 +1380,16 @@
 rstname,
- 
 %0A       
@@ -1412,27 +1412,8 @@
 name
-, UserType userType
 ) %7B%0A
@@ -1455,16 +1455,22 @@
 me, 
-u
+U
 serType
+.ADMIN
 );%0A 
@@ -1485,37 +1485,160 @@
 his.
-studentID = studentID;
+adminEmail = adminEmail;%0A    %7D%0A%0A    /**%0A     * Returns admin's email address.%0A     * %0A     * @return String object for admin's email information
 %0A    
-%7D%0A
+ */
 %0A   
@@ -1659,17 +1659,18 @@
  get
-StudentID
+adminEmail
 () %7B
@@ -1689,34 +1689,25 @@
 urn 
-studentID;%0A    %7D%0A    %0A    
+adminEmail;%0A    %7D
 %0A%0A%7D%0A

Add admin user child class