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

com.alibaba.dts.common.domain.store.assemble.AssembledUserGroup Maven / Gradle / Ivy

package com.alibaba.dts.common.domain.store.assemble;

import java.util.List;

import com.alibaba.dts.common.domain.store.UserGroupRelation;

/**
 * 分组列表中对应的封装用户分组类,里面每个属性都是页面看到的;
 * @author luliang.ll
 *
 */
public class AssembledUserGroup {

	private String userId;

	private String systemDefineGroupId;

	// 分组描述
	private String groupDesc;

	// 每个分组的Job数
	private int groupJobNum;

	// 分组所在的集群ID,有反查集群需求通过这个变量;
	private long clusterId;

	//安全控制
	private String securityControl;

	/** 创建job控制流程 */
	private boolean createJobFlow;

	/** 更新job控制流程 */
	private boolean updateJobFlow;

	/** 删除job控制流程 */
	private boolean deleteJobFlow;

	private String edasGroupId;

	private String env;

	private List relationList;

	private boolean enableCreateJob;

    /**
     * json转换成对象
     *  json
     *
     */
/*    public static AssembledUserGroup newInstance(String json) {
        return RemotingSerializable.fromJson(json, AssembledUserGroup.class);
    }

    *//**
     * 对象转换成json
     *//*
    @Override
    public String toString() {
        return RemotingSerializable.toJson(this, false);
    }*/

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}


	public String getGroupDesc() {
		return groupDesc;
	}

	public String acquireGroupDescReplase() {
		return groupDesc.replaceAll("\n", " ").replaceAll("\r", " ");
	}

	public void setGroupDesc(String groupDesc) {
		this.groupDesc = groupDesc;
	}

	public int getGroupJobNum() {
		return groupJobNum;
	}

	public void setGroupJobNum(int groupJobNum) {
		this.groupJobNum = groupJobNum;
	}

	public String getSystemDefineGroupId() {
		return systemDefineGroupId;
	}

	public void setSystemDefineGroupId(String systemDefineGroupId) {
		this.systemDefineGroupId = systemDefineGroupId;
	}

	public long getClusterId() {
		return clusterId;
	}

	public void setClusterId(long clusterId) {
		this.clusterId = clusterId;
	}

	public List getRelationList() {
		return relationList;
	}

	public void setRelationList(List relationList) {
		this.relationList = relationList;
	}

	public String getSecurityControl() {
		return securityControl;
	}

	public void setSecurityControl(String securityControl) {
		this.securityControl = securityControl;
	}

/*	public void setSecurityControl(String securityControl) {

		if(StringUtil.isBlank(securityControl)) {
			return ;
		}

		this.securityControl = securityControl;

		SecurityControl sc = SecurityControl.newInstance(securityControl);

		setCreateJobFlow(sc.isCreateJobFlow());
		setUpdateJobFlow(sc.isUpdateJobFlow());
		setDeleteJobFlow(sc.isDeleteJobFlow());
	}*/

	public boolean isCreateJobFlow() {
		return createJobFlow;
	}

	public void setCreateJobFlow(boolean createJobFlow) {
		this.createJobFlow = createJobFlow;
	}

	public boolean isUpdateJobFlow() {
		return updateJobFlow;
	}

	public void setUpdateJobFlow(boolean updateJobFlow) {
		this.updateJobFlow = updateJobFlow;
	}

	public boolean isDeleteJobFlow() {
		return deleteJobFlow;
	}

	public void setDeleteJobFlow(boolean deleteJobFlow) {
		this.deleteJobFlow = deleteJobFlow;
	}

	public String getEdasGroupId() {
		return edasGroupId;
	}

	public void setEdasGroupId(String edasGroupId) {
		this.edasGroupId = edasGroupId;
	}

	public String getEnv() {
		return env;
	}

	public void setEnv(String env) {
		this.env = env;
	}

	public boolean isEnableCreateJob() {
        return enableCreateJob;
    }

    public void setEnableCreateJob(boolean enableCreateJob) {
        this.enableCreateJob = enableCreateJob;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy