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)
           
 
Method Summary
 int getId()
           
 java.lang.String getName()
           
 int getRolegroup()
           
 boolean isCan_delete()
           
 boolean isCan_insert()
           
 boolean isCan_select()
           
 boolean isCan_update()
           
static org.jdom.Element list(java.sql.Connection con, int rolegroup)
           
 void save(java.sql.Connection con)
           
 void setCan_delete(boolean can_delete)
           
 void setCan_insert(boolean can_insert)
           
 void setCan_select(boolean can_select)
           
 void setCan_update(boolean can_update)
           
 void setName(java.lang.String name)
           
 void setRolegroup(int rolegroup)
           
 org.jdom.Element toElement()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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)
Method Detail

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)