package com.DocSystem.entity;

import java.io.Serializable;

public class DocAuth  implements Serializable {
    /**
	 * 
	 */
	private static final long serialVersionUID = -1280855707270615692L;

	private Integer id;

    private Integer reposAuthId;

    private Integer userId;

    private Integer groupId;

    private Integer type;

    private Integer priority;

    private Long docId;

    private Integer reposId;

    private Integer isAdmin;

    private Integer access;

    private Integer editEn;

    private Integer addEn;

    private Integer deleteEn;

    private Integer downloadEn;

    private Long uploadSize;

    private Integer heritable;
    
    private String docPath;

    private String docName;

    
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    
    public Integer getReposAuthId() {
        return reposAuthId;
    }

    public void setReposAuthId(Integer reposAuthId) {
        this.reposAuthId = reposAuthId;
    }

    public Integer getUserId() {
        return userId;
    }

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

    public Integer getGroupId() {
        return groupId;
    }

    public void setGroupId(Integer groupId) {
        this.groupId = groupId;
    }

    public Integer getType() {
        return type;
    }

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

    public Integer getPriority() {
        return priority;
    }

    public void setPriority(Integer priority) {
        this.priority = priority;
    }

    public Long getDocId() {
        return docId;
    }

    public void setDocId(Long docId) {
        this.docId = docId;
    }

    public Integer getReposId() {
        return reposId;
    }

    public void setReposId(Integer reposId) {
        this.reposId = reposId;
    }

    public Integer getIsAdmin() {
        return isAdmin;
    }

    public void setIsAdmin(Integer isAdmin) {
        this.isAdmin = isAdmin;
    }

    public Integer getAccess() {
        return access;
    }

    public void setAccess(Integer access) {
        this.access = access;
    }

    public Integer getEditEn() {
        return editEn;
    }

    public void setEditEn(Integer editEn) {
        this.editEn = editEn;
    }

    public Integer getAddEn() {
        return addEn;
    }

    public void setAddEn(Integer addEn) {
        this.addEn = addEn;
    }

    public Integer getDeleteEn() {
        return deleteEn;
    }

    public void setDeleteEn(Integer deleteEn) {
        this.deleteEn = deleteEn;
    }

    public Integer getDownloadEn() {
        return downloadEn;
    }

    public void setDownloadEn(Integer downloadEn) {
        this.downloadEn = downloadEn;
    }
    
    public Long getUploadSize() {
        return uploadSize;
    }

    public void setUploadSize(Long uploadSize) {
        this.uploadSize = uploadSize;
    }

    public Integer getHeritable() {
        return heritable;
    }

    public void setHeritable(Integer heritable) {
        this.heritable = heritable;
    }

    public String getDocPath() {
        return docPath;
    }

    public void setDocPath(String docPath) {
        this.docPath = docPath == null ? null : docPath.trim();
    }

    public String getDocName() {
        return docName;
    }

    public void setDocName(String docName) {
        this.docName = docName == null ? null : docName.trim();
    }
    
    //DocAuth joint doc and user or group Table to get these info
	private String  userName="";	//from user Table
	private String  realName="";	//from user Table
	private String  groupName="";	//from group Table
	
	public String getUserName() {
	    return userName;
	}
	
	public void setUserName(String userName) {
	    this.userName = userName == null ? null : userName.trim();
	}
	
	public String getRealName() {
	    return realName;
	}
	
	public void setRealName(String realName) {
	    this.realName = realName == null ? null : realName.trim();
	}
	
	public String getGroupName() {
	    return groupName;
	}
	
	public void setGroupName(String groupName) {
	    this.groupName = groupName == null ? null : groupName.trim();
	}
}