| org.objectweb.salome_tmf.api.sql.ISQLPersonne
All known Subclasses: org.objectweb.salome_tmf.databaseSQL.SQLPersonne, org.objectweb.salome_tmf.soap.SQLPersonneSoapBindingStub,
ISQLPersonne | public interface ISQLPersonne extends Remote(Code) | | |
Method Summary | |
public void | deleteById(int idUser) | public void | deleteByLogin(String userLogin) | public void | deleteInProject(int idUser, String projectName) | public int | getID(String login) | public String | getLogin(int idUser) | public String | getName(int idUser) | public int | getPermissionOfUser(int idProject, String userLogin) | public String | getTwoName(int idUser) | public UserWrapper | getUserById(int idUser) | public UserWrapper | getUserByLogin(String login) | public int | insert(String login, String name, String firstName, String desc, String email, String tel, String pwd, boolean crypth) | public void | update(int idUser, String newLogin, String newName, String newFirstName, String newDesc, String newEmail, String newTel) | public String | updatePassword(String userLogin, String newPassword, boolean crypth) |
deleteById | public void deleteById(int idUser) throws Exception(Code) | | Delete an user in the database
the clean all reference about user in project and group
if user is the unique admin of an project, the project is deleted
Parameters: idUser - throws: Exception - no permission needed |
deleteByLogin | public void deleteByLogin(String userLogin) throws Exception(Code) | | Delete an user in the database
the clean all reference about user in project and group
if user is the unique admin of an project, the project is deleted
Parameters: userLogin - throws: Exception - no permission needed |
deleteInProject | public void deleteInProject(int idUser, String projectName) throws Exception(Code) | | Delete user reference in project
Parameters: idUser - Parameters: projectName - throws: Exception - |
getLogin | public String getLogin(int idUser) throws Exception(Code) | | Get the login of the user identified by idUser
Parameters: idUser - throws: Exception - |
getName | public String getName(int idUser) throws Exception(Code) | | Get the name of the user identified by idUser
Parameters: idUser - throws: Exception - |
getPermissionOfUser | public int getPermissionOfUser(int idProject, String userLogin) throws Exception(Code) | | Get the permission of an user in a projet idProject
Parameters: idProject - Parameters: userLogin - throws: Exception - |
getTwoName | public String getTwoName(int idUser) throws Exception(Code) | | Get the last and the fist name of the user identified by idUser
Parameters: idUser - throws: Exception - |
insert | public int insert(String login, String name, String firstName, String desc, String email, String tel, String pwd, boolean crypth) throws Exception(Code) | | Insert a user to the datadase
Parameters: login - Parameters: name - Parameters: firstName - Parameters: desc - Parameters: email - Parameters: tel - Parameters: pwd - throws: Exception - no permission needed |
update | public void update(int idUser, String newLogin, String newName, String newFirstName, String newDesc, String newEmail, String newTel) throws Exception(Code) | | Update information about user identified by idUser
Parameters: idUser - Parameters: newLogin - Parameters: newName - Parameters: newFirstName - Parameters: newDesc - Parameters: newEmail - Parameters: newTel - throws: Exception - no permission needed |
updatePassword | public String updatePassword(String userLogin, String newPassword, boolean crypth) throws Exception(Code) | | Update the password for User userLogin with newPassword
Parameters: userLogin - Parameters: newPassword - Parameters: crypt - (true to crypte the password in MD5) the new crypted password throws: Exception - no permission needed |
|
|