com.jxml.qare.qhome.db
Class DBLocalPrivileges.Row
java.lang.Object
|
+--com.jxml.qare.qhome.db.DBLocalPrivileges.Row
- All Implemented Interfaces:
- DBRow
- Enclosing class:
- DBLocalPrivileges
- public class DBLocalPrivileges.Row
- extends Object
- implements DBRow
Constructor Summary |
DBLocalPrivileges.Row(DBApplication.Row application,
DBPrivilege.Row privilege,
DBLocalPrivileges.Row parent,
DBUser.Row grantor,
DBUser.Row delegee,
DBProject.Row project,
Date aquisitionDate,
int delegationLimit,
int delegationCount,
int delegationDepth,
int localPrivilegeId)
|
aquisitionDate
public Date aquisitionDate
delegationLimit
public int delegationLimit
delegationCount
public int delegationCount
delegationDepth
public int delegationDepth
DBLocalPrivileges.Row
public DBLocalPrivileges.Row(DBApplication.Row application,
DBPrivilege.Row privilege,
DBLocalPrivileges.Row parent,
DBUser.Row grantor,
DBUser.Row delegee,
DBProject.Row project,
Date aquisitionDate,
int delegationLimit,
int delegationCount,
int delegationDepth,
int localPrivilegeId)
throws Exception
distance
public int distance(DBUser.Row user)
- Returns -1 if user is not associated with this privilege
getExport
public DBExportDelegation getExport(DBUser.Row user)
update
public void update()
throws Exception
delete
public void delete()
throws Exception
closed
public boolean closed()
getApplicationId
public DBApplication.Row getApplicationId()
getPrivilege
public DBPrivilege.Row getPrivilege()
getGrantor
public DBUser.Row getGrantor()
getDelegee
public DBUser.Row getDelegee()
getProject
public DBProject.Row getProject()
getParent
public DBLocalPrivileges.Row getParent()
getLocalPrivilegeId
public int getLocalPrivilegeId()
getDepth
public int getDepth()
getKeys
public List getKeys()
- Specified by:
getKeys
in interface DBRow
getKey
public Object getKey()
- Specified by:
getKey
in interface DBRow
equals
public boolean equals(Object o)
- Overrides:
equals
in class Object
backup
public void backup(DataOutputStream dos)
throws Exception
- Specified by:
backup
in interface DBRow
updateChildDepth
public void updateChildDepth()
throws Exception
valid
public boolean valid(int delegationDepth,
int newLimit,
int oldLimit)
getChildren
public List getChildren()
throws Exception
getAllChildren
public List getAllChildren()
throws Exception
updatePrivilege
public void updatePrivilege(int newDelegeeDepth,
int newDelegeeLimit)
throws Exception
notifyUsers
public void notifyUsers()
throws Exception
notifyUsers
public void notifyUsers(DBLocalPrivileges.Row lp)
throws Exception
matchUser
public boolean matchUser(DBUser.Row u)