com.xmlserv.app.user
Class Acl
java.lang.Object
|
+--com.xmlserv.app.user.Acl
- public class Acl
- extends java.lang.Object
ACL abstraction class.
Constructor Summary |
Acl(java.sql.Connection con,
int id)
|
Acl(int resourceid,
int roleid)
Create new ACL. |
Acl(int resource,
int role,
boolean can_select,
boolean can_insert,
boolean can_update,
boolean can_delete)
Create new ACL with given access rights. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Acl
public Acl(int resourceid,
int roleid)
throws XMLServException
- Create new ACL.
Acl
public Acl(int resource,
int role,
boolean can_select,
boolean can_insert,
boolean can_update,
boolean can_delete)
throws XMLServException
- Create new ACL with given access rights.
Acl
public Acl(java.sql.Connection con,
int id)
throws XMLServException
save
public void save(java.sql.Connection con)
throws XMLServException
delete
public void delete(java.sql.Connection con)
throws XMLServException
toElement
public org.jdom.Element toElement()
list
public static org.jdom.Element list(java.sql.Connection con,
java.lang.String resourcename)
throws XMLServException
- List ACLs by resource name.
list
public static org.jdom.Element list(java.sql.Connection con,
int resource)
throws XMLServException
- return ACLs for the given resource.
getId
public int getId()
getResource
public int getResource()
setResource
public void setResource(int resource)
getRole
public int getRole()
setRole
public void setRole(int role)
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)