|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.stratelia.webactiv.organization.Table<GroupRow>
com.stratelia.webactiv.organization.GroupTable
public class GroupTable
A GroupTable object manages the ST_Group table.
| Constructor Summary | |
|---|---|
GroupTable(OrganizationSchema schema)
|
|
| Method Summary | |
|---|---|
void |
addUserInGroup(int userId,
int groupId)
Add an user in this group. |
void |
addUsersInGroup(String[] userIds,
int groupId,
boolean checkRelation)
Add an user in this group. |
void |
createGroup(GroupRow group)
Insert a new group row. |
protected GroupRow |
fetchGroup(ResultSet rs)
Fetch the current group row from a resultSet. |
protected GroupRow |
fetchRow(ResultSet rs)
Fetch the current group row from a resultSet. |
String[] |
getAllGroupIds()
Returns all the Group ids. |
GroupRow[] |
getAllGroups()
Returns all the Groups. |
GroupRow[] |
getAllGroupsOfDomain(int domainId)
Returns all the Groups having a given domain id. |
GroupRow[] |
getAllMatchingGroups(GroupRow sampleGroup)
Returns the Group whose fields match those of the given sample group fields. |
String[] |
getAllRootGroupIds()
Returns all the Groups without a superGroup. |
String[] |
getAllRootGroupIdsOfDomain(int domainId)
Returns all the Root Group Ids having a given domain id. |
GroupRow[] |
getAllRootGroups()
Returns all the Groups without a superGroup. |
GroupRow[] |
getAllRootGroupsOfDomain(int domainId)
Returns all the Root Groups having a given domain id. |
String[] |
getDirectGroupIdsInGroupUserRole(int groupUserRoleId)
Returns all the group ids in a given groupUserRole (not recursive). |
String[] |
getDirectGroupIdsInSpaceUserRole(int spaceUserRoleId)
Returns all the group ids in a given spaceUserRole (not recursive). |
String[] |
getDirectGroupIdsInUserRole(int userRoleId)
Returns all the groups in a given userRole (not recursive). |
GroupRow[] |
getDirectGroupsInGroupUserRole(int groupUserRoleId)
Returns all the groups in a given groupUserRole (not recursive). |
GroupRow[] |
getDirectGroupsOfUser(int userId)
Returns all the groups of a given user (not recursive). |
String[] |
getDirectSubGroupIds(int superGroupId)
Returns all the Group ids having a given superGroup. |
GroupRow[] |
getDirectSubGroups(int superGroupId)
Returns all the Groups having a given superGroup. |
GroupRow |
getGroup(int id)
Returns the Group whith the given id. |
GroupRow |
getGroup(int superGroupId,
String name)
Returns the Group whith the given name in the given super group. |
GroupRow |
getGroupBySpecificId(int domainId,
String specificId)
Returns Group whith the given specificId and domainId. |
GroupRow |
getGroupOfGroupUserRole(int groupUserRoleId)
Returns the Group of a given group user role. |
GroupRow |
getRootGroup(String name)
Returns the root Group whith the given name. |
GroupRow |
getSuperGroup(int subGroupId)
Returns the superGroup of a given subGroup. |
GroupRow[] |
getSynchronizedGroups()
Returns all the Groups. |
protected void |
prepareInsert(String insertQuery,
PreparedStatement insert,
GroupRow row)
Set all the parameters of the insert PreparedStatement built from the insertQuery in order to insert the given row. |
protected void |
prepareUpdate(String updateQuery,
PreparedStatement update,
GroupRow row)
Set all the parameters of the update PreparedStatement built from the updateQuery in order to update the given row. |
void |
removeGroup(int id)
Delete the group and all the sub-groups |
void |
removeUserFromGroup(int userId,
int groupId)
Removes an user from this group. |
void |
removeUsersFromGroup(String[] userIds,
int groupId,
boolean checkRelation)
Add an user in this group. |
GroupRow[] |
searchGroups(GroupRow groupModel,
boolean isAnd)
Returns all the Groups satiffying the model |
String[] |
searchGroupsIds(boolean isRootGroup,
int componentId,
int[] aRoleId,
GroupRow groupModel)
Returns all the Groups satifying the model that are direct childs of a specific group |
void |
updateGroup(GroupRow group)
Updates a group row. |
| Methods inherited from class com.stratelia.webactiv.organization.Table |
|---|
addIdToQuery, addParamToQuery, addParamToQuery, addParamToQuery, aliasColumns, getCount, getCount, getIds, getIds, getIds, getIds, getInteger, getInteger, getMatchingRows, getNextId, getRows, getRows, getRows, getRows, getUniqueRow, getUniqueRow, getUniqueRow, insertRow, performPrepareStatementParams, truncate, updateRelation, updateRelation, updateRelation, updateRow |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GroupTable(OrganizationSchema schema)
| Method Detail |
|---|
protected GroupRow fetchGroup(ResultSet rs)
throws SQLException
rs -
SQLException
public GroupRow getGroup(int id)
throws AdminPersistenceException
id -
AdminPersistenceException
public GroupRow getGroupBySpecificId(int domainId,
String specificId)
throws AdminPersistenceException
domainId - specificId -
AdminPersistenceException
public GroupRow getRootGroup(String name)
throws AdminPersistenceException
name -
AdminPersistenceException
public GroupRow getGroup(int superGroupId,
String name)
throws AdminPersistenceException
superGroupId - name -
AdminPersistenceException
public GroupRow[] getAllGroups()
throws AdminPersistenceException
AdminPersistenceException
public GroupRow[] getSynchronizedGroups()
throws AdminPersistenceException
AdminPersistenceException
public String[] getAllGroupIds()
throws AdminPersistenceException
AdminPersistenceException
public GroupRow[] getAllRootGroups()
throws AdminPersistenceException
AdminPersistenceException
public String[] getAllRootGroupIds()
throws AdminPersistenceException
AdminPersistenceException
public GroupRow[] getDirectSubGroups(int superGroupId)
throws AdminPersistenceException
superGroupId -
AdminPersistenceException
public String[] getDirectSubGroupIds(int superGroupId)
throws AdminPersistenceException
superGroupId -
AdminPersistenceException
public GroupRow[] getAllRootGroupsOfDomain(int domainId)
throws AdminPersistenceException
domainId -
AdminPersistenceException
public String[] getAllRootGroupIdsOfDomain(int domainId)
throws AdminPersistenceException
domainId -
AdminPersistenceException
public GroupRow[] getAllGroupsOfDomain(int domainId)
throws AdminPersistenceException
domainId -
AdminPersistenceException
public GroupRow getSuperGroup(int subGroupId)
throws AdminPersistenceException
subGroupId -
AdminPersistenceException
public GroupRow[] getDirectGroupsOfUser(int userId)
throws AdminPersistenceException
userId -
AdminPersistenceException
public String[] getDirectGroupIdsInUserRole(int userRoleId)
throws AdminPersistenceException
userRoleId -
AdminPersistenceException
public String[] getDirectGroupIdsInSpaceUserRole(int spaceUserRoleId)
throws AdminPersistenceException
spaceUserRoleId -
AdminPersistenceException
public GroupRow[] getDirectGroupsInGroupUserRole(int groupUserRoleId)
throws AdminPersistenceException
groupUserRoleId -
AdminPersistenceException
public GroupRow getGroupOfGroupUserRole(int groupUserRoleId)
throws AdminPersistenceException
groupUserRoleId -
AdminPersistenceException
public String[] getDirectGroupIdsInGroupUserRole(int groupUserRoleId)
throws AdminPersistenceException
groupUserRoleId -
AdminPersistenceException
public GroupRow[] getAllMatchingGroups(GroupRow sampleGroup)
throws AdminPersistenceException
sampleGroup -
AdminPersistenceException
public String[] searchGroupsIds(boolean isRootGroup,
int componentId,
int[] aRoleId,
GroupRow groupModel)
throws AdminPersistenceException
isRootGroup - componentId - aRoleId - groupModel -
AdminPersistenceException
public GroupRow[] searchGroups(GroupRow groupModel,
boolean isAnd)
throws AdminPersistenceException
groupModel - isAnd -
AdminPersistenceException
public void createGroup(GroupRow group)
throws AdminPersistenceException
group -
AdminPersistenceException
protected void prepareInsert(String insertQuery,
PreparedStatement insert,
GroupRow row)
throws SQLException
Table
prepareInsert in class Table<GroupRow>SQLException
public void updateGroup(GroupRow group)
throws AdminPersistenceException
group -
AdminPersistenceException
protected void prepareUpdate(String updateQuery,
PreparedStatement update,
GroupRow row)
throws SQLException
Table
prepareUpdate in class Table<GroupRow>SQLException
public void removeGroup(int id)
throws AdminPersistenceException
id -
AdminPersistenceException
public void addUserInGroup(int userId,
int groupId)
throws AdminPersistenceException
userId - groupId -
AdminPersistenceException
public void addUsersInGroup(String[] userIds,
int groupId,
boolean checkRelation)
throws AdminPersistenceException
userIds - groupId - checkRelation -
AdminPersistenceException
public void removeUserFromGroup(int userId,
int groupId)
throws AdminPersistenceException
userId - groupId -
AdminPersistenceException
public void removeUsersFromGroup(String[] userIds,
int groupId,
boolean checkRelation)
throws AdminPersistenceException
userIds - groupId - checkRelation -
AdminPersistenceException
protected GroupRow fetchRow(ResultSet rs)
throws SQLException
fetchRow in class Table<GroupRow>rs -
SQLException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||