|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.knowgate.dataobjs.DBPersist
com.knowgate.acl.ACLGroup
Security Role Groups
| Nested Class Summary |
| Nested classes inherited from class java.util.Map |
java.util.Map.Entry |
| Field Summary | |
static short |
ClassId
|
| Fields inherited from class com.knowgate.dataobjs.DBPersist |
AllVals, sAuditCls, sAuditUsr, sTransactId |
| Constructor Summary | |
ACLGroup()
Default constructor. |
|
ACLGroup(java.lang.String sGroupUId)
Construct object and set gu_acl_group field. |
|
| Method Summary | |
int |
addACLUser(JDCConnection oConn,
java.lang.String sIdUser)
Add User to Group. |
int |
addACLUsers(JDCConnection oConn,
java.lang.String sUserList)
Add Users to Group. |
int |
clearACLUsers(JDCConnection oConn)
Remove all users from this group. |
static boolean |
delete(JDCConnection oConn,
java.lang.String sGroupGUID)
Delete Group |
static java.lang.String |
getIdFromName(java.sql.Connection oConn,
int iDomainId,
java.lang.String sGroupNm)
Get Group Unique Id. |
static java.lang.String |
getIdFromName(JDCConnection oConn,
int iDomainId,
java.lang.String sGroupNm)
Get Group Unique Id. |
int |
removeACLUser(JDCConnection oConn,
java.lang.String sIdUser)
Remove User from Group. |
boolean |
store(JDCConnection oConn)
Store a register at database representing this instance of DBPersist |
| Methods inherited from class com.knowgate.dataobjs.DBPersist |
allcaps, allcaps, changelog, clear, clone, containsKey, containsValue, delete, entrySet, exists, get, get, getAuditClassName, getCreationDate, getDate, getDateFormated, getDateShort, getDecimal, getDecimalFormated, getDouble, getDoubleFormated, getFloat, getFloatFormated, getInt, getInteger, getItemMap, getItems, getShort, getString, getStringNull, getTable, getTable, getTableName, getTime, getTimeOfDay, getTimestamp, getUIdFromName, isEmpty, isNull, iterator, keySet, load, load, parseXML, put, put, put, put, put, put, put, put, put, put, put, put, put, put, put, put, putAll, putAll, remove, remove, replace, replace, replace, replace, setAuditTransact, setAuditUser, size, toLowerCase, toUpperCase, toXML, toXML, toXML, values |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.util.Map |
equals, hashCode |
| Field Detail |
public static final short ClassId
| Constructor Detail |
public ACLGroup()
public ACLGroup(java.lang.String sGroupUId)
sGroupUId - Group Unique Identifier| Method Detail |
public boolean store(JDCConnection oConn)
throws java.sql.SQLException
DBPersistStore a register at database representing this instance of DBPersist
Insertions and updates : The store method automatically manages register insertions and updates. If the stored object already exists at database then it is updated, if it does not exists then it is inserted. A primary key violation error is never thrown so ther is no need to call delete() method before re-writing an existing object.
NULL fields : All values not set calling put() methods for DBPersist
will be assumed to be NULL. If a not nullable field is not set then an
SQLException will be raised.
On storing an already existing object all values will we overwrited,
so is a DBPersist is not fully loaded before storing it, values not set
by calling put() methods that already were present at database will be lost.
store in class DBPersistoConn - Database Connection
java.sql.SQLException
public int addACLUser(JDCConnection oConn,
java.lang.String sIdUser)
throws java.sql.SQLException
Add User to Group.
Insert new register at k_x_group_user table.
oConn - Database ConnectionsIdUser - User Unique Identifier.
java.sql.SQLException - May throw a primary key constraint violation is user already belongs to group.
public int addACLUsers(JDCConnection oConn,
java.lang.String sUserList)
throws java.sql.SQLException
Add Users to Group.
Insert new registers at k_x_group_user table.
oConn - Database ConnectionsUserList - A string of comma delimited User GUIDs that must be added to this ACLGroup.
java.sql.SQLException - May throw a primary key constraint violation is user already belongs to group.
public int removeACLUser(JDCConnection oConn,
java.lang.String sIdUser)
throws java.sql.SQLException
Remove User from Group.
remove register from k_x_group_user table.
oConn - Database ConnectionsIdUser - User Unique Identifier.
java.sql.SQLException
public int clearACLUsers(JDCConnection oConn)
throws java.sql.SQLException
Remove all users from this group.
Delete registers from k_x_group_user
oConn - Database connection
java.sql.SQLException
public static java.lang.String getIdFromName(java.sql.Connection oConn,
int iDomainId,
java.lang.String sGroupNm)
throws java.sql.SQLException
Get Group Unique Id. from its name.
This method executes a SQL query with a ResultSet
oConn - Connection Database ConnectioniDomainId - int Domain Identifier to with Group belongssGroupNm - String Group Name
java.sql.SQLException
public static java.lang.String getIdFromName(JDCConnection oConn,
int iDomainId,
java.lang.String sGroupNm)
throws java.sql.SQLException
Get Group Unique Id. from its name.
This method calls k_sp_get_group_id stored procedure.
oConn - JDCConnectioniDomainId - int Domain Identifier to with Group belongssGroupNm - Group Name
java.sql.SQLException
public static boolean delete(JDCConnection oConn,
java.lang.String sGroupGUID)
throws java.sql.SQLException
Delete Group
Call k_sp_del_group stored procedure
oConn - Database ConnectionsGroupGUID - Group Unique Identifier
java.sql.SQLException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||