All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.tcdng.unify.core.UserToken Maven / Gradle / Ivy

There is a newer version: 2.1.64
Show newest version
/*
 * Copyright 2018-2020 The Code Department.
 * 
 * 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.tcdng.unify.core;

/**
 * Represents an application user token.
 * 
 * @author Lateef Ojulari
 * @since 1.0
 */
public class UserToken {

    private String userLoginId;

    private String userName;

    private String roleCode;

    private String branchCode;

    private String tenantCode;

    private String colorScheme;

    private String ipAddress;

    private String departmentCode;

    private String themePath;

    private String zoneCode;

    private boolean globalAccess;

    private boolean reservedUser;

    private boolean allowMultipleLogin;

    private boolean remote;

    public UserToken(String userLoginId, String userName, String ipAddress, String branchCode, String zoneCode,
            String tenantCode, String colorScheme, boolean globalAccess, boolean reservedUser,
            boolean allowMultipleLogin, boolean remote) {
        this.userLoginId = userLoginId;
        this.userName = userName;
        this.zoneCode = zoneCode;
        this.branchCode = branchCode;
        this.tenantCode = tenantCode;
        this.colorScheme = colorScheme;
        this.ipAddress = ipAddress;
        this.globalAccess = globalAccess;
        this.reservedUser = reservedUser;
        this.allowMultipleLogin = allowMultipleLogin;
        this.remote = remote;
    }

    public String getUserLoginId() {
        return userLoginId;
    }

    public String getUserName() {
        return userName;
    }

    public String getBranchCode() {
        return branchCode;
    }

    public String getTenantCode() {
        return tenantCode;
    }

    public String getZoneCode() {
        return zoneCode;
    }

    public String getColorScheme() {
        return colorScheme;
    }

    public String getIpAddress() {
        return ipAddress;
    }

    public String getDepartmentCode() {
        return departmentCode;
    }

    public void setDepartmentCode(String departmentCode) {
        this.departmentCode = departmentCode;
    }

    public String getRoleCode() {
        return roleCode;
    }

    public void setRoleCode(String roleCode) {
        this.roleCode = roleCode;
    }

    public String getThemePath() {
        return themePath;
    }

    public void setThemePath(String themePath) {
        this.themePath = themePath;
    }

    public boolean isGlobalAccess() {
        return globalAccess;
    }

    public boolean isReservedUser() {
        return reservedUser;
    }

    public boolean isAllowMultipleLogin() {
        return allowMultipleLogin;
    }

    public boolean isRemote() {
        return remote;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy