org.nqcx.ncs.commons.app.GlobalApp.java Source code

Java tutorial

Introduction

Here is the source code for org.nqcx.ncs.commons.app.GlobalApp.java

Source

/*
 * Copyright 2017 nqcx.org All right reserved. This software is the confidential and proprietary information
 * of nqcx.org ("Confidential Information"). You shall not disclose such Confidential Information and shall use
 * it only in accordance with the terms of the license agreement you entered into with nqcx.org.
 */

package org.nqcx.ncs.commons.app;

import org.apache.commons.beanutils.PropertyUtils;
import org.nqcx.commons.lang.o.EntityBO;
import org.nqcx.ncs.enums.app.AppStatus;
import org.nqcx.ncs.enums.app.AppType;

/**
 *  app entity
 *
 * @author naqichuan 17/2/23 08:48
 */
public class GlobalApp extends EntityBO implements Cloneable {

    // app 
    private String atiak;
    private String name;
    private AppType type;
    private String domain;
    private String home;
    private String loginUrl;
    private String logoutUrl;
    private String authorizeUrl;
    private String callbackUrl;
    private String infoUrl;
    private String desc;
    private AppStatus status;
    private String locale;

    public GlobalApp() {

    }

    public <T> GlobalApp(T app) {
        try {
            if (app != null)
                PropertyUtils.copyProperties(this, app);
        } catch (Exception e) {
            // nothing to do
        }
    }

    public String getAtiak() {
        return atiak;
    }

    public void setAtiak(String atiak) {
        this.atiak = atiak;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public AppType getType() {
        return type;
    }

    public void setType(AppType type) {
        this.type = type;
    }

    public String getDomain() {
        return domain;
    }

    public void setDomain(String domain) {
        this.domain = domain;
    }

    public String getHome() {
        return home;
    }

    public void setHome(String home) {
        this.home = home;
    }

    public String getLoginUrl() {
        return loginUrl;
    }

    public void setLoginUrl(String loginUrl) {
        this.loginUrl = loginUrl;
    }

    public String getLogoutUrl() {
        return logoutUrl;
    }

    public void setLogoutUrl(String logoutUrl) {
        this.logoutUrl = logoutUrl;
    }

    public String getAuthorizeUrl() {
        return authorizeUrl;
    }

    public void setAuthorizeUrl(String authorizeUrl) {
        this.authorizeUrl = authorizeUrl;
    }

    public String getCallbackUrl() {
        return callbackUrl;
    }

    public void setCallbackUrl(String callbackUrl) {
        this.callbackUrl = callbackUrl;
    }

    public String getInfoUrl() {
        return infoUrl;
    }

    public void setInfoUrl(String infoUrl) {
        this.infoUrl = infoUrl;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public AppStatus getStatus() {
        return status;
    }

    public void setStatus(AppStatus status) {
        this.status = status;
    }

    public String getLocale() {
        return locale;
    }

    public void setLocale(String locale) {
        this.locale = locale;
    }

    @Override
    protected GlobalApp clone() {
        GlobalApp globalApp = null;
        try {
            globalApp = (GlobalApp) super.clone();
        } catch (CloneNotSupportedException e) {
            // nothing to do
        }
        return globalApp;
    }
}