|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.stratelia.webactiv.organization.Table<SpaceUserRoleRow>
com.stratelia.webactiv.organization.SpaceUserRoleTable
public class SpaceUserRoleTable
A SpaceUserRoleTable object manages the ST_SpaceUserRole table.
Constructor Summary | |
---|---|
SpaceUserRoleTable(OrganizationSchema organization)
|
Method Summary | |
---|---|
void |
addGroupInSpaceUserRole(int groupId,
int spaceUserRoleId)
Adds a group in a spaceUserRole. |
void |
addUserInSpaceUserRole(int userId,
int spaceUserRoleId)
Add an user in a spaceUserRole. |
void |
createSpaceUserRole(SpaceUserRoleRow spaceUserRole)
Inserts in the database a new spaceUserRole row. |
protected SpaceUserRoleRow |
fetchRow(ResultSet rs)
Fetch the current spaceUserRole row from a resultSet. |
protected SpaceUserRoleRow |
fetchSpaceUserRole(ResultSet rs)
Fetch the current spaceUserRole row from a resultSet. |
SpaceUserRoleRow[] |
getAllMatchingSpaceUserRoles(SpaceUserRoleRow sampleSpaceUserRole)
Returns the SpaceUserRole whose fields match those of the given sample SpaceUserRole fields. |
String[] |
getAllSpaceUserRoleIdsOfSpace(int spaceId)
Returns all the SpaceUserRole ids of a space. |
SpaceUserRoleRow[] |
getAllSpaceUserRoles()
Returns all the SpaceUserRoles. |
SpaceUserRoleRow[] |
getAllSpaceUserRolesOfSpace(int spaceId)
Returns all the SpaceUserRoles of a space. |
SpaceUserRoleRow[] |
getDirectSpaceUserRolesOfGroup(int groupId)
Returns all the direct SpaceUserRoles of a group. |
SpaceUserRoleRow[] |
getDirectSpaceUserRolesOfUser(int userId)
Returns all the direct SpaceUserRoles of user. |
SpaceUserRoleRow |
getSpaceUserRole(int id)
Returns the SpaceUserRole whith the given id. |
SpaceUserRoleRow |
getSpaceUserRole(int spaceId,
String roleName,
int inherited)
Returns the SpaceUserRole whith the given RoleName in the given space. |
boolean |
isGroupDirectlyInRole(int groupId,
int spaceUserRoleId)
Tests if a group has a given role (not recursive). |
boolean |
isUserDirectlyInRole(int userId,
int spaceUserRoleId)
Tests if a user has a given role (not recursive). |
protected void |
prepareInsert(String insertQuery,
PreparedStatement insert,
SpaceUserRoleRow 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,
SpaceUserRoleRow row)
Set all the parameters of the update PreparedStatement built from the updateQuery in order to update the given row. |
void |
removeAllGroupsFromSpaceUserRole(int spaceUserRoleId)
Removes all groups from a spaceUserRole. |
void |
removeAllUsersFromSpaceUserRole(int spaceUserRoleId)
Removes all users from a spaceUserRole. |
void |
removeGroupFromSpaceUserRole(int groupId,
int spaceUserRoleId)
Removes a group from a spaceUserRole. |
void |
removeSpaceUserRole(int id)
Delete the spaceUserRole |
void |
removeUserFromSpaceUserRole(int userId,
int spaceUserRoleId)
Removes an user from a spaceUserRole. |
void |
updateSpaceUserRole(SpaceUserRoleRow spaceUserRole)
Updates a spaceUserRole |
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 SpaceUserRoleTable(OrganizationSchema organization)
Method Detail |
---|
protected SpaceUserRoleRow fetchSpaceUserRole(ResultSet rs) throws SQLException
SQLException
public SpaceUserRoleRow getSpaceUserRole(int id) throws AdminPersistenceException
AdminPersistenceException
public SpaceUserRoleRow getSpaceUserRole(int spaceId, String roleName, int inherited) throws AdminPersistenceException
AdminPersistenceException
public SpaceUserRoleRow[] getAllSpaceUserRoles() throws AdminPersistenceException
AdminPersistenceException
public SpaceUserRoleRow[] getAllSpaceUserRolesOfSpace(int spaceId) throws AdminPersistenceException
AdminPersistenceException
public String[] getAllSpaceUserRoleIdsOfSpace(int spaceId) throws AdminPersistenceException
AdminPersistenceException
public SpaceUserRoleRow[] getDirectSpaceUserRolesOfUser(int userId) throws AdminPersistenceException
AdminPersistenceException
public SpaceUserRoleRow[] getDirectSpaceUserRolesOfGroup(int groupId) throws AdminPersistenceException
AdminPersistenceException
public SpaceUserRoleRow[] getAllMatchingSpaceUserRoles(SpaceUserRoleRow sampleSpaceUserRole) throws AdminPersistenceException
AdminPersistenceException
public void createSpaceUserRole(SpaceUserRoleRow spaceUserRole) throws AdminPersistenceException
AdminPersistenceException
protected void prepareInsert(String insertQuery, PreparedStatement insert, SpaceUserRoleRow row) throws SQLException
Table
prepareInsert
in class Table<SpaceUserRoleRow>
SQLException
public void updateSpaceUserRole(SpaceUserRoleRow spaceUserRole) throws AdminPersistenceException
AdminPersistenceException
protected void prepareUpdate(String updateQuery, PreparedStatement update, SpaceUserRoleRow row) throws SQLException
Table
prepareUpdate
in class Table<SpaceUserRoleRow>
SQLException
public void removeSpaceUserRole(int id) throws AdminPersistenceException
AdminPersistenceException
public boolean isUserDirectlyInRole(int userId, int spaceUserRoleId) throws AdminPersistenceException
AdminPersistenceException
public void addUserInSpaceUserRole(int userId, int spaceUserRoleId) throws AdminPersistenceException
AdminPersistenceException
public void removeUserFromSpaceUserRole(int userId, int spaceUserRoleId) throws AdminPersistenceException
AdminPersistenceException
public void removeAllUsersFromSpaceUserRole(int spaceUserRoleId) throws AdminPersistenceException
AdminPersistenceException
public boolean isGroupDirectlyInRole(int groupId, int spaceUserRoleId) throws AdminPersistenceException
AdminPersistenceException
public void addGroupInSpaceUserRole(int groupId, int spaceUserRoleId) throws AdminPersistenceException
AdminPersistenceException
public void removeGroupFromSpaceUserRole(int groupId, int spaceUserRoleId) throws AdminPersistenceException
AdminPersistenceException
public void removeAllGroupsFromSpaceUserRole(int spaceUserRoleId) throws AdminPersistenceException
AdminPersistenceException
protected SpaceUserRoleRow fetchRow(ResultSet rs) throws SQLException
fetchRow
in class Table<SpaceUserRoleRow>
SQLException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |