public class PlatformManageModule extends MiddleFace
限定符和类型 | 字段和说明 |
---|---|
static java.lang.String |
HAS_IND_AUTHORITY |
static java.lang.String |
MARK_STRING |
CURRENT_LEVEL
构造器和说明 |
---|
PlatformManageModule() |
PlatformManageModule(long id) |
PlatformManageModule(java.lang.String name,
java.lang.String description,
long id,
long parentId) |
PlatformManageModule(java.lang.String name,
java.lang.String description,
long id,
long parentId,
boolean appendToLast)
管理菜单项
|
PlatformManageModule(java.lang.String name,
java.lang.String description,
long id,
long parentId,
boolean appendToLast,
boolean hasIndependentAuthority)
管理菜单项
|
PlatformManageModule(java.lang.String name,
java.lang.String description,
long id,
long parentId,
int priority)
管理菜单项
|
PlatformManageModule(java.lang.String name,
java.lang.String description,
long id,
long parentId,
int priority,
boolean hasIndependentAuthority)
管理菜单项
|
限定符和类型 | 方法和说明 |
---|---|
JSONObject |
createJSONConfig()
变成JSON格式
|
boolean |
equals(java.lang.Object obj) |
boolean |
equals4Properties(java.lang.Object obj)
2个对象的属性是否一致
|
java.lang.String |
getDescription() |
java.lang.String |
getName() |
long |
getParentId() |
int |
getPriority() |
int |
hashCode()
获取哈希码
|
protected int |
hashCode4Properties() |
boolean |
hasIndependentAuthority() |
boolean |
isAppendToLast() |
void |
parseJSON(JSONObject jo)
根据JSON数据生成对象
|
void |
setDescription(java.lang.String description) |
void |
setIndependentAuthority(boolean hasIndependentAuthority) |
void |
setName(java.lang.String name) |
void |
setParentId(long parentId) |
void |
setPriority(int priority) |
currentAPILevel, mark4Provider
clone, equals4NoPersistence, getId, setId
public static final java.lang.String MARK_STRING
public static final java.lang.String HAS_IND_AUTHORITY
public PlatformManageModule()
public PlatformManageModule(long id)
public PlatformManageModule(java.lang.String name, java.lang.String description, long id, long parentId)
public PlatformManageModule(java.lang.String name, java.lang.String description, long id, long parentId, int priority)
name
- 名字,为了国际化,一般写成国际化的键description
- 描述,一般不用描述,简写为空字符串id
- 菜单的唯一标识符parentId
- 菜单所属的子菜单,一般来说为1priority
- 菜单的优先级,可以使用次参数将菜单提前public PlatformManageModule(java.lang.String name, java.lang.String description, long id, long parentId, int priority, boolean hasIndependentAuthority)
name
- 名字,为了国际化,一般写成国际化的键description
- 描述,一般不用描述,简写为空字符串id
- 菜单的唯一标识符parentId
- 菜单所属的子菜单,一般来说为1priority
- 菜单的优先级,可以使用次参数将菜单提前hasIndependentAuthority
- 菜单是否拥有独立权限public PlatformManageModule(java.lang.String name, java.lang.String description, long id, long parentId, boolean appendToLast)
name
- 名字,为了国际化,一般写成国际化的键description
- 描述,一般不用描述,简写为空字符串id
- 菜单的唯一标识符parentId
- 菜单所属的子菜单,一般来说为1appendToLast
- 是否将菜单添加到最后public PlatformManageModule(java.lang.String name, java.lang.String description, long id, long parentId, boolean appendToLast, boolean hasIndependentAuthority)
name
- 名字,为了国际化,一般写成国际化的键description
- 描述,一般不用描述,简写为空字符串id
- 菜单的唯一标识符parentId
- 菜单所属的子菜单,一般来说为1appendToLast
- 是否将菜单添加到最后hasIndependentAuthority
- 菜单是否拥有独立权限public long getParentId()
public void setParentId(long parentId)
public java.lang.String getName()
public void setName(java.lang.String name)
public java.lang.String getDescription()
public void setDescription(java.lang.String description)
public int getPriority()
public void setPriority(int priority)
public boolean isAppendToLast()
public boolean hasIndependentAuthority()
public void setIndependentAuthority(boolean hasIndependentAuthority)
public JSONObject createJSONConfig() throws JSONException
JSONException
- 异常public void parseJSON(JSONObject jo) throws JSONException
jo
- JSON数据JSONException
- 异常protected int hashCode4Properties()
hashCode4Properties
在类中 DAOBean
public boolean equals4Properties(java.lang.Object obj)
equals4Properties
在类中 DAOBean
obj
- 要比较的对象