
package org.tsugi;

/**
 * This is a class to provide access to the data for the logged-in user
 *
 * This data comes from the LTI launch from the LMS. 
 * If this is an anonymous launch the User will be null.
 */
public interface User {

    public final int LEARNER_ROLE = 0;
    public final int INSTRUCTOR_ROLE = 1000;
    public final int TENANT_ADMIN_ROLE = 5000;
    public final int ROOT_ADMIN_ROLE = 10000;

    /**
     * Get the launch associated with this object
     */
    public Launch getLaunch();

    /**
     * The integer primary key for this user in this instance of Tsugi.
     */
    public Long getId();

    /**
     * The user's email
     */
    public String getEmail();

    /**
     * The user's display name
     */
    public String getDisplayname();

    /**
     * Is the user a Mentor? (TBD)
     */
    public boolean isMentor();

    /**
     * Is the user an instructor?
     */
    public boolean isInstructor();

    /**
     * Is the user a Tenant Administrator?
     */
    public boolean isTenantAdmin();

    /**
     * Is the user a Tsugi-wide Administrator?
     */
    public boolean isRootAdmin();

}


package org.tsugi;

/**
 * This is a class to provide access to the data for the logged-in user
 *
 * This data comes from the LTI launch from the LMS. 
 * If this is an anonymous launch the User will be null.
 */
public interface User {

    public final int LEARNER_ROLE = 0;
    public final int INSTRUCTOR_ROLE = 1;
    public final int TENANT_ADMIN_ROLE = 1000;
    public final int ROOT_ADMIN_ROLE = 10000;

    /**
     * Get the launch associated with this object
     */
    public Launch getLaunch();

    /**
     * The integer primary key for this user in this instance of Tsugi.
     */
    public Long getId();

    /**
     * The user's email
     */
    public String getEmail();

    /**
     * The user's display name
     */
    public String getDisplayname();

    /**
     * Is the user a Mentor? (TBD)
     */
    public boolean isMentor();

    /**
     * Is the user an instructor?
     */
    public boolean isInstructor();

    /**
     * Is the user a Tenant Administrator?
     */
    public boolean isTenantAdmin();

    /**
     * Is the user a Tsugi-wide Administrator?
     */
    public boolean isRootAdmin();

}

Change the instructor value to be the same as other impls
Change the instructor value to be the same as other impls
