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

}

@@ -825,16 +825,50 @@
 User %7B%0A%0A
+    private final String adminID;%0A
     priv
@@ -897,17 +897,16 @@
 Email;%0A%0A
- 
     /**%0A
@@ -1376,16 +1376,32 @@
 ring id,
+ String adminId,
  String 
@@ -1517,16 +1517,48 @@
 ADMIN);%0A
+        this.adminID = adminId;%0A
         
@@ -1646,17 +1646,16 @@
 .%0A     *
- 
 %0A     * 
@@ -1784,10 +1784,180 @@
 %0A    %7D%0A%0A
+    /**%0A     * Returns admin's id.%0A     *%0A     * @return String object for admin's id information%0A     */%0A    public String getAdminID() %7B%0A        return adminID;%0A    %7D%0A%0A
 %7D%0A

Add feature to store admin id