|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.stratelia.webactiv.organization.Table<UserRow>
com.stratelia.webactiv.organization.UserTable
public class UserTable
A UserTable object manages the ST_User table.
Constructor Summary | |
---|---|
UserTable(OrganizationSchema schema)
|
Method Summary | |
---|---|
void |
createUser(UserRow user)
Inserts in the database a new user row. |
protected UserRow |
fetchRow(ResultSet rs)
Fetch the current user row from a resultSet. |
protected UserRow |
fetchUser(ResultSet rs)
Fetch the current user row from a resultSet. |
String[] |
getAllAdminIds(UserDetail fromUser)
Returns all the Admin ids. |
String[] |
getAllUserIds()
Returns all the User ids. |
UserRow[] |
getAllUserOfDomain(int domainId)
Returns all the Users having a given domain id. |
UserRow[] |
getAllUsers()
Returns all the Users. |
String[] |
getDirectUserIdsOfGroup(int groupId)
Returns all the User ids which compose a group. |
String[] |
getDirectUserIdsOfGroupUserRole(int groupUserRoleId)
Returns all the User ids having directly a given group userRole. |
String[] |
getDirectUserIdsOfSpaceUserRole(int spaceUserRoleId)
Returns all the User ids having directly a given space userRole. |
String[] |
getDirectUserIdsOfUserRole(int userRoleId)
Returns all the User ids having directly a given role. |
UserRow[] |
getDirectUsersOfGroup(int groupId)
Returns all the Users which compose a group. |
UserRow[] |
getDirectUsersOfGroupUserRole(int groupUserRoleId)
Returns all the Users having directly a given group userRole. |
UserRow |
getUser(int id)
Returns the User whith the given id. |
UserRow |
getUserByLogin(int domainId,
String login)
Returns the User with the given domainId and login. |
UserRow |
getUserBySpecificId(int domainId,
String specificId)
Returns the User with the given specificId and login. |
String[] |
getUserIdsByAccessLevel(UserAccessLevel accessLevel)
Returns all the User ids. |
String[] |
getUserIdsOfDomain(int domainId)
Returns all the User ids having a given domain id. |
String[] |
getUserIdsOfDomainByAccessLevel(int domainId,
UserAccessLevel accessLevel)
Returns all the User ids for the specified domain and access level. |
int |
getUserNumber()
Returns the User number |
int |
getUserNumberOfDomain(int domainId)
|
UserRow[] |
getUsersByEmail(String email)
Returns the users whose fields match those of the given sample space fields. |
UserRow[] |
getUsersBySpecificIds(int domainId,
List<String> specificIds)
Returns the User with the given specificId and login. |
protected void |
prepareInsert(String insertQuery,
PreparedStatement insert,
UserRow 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,
UserRow row)
Set all the parameters of the update PreparedStatement built from the updateQuery in order to update the given row. |
void |
removeUser(int id)
Removes a user row. |
UserRow[] |
searchUsers(UserRow userModel,
boolean isAnd)
Returns all the Users satisfying the model. |
String[] |
searchUsersIds(List<String> userIds,
UserRow userModel)
Returns all user ids satisfying the model. |
void |
updateUser(UserRow user)
Update a user 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 UserTable(OrganizationSchema schema)
Method Detail |
---|
protected UserRow fetchUser(ResultSet rs) throws SQLException
rs
-
SQLException
public int getUserNumberOfDomain(int domainId) throws AdminPersistenceException
AdminPersistenceException
public int getUserNumber() throws AdminPersistenceException
AdminPersistenceException
public UserRow getUser(int id) throws AdminPersistenceException
id
-
AdminPersistenceException
public UserRow getUserBySpecificId(int domainId, String specificId) throws AdminPersistenceException
domainId
- specificId
-
AdminPersistenceException
public UserRow[] getUsersBySpecificIds(int domainId, List<String> specificIds) throws AdminPersistenceException
domainId
- specificIds
-
AdminPersistenceException
public UserRow getUserByLogin(int domainId, String login) throws AdminPersistenceException
domainId
- login
-
AdminPersistenceException
public UserRow[] getAllUsers() throws AdminPersistenceException
AdminPersistenceException
public String[] getAllUserIds() throws AdminPersistenceException
AdminPersistenceException
public String[] getAllAdminIds(UserDetail fromUser) throws AdminPersistenceException
fromUser
-
AdminPersistenceException
public String[] getUserIdsByAccessLevel(UserAccessLevel accessLevel) throws AdminPersistenceException
accessLevel
-
AdminPersistenceException
public String[] getUserIdsOfDomainByAccessLevel(int domainId, UserAccessLevel accessLevel) throws AdminPersistenceException
domainId
- accessLevel
-
AdminPersistenceException
public UserRow[] getDirectUsersOfGroup(int groupId) throws AdminPersistenceException
groupId
-
AdminPersistenceException
public String[] getDirectUserIdsOfGroup(int groupId) throws AdminPersistenceException
groupId
-
AdminPersistenceException
public String[] getDirectUserIdsOfUserRole(int userRoleId) throws AdminPersistenceException
userRoleId
-
AdminPersistenceException
public UserRow[] getAllUserOfDomain(int domainId) throws AdminPersistenceException
domainId
-
AdminPersistenceException
public String[] getUserIdsOfDomain(int domainId) throws AdminPersistenceException
domainId
-
AdminPersistenceException
public String[] getDirectUserIdsOfSpaceUserRole(int spaceUserRoleId) throws AdminPersistenceException
spaceUserRoleId
-
AdminPersistenceException
public UserRow[] getDirectUsersOfGroupUserRole(int groupUserRoleId) throws AdminPersistenceException
groupUserRoleId
-
AdminPersistenceException
public String[] getDirectUserIdsOfGroupUserRole(int groupUserRoleId) throws AdminPersistenceException
groupUserRoleId
-
AdminPersistenceException
public String[] searchUsersIds(List<String> userIds, UserRow userModel) throws AdminPersistenceException
userIds
- userModel
-
AdminPersistenceException
public UserRow[] searchUsers(UserRow userModel, boolean isAnd) throws AdminPersistenceException
userModel
- isAnd
-
AdminPersistenceException
public UserRow[] getUsersByEmail(String email) throws AdminPersistenceException
email
-
AdminPersistenceException
public void createUser(UserRow user) throws AdminPersistenceException
user
-
AdminPersistenceException
protected void prepareInsert(String insertQuery, PreparedStatement insert, UserRow row) throws SQLException
Table
prepareInsert
in class Table<UserRow>
SQLException
public void updateUser(UserRow user) throws AdminPersistenceException
user
-
AdminPersistenceException
protected void prepareUpdate(String updateQuery, PreparedStatement update, UserRow row) throws SQLException
Table
prepareUpdate
in class Table<UserRow>
SQLException
public void removeUser(int id) throws AdminPersistenceException
id
-
AdminPersistenceException
protected UserRow fetchRow(ResultSet rs) throws SQLException
fetchRow
in class Table<UserRow>
SQLException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |