📄 resourcevo.java
字号:
//Source file: C:\\Java\\workspace\\MyApps\\src\\cn\\myapps\\core\\resource\\ejb\\ResourceVO.java
package cn.myapps.core.resource.ejb;
import java.io.Serializable;
import java.util.Collection;
import java.util.Set;
import cn.myapps.base.dao.ValueObject;
/**
* @hibernate.class table="T_RESOURCE" lazy="false"
*/
public class ResourceVO extends ValueObject {
/**
* 主键
*/
private String id;
/**
* 资源描述
*/
private String description;
/**
* 英文描述
*/
private String engdescription;
/**
* 资源URL
*/
private String actionurl;
/**
* 资源类URL = Namespace + action
*/
private String actionclass;
/*
* 其他url 当actionurl未被填写是方能有效
*/
private String otherurl;
/**
* Action 方法
*/
private String actionmethod;
/**
* 资源类型:菜单 or 页面
*/
private String type;
/**
* 排序字段
*/
private String orderno;
/**
* 是否受保护
*/
private boolean isprotected;
/**
* 菜单图标
*/
private String ico;
private ResourceVO superior;
private String application;
private String module;
private String displayView;
private String resourceAction;
private String reportAppliction;
private String reportModule;
private String report;
private Set relatedPermissions;
public static final String ACTIONTYPE_NONE = "00";
public static final String ACTIONTYPE_VIEW = "01";
public static final String ACTIONTYPE_ACTIONClASS = "02";
public static final String ACTIONTYPE_OTHEROUR = "03";
public static final String ACTIONTYPE_REPORT = "04";
/**
* @return java.lang.String
* @hibernate.property column="ACTIONCLASS "
* @roseuid 44C5FC6C00E5
*/
public String getActionclass() {
return actionclass;
}
/**
* @return java.lang.String
* @hibernate.property column = "ACTIONMETHOD"
* @roseuid 44C5FC6C012B
*/
public String getActionmethod() {
return actionmethod;
}
/**
* @return java.lang.String
* @hibernate.property column="ACTIONURL"
* @roseuid 44C5FC6C00A9
*/
public String getActionurl() {
return actionurl;
}
/**
* @return java.lang.String
* @hibernate.property column="DESCRIPTION"
* @roseuid 44C5FC6C0026
*/
public String getDescription() {
return description;
}
/**
* @return java.lang.String
* @hibernate.property column="ENGDESCRIPTION"
* @roseuid 44C5FC6C006D
*/
public String getEngdescription() {
return engdescription;
}
/**
* @return java.lang.String
* @hibernate.property column = "ICO"
* @roseuid 44C5FC6C0289
*/
public String getIco() {
return ico;
}
/**
* @return the current value of the id property
* @hibernate.id column="ID" generator-class = "assigned"
* @roseuid 44C5FC6B03D2
*/
public String getId() {
return id;
}
/**
* @return java.lang.String
* @hibernate.property column = "ORDERNO"
* @roseuid 44C5FC6C01FD
*/
public String getOrderno() {
return orderno;
}
/**
* @hibernate.many-to-one class = "cn.myapps.core.resource.ejb.ResourceVO"
* column = "SUPERIOR"
* @return Returns the superior.
* @roseuid 44C7A18A029F
*/
public ResourceVO getSuperior() {
return superior;
}
/**
* @return java.lang.String
* @hibernate.property column = "TYPE"
* @roseuid 44C5FC6C017B
*/
public String getType() {
return type;
}
/**
* @param aActionclass
* @roseuid 44C5FC6C00F9
*/
public void setActionclass(String aActionclass) {
actionclass = aActionclass;
}
/**
* @param aActionmethod
* @roseuid 44C5FC6C0149
*/
public void setActionmethod(String aActionmethod) {
actionmethod = aActionmethod;
}
/**
* @param aActionurl
* @roseuid 44C5FC6C00BD
*/
public void setActionurl(String aActionurl) {
actionurl = aActionurl;
}
/**
* @param aDescription
* @roseuid 44C5FC6C003B
*/
public void setDescription(String aDescription) {
description = aDescription;
}
/**
* @param aEngdescription
* @roseuid 44C5FC6C0077
*/
public void setEngdescription(String aEngdescription) {
engdescription = aEngdescription;
}
/**
* @param aIco
* @roseuid 44C5FC6C029D
*/
public void setIco(String aIco) {
ico = aIco;
}
/**
* Sets the value of the id property.
*
* @param aId
* the new value of the id property
*
* @param aId
* @roseuid 44C5FC6B03DC
*/
public void setId(String aId) {
id = aId;
}
/**
* @param aOrderno
* @roseuid 44C5FC6C0211
*/
public void setOrderno(String aOrderno) {
orderno = aOrderno;
}
/**
* @param superior
* @roseuid 44C7A18A02A8
*/
public void setSuperior(ResourceVO superior) {
this.superior = superior;
}
/**
* @param aType
* @roseuid 44C5FC6C018F
*/
public void setType(String aType) {
type = aType;
}
/**
* @hibernate.property column="OTHERURL"
*/
public String getOtherurl() {
return otherurl;
}
public void setOtherurl(String otherurl) {
this.otherurl = otherurl;
}
/**
* @return java.lang.String
* @hibernate.property column = "APPLICATION"
* @roseuid 44C5FC6C012B
*/
public String getApplication() {
return application;
}
public void setApplication(String application) {
this.application = application;
}
/**
* @return java.lang.String
* @hibernate.property column = "DISPLAYVIEW"
* @roseuid 44C5FC6C012B
*/
public String getDisplayView() {
return displayView;
}
public void setDisplayView(String displayView) {
this.displayView = displayView;
}
/**
* @return java.lang.String
* @hibernate.property column = "MODULE"
* @roseuid 44C5FC6C012B
*/
public String getModule() {
return module;
}
public void setModule(String module) {
this.module = module;
}
/**
* @return java.lang.String
* @hibernate.property column = "RESOURCEACTION"
* @roseuid 44C5FC6C012B
*/
public String getResourceAction() {
return resourceAction;
}
public void setResourceAction(String resourceAction) {
this.resourceAction = resourceAction;
}
/**
* @hibernate.set name="permission" table="T_PERMISSION" cascade="delete"
* @hibernate.collection-key column="RESOURCE_ID"
* @hibernate.collection-one-to-many class="cn.myapps.core.permission.ejb.PermissionVO"
* @return
*/
public Set getRelatedPermissions() {
return relatedPermissions;
}
public void setRelatedPermissions(Set relatedPermissions) {
this.relatedPermissions = relatedPermissions;
}
/**
* @hibernate.property column = "ISPROTECTEDS"
*/
public boolean isIsprotected() {
return isprotected;
}
public void setIsprotected(boolean isprotected) {
this.isprotected = isprotected;
}
/**
* @hibernate.property column="REPORT"
*/
public String getReport() {
return report;
}
/**
* @param report The report to set.
*/
public void setReport(String report) {
this.report = report;
}
/**
* @hibernate.property column="REPORTAPPLICTION"
*/
public String getReportAppliction() {
return reportAppliction;
}
/**
* @param reportAppliction The reportAppliction to set.
*/
public void setReportAppliction(String reportAppliction) {
this.reportAppliction = reportAppliction;
}
/**
* @hibernate.property column="REPORTMODULE"
*/
public String getReportModule() {
return reportModule;
}
/**
* @param reportModule The reportModule to set.
*/
public void setReportModule(String reportModule) {
this.reportModule = reportModule;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -