content: package com.alibaba.tesla.authproxy.model;
  
  import java.io.Serializable;
  
  /**
   * <p>Title: PermissionDO.java<／p>
   * <p>Description: 权限信息实体类<／p>
   * <p>Copyright: Copyright (c) 2017<／p>
   * <p>Company: alibaba <／p>
   *
   * @author tandong.td@alibaba-inc.com
   * @version 1.0
   * @date 2017年4月9日
   */
  public class PermissionDO implements Serializable {
  
      private static final long serialVersionUID = 1L;
      private Long id;
      /**
       * 应用ID，标示菜单属于哪个应用下，适用于多个应用系统使用同一套菜单权限管理
       */
      private String appId;
      private String permissionCode;
      private String permissionName;
      private String permissionTitle;
      private Integer permissionType;
      private String memo;
      private Integer isEnable;
      /**
       * 扩展信息：权限审批链接地址
       */
      private String applyLink;
      /**
       * 扩展属性，是否有权限访问
       */
      private boolean accessible;
  
      public String getApplyLink() {
          return applyLink;
      }
  
      public void setApplyLink(String applyLink) {
          this.applyLink = applyLink;
      }
  
      public Long getId() {
          return id;
      }
  
      public void setId(Long id) {
          this.id = id;
      }
  
      public String getAppId() {
          return appId;
      }
  
      public void setAppId(String appId) {
          this.appId = appId == null ? null : appId.trim();
      }
  
      public String getPermissionCode() {
          return permissionCode;
      }
  
      public void setPermissionCode(String permissionCode) {
          this.permissionCode = permissionCode == null ? null : permissionCode.trim();
      }
  
      public String getPermissionName() {
          return permissionName;
      }
  
      public void setPermissionName(String permissionName) {
          this.permissionName = permissionName == null ? null : permissionName.trim();
      }
  
      public String getPermissionTitle() {
          return permissionTitle;
      }
  
      public void setPermissionTitle(String permissionTitle) {
          this.permissionTitle = permissionTitle == null ? null : permissionTitle.trim();
      }
  
      public Integer getPermissionType() {
          return permissionType;
      }
  
      public void setPermissionType(Integer permissionType) {
          this.permissionType = permissionType;
      }
  
      public String getMemo() {
          return memo;
      }
  
      public void setMemo(String memo) {
          this.memo = memo == null ? null : memo.trim();
      }
  
      public Integer getIsEnable() {
          return isEnable;
      }
  
      public void setIsEnable(Integer isEnable) {
          this.isEnable = isEnable;
      }
  
      @Override
      public boolean equals(Object that) {
          if (this == that) {
              return true;
          }
          if (that == null) {
              return false;
          }
          if (getClass() != that.getClass()) {
              return false;
          }
          PermissionDO other = (PermissionDO) that;
          return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
                  && (this.getAppId() == null ? other.getAppId() == null : this.getAppId().equals(other.getAppId()))
                  && (this.getPermissionCode() == null ? other.getPermissionCode() == null : this.getPermissionCode().equals(other.getPermissionCode()))
                  && (this.getPermissionName() == null ? other.getPermissionName() == null : this.getPermissionName().equals(other.getPermissionName()))
                  && (this.getPermissionTitle() == null ? other.getPermissionTitle() == null : this.getPermissionTitle().equals(other.getPermissionTitle()))
                  && (this.getPermissionType() == null ? other.getPermissionType() == null : this.getPermissionType().equals(other.getPermissionType()))
                  && (this.getIsEnable() == null ? other.getIsEnable() == null : this.getIsEnable().equals(other.getIsEnable()))
                  && (this.getMemo() == null ? other.getMemo() == null : this.getMemo().equals(other.getMemo()));
      }
  
      @Override
      public int hashCode() {
          final int prime = 31;
          int result = 1;
          result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
          result = prime * result + ((getAppId() == null) ? 0 : getAppId().hashCode());
          result = prime * result + ((getPermissionCode() == null) ? 0 : getPermissionCode().hashCode());
          result = prime * result + ((getPermissionName() == null) ? 0 : getPermissionName().hashCode());
          result = prime * result + ((getPermissionTitle() == null) ? 0 : getPermissionTitle().hashCode());
          result = prime * result + ((getPermissionType() == null) ? 0 : getPermissionType().hashCode());
          result = prime * result + ((getIsEnable() == null) ? 0 : getIsEnable().hashCode());
          result = prime * result + ((getMemo() == null) ? 0 : getMemo().hashCode());
          return result;
      }
  
      @Override
      public String toString() {
          StringBuilder sb = new StringBuilder();
          sb.append(getClass().getSimpleName());
          sb.append(" [");
          sb.append("Hash = ").append(hashCode());
          sb.append(", id=").append(id);
          sb.append(", appId=").append(appId);
          sb.append(", permissionCode=").append(permissionCode);
          sb.append(", permissionName=").append(permissionName);
          sb.append(", permissionTitle=").append(permissionTitle);
          sb.append(", permissionType=").append(permissionType);
          sb.append(", isEnable=").append(isEnable);
          sb.append(", memo=").append(memo);
          sb.append(", serialVersionUID=").append(serialVersionUID);
          sb.append("]");
          return sb.toString();
      }
  }