⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 resourceoperator.java

📁 基于java的组号查询模块
💻 JAVA
字号:
/* $RCSfile: ResourceOperator.java,v $
* Created on 2006-10-20 by zouxuemo
* $Source: /LilyDAPCVS/myAppfuse/src/dao/com/lily/dap/model/right/ResourceOperator.java,v $
* $Id: ResourceOperator.java,v 1.2 2006/11/25 02:30:23 zxm Exp $
* Copyright (c) 2005 Jiffle Ltd.  All rights reserved.
*/ 
package com.lily.dap.model.right;

import com.lily.dap.model.BaseObject;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

/** 
 * 对指定资源的操作权限设置
 * 
 * @author zouxuemo
 * @version $Revision: 1.2 $
 *
 * @hibernate.class table="right_resource_operator"
 */
public class ResourceOperator extends BaseObject {
	/** Comment for <code>serialVersionUID</code> */
	private static final long serialVersionUID = -9216668912239096948L;

	/** ID */
	private long id = 0;
	
	/** 资源所属分类 */
	private String resourceClass = "";
	
	/** 资源对象 */
	private long resourceId = 0;
	
	/** 资源操作编码 */
	private String operationCode = "";
	
	/** 资源操作名称 */
	private String operationName = "";
	
	/** 能够进行资源操作的操作者(以","分隔的组织机构数据格式:xx@person,xx@post,xx@department,xx@group,...) */
	private String operator = "";

	/** 操作者名单 */
	private String operatorAlias = "";
	
	/** @return Returns the id.
     * 
     * @hibernate.id column="id"
     *  generator-class="native" unsaved-value="0"
	 */
	public long getId() {
		return id;
	}

	/** @param id The id to set.
	 */
	public void setId(long id) {
		this.id = id;
	}

	/** @return Returns the resourceClass.
     * 
     * @hibernate.property 
     * @hibernate.column name="resourceClass" not-null="true" length="20"
	 */
	public String getResourceClass() {
		return resourceClass;
	}

	/** @param resourceClass The resourceClass to set.
	 */
	public void setResourceClass(String resourceClass) {
		this.resourceClass = resourceClass;
	}

	/** @return Returns the resourceId.
     * 
     * @hibernate.property 
     * @hibernate.column name="resourceId" not-null="true"
	 */
	public long getResourceId() {
		return resourceId;
	}

	/** @param resourceId The resourceId to set.
	 */
	public void setResourceId(long resourceId) {
		this.resourceId = resourceId;
	}

	/** @return Returns the operationCode.
     * 
     * @hibernate.property 
     * @hibernate.column name="operationCode" not-null="true" length="20"
	 */
	public String getOperationCode() {
		return operationCode;
	}

	/** @param operationCode The operationCode to set.
	 */
	public void setOperationCode(String operationCode) {
		this.operationCode = operationCode;
	}

	/** @return Returns the operationName.
	 */
	public String getOperationName() {
		return operationName;
	}

	/** @param operationName The operationName to set.
	 */
	public void setOperationName(String operationName) {
		this.operationName = operationName;
	}

	/** @return Returns the operator.
     * 
     * @hibernate.property 
     * @hibernate.column name="operator" not-null="true" length="1000"
	 */
	public String getOperator() {
		return operator;
	}

	/** @param operator The operator to set.
	 */
	public void setOperator(String operator) {
		this.operator = operator;
	}

	/** @return Returns the operatorAlias.
	 */
	public String getOperatorAlias() {
		return operatorAlias;
	}

	/** @param operatorAlias The operatorAlias to set.
	 */
	public void setOperatorAlias(String operatorAlias) {
		this.operatorAlias = operatorAlias;
	}

	/**
	 * @see java.lang.Object#equals(Object)
	 */
	public boolean equals(Object object) {
		if (!(object instanceof ResourceOperator)) {
			return false;
		}
		ResourceOperator rhs = (ResourceOperator) object;
		return new EqualsBuilder().append(
				this.operator, rhs.operator).append(this.resourceClass,
				rhs.resourceClass).append(this.id, rhs.id).append(
				this.operationCode, rhs.operationCode).append(this.resourceId,
				rhs.resourceId).isEquals();
	}

	/**
	 * @see java.lang.Object#hashCode()
	 */
	public int hashCode() {
		return new HashCodeBuilder(-983360455, -744674703).append(this.operator).append(
				this.resourceClass).append(this.id).append(this.operationCode)
				.append(this.resourceId).toHashCode();
	}

	/**
	 * @see java.lang.Object#toString()
	 */
	public String toString() {
		return new ToStringBuilder(this).toString();
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -