/*
 * 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;
    }
    
    

}

/*
 * 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;

/**
 * The child class of {@link User} for Administrators user role.
 *
 * @author Ryan Gilera
 */
class AdminUser extends User {

    private final String adminEmail;

     /**
     * Creates a new AdminUser object with parameter values namely the user id,
     * admin's email, first name and last name.
     *
     * @param userId The identifying id for a user
     * @param lecturerId The identifying id for a lecturer
     * @param email The email assigned by the College which acts as a username
     * @param firstname The first name of the lecturer
     * @param lastname The last name of the lecturer
     */
    public AdminUser(String id, String adminEmail, String firstname,
            String lastname) {
        super(id, firstname, lastname, UserType.ADMIN);
        this.adminEmail = adminEmail;
    }

    /**
     * Returns admin's email address.
     * 
     * @return String object for admin's email information
     */
    public String getadminEmail() {
        return adminEmail;
    }

}

Add admin user child class
Add admin user child class
