com.xmlserv.app.user
Class Role
java.lang.Object
|
+--com.xmlserv.app.user.Role
- public class Role
- extends java.lang.Object
Role abstraction.
Constructor Summary |
Role(java.sql.Connection con,
int id)
|
Role(java.lang.String name)
|
Role(java.lang.String name,
int rolegroup)
|
Role(java.lang.String name,
int rolegroup,
boolean can_select,
boolean can_insert,
boolean can_update,
boolean can_delete)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Role
public Role(java.lang.String name)
throws XMLServException
Role
public Role(java.lang.String name,
int rolegroup)
throws XMLServException
Role
public Role(java.sql.Connection con,
int id)
throws XMLServException
Role
public Role(java.lang.String name,
int rolegroup,
boolean can_select,
boolean can_insert,
boolean can_update,
boolean can_delete)
save
public void save(java.sql.Connection con)
throws XMLServException
toElement
public org.jdom.Element toElement()
throws XMLServException
list
public static org.jdom.Element list(java.sql.Connection con,
int rolegroup)
throws XMLServException
getId
public int getId()
getName
public java.lang.String getName()
setName
public void setName(java.lang.String name)
getRolegroup
public int getRolegroup()
setRolegroup
public void setRolegroup(int rolegroup)
isCan_select
public boolean isCan_select()
setCan_select
public void setCan_select(boolean can_select)
isCan_insert
public boolean isCan_insert()
setCan_insert
public void setCan_insert(boolean can_insert)
isCan_update
public boolean isCan_update()
setCan_update
public void setCan_update(boolean can_update)
isCan_delete
public boolean isCan_delete()
setCan_delete
public void setCan_delete(boolean can_delete)