?? resourceoperator.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 + -