org.apache.lokahi.core.api.user
Class UserModel
java.lang.Object
org.apache.lokahi.core.common.interfaces.LokahiModel<User>
org.apache.lokahi.core.api.user.UserModel
public class UserModel
- extends LokahiModel<User>
- Version:
- $Id: UserModel.java,v 1.3 2006/03/07 20:18:50 drtobes Exp $
- Author:
- Stephen Toback
Fields inherited from class org.apache.lokahi.core.common.interfaces.LokahiModel |
jp, tpe |
Method Summary |
void |
addUser(User u,
User s,
Function f)
|
void |
addUserToProject(User user,
Function f,
java.lang.String newUserName,
java.lang.String[] functions)
|
void |
addUserToProject(User user,
Function f,
java.lang.String newUserName,
java.lang.String[] contextFunctions,
java.lang.String[] vhostFunctions,
int projectId)
|
void |
deleteUser(User u,
java.util.Collection c,
Function f)
|
void |
deleteUser(User u,
User s,
Function f)
|
User |
getObject(int id)
|
java.util.Collection<User> |
getObjects()
|
java.util.Collection |
listUsers(User u)
|
void |
updateUser(User u,
User s,
Function f)
|
User |
viewUser(int id)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UserModel
public UserModel()
addUser
public void addUser(User u,
User s,
Function f)
throws java.sql.SQLException,
TMCException
- Throws:
java.sql.SQLException
TMCException
deleteUser
public void deleteUser(User u,
User s,
Function f)
throws java.sql.SQLException,
TMCException
- Throws:
java.sql.SQLException
TMCException
deleteUser
public void deleteUser(User u,
java.util.Collection c,
Function f)
throws java.sql.SQLException,
TMCException
- Throws:
java.sql.SQLException
TMCException
updateUser
public void updateUser(User u,
User s,
Function f)
throws java.sql.SQLException,
TMCException
- Throws:
java.sql.SQLException
TMCException
viewUser
public User viewUser(int id)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
listUsers
public java.util.Collection listUsers(User u)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
addUserToProject
public void addUserToProject(User user,
Function f,
java.lang.String newUserName,
java.lang.String[] functions)
throws AuthorizationException,
java.sql.SQLException
- Throws:
AuthorizationException
java.sql.SQLException
addUserToProject
public void addUserToProject(User user,
Function f,
java.lang.String newUserName,
java.lang.String[] contextFunctions,
java.lang.String[] vhostFunctions,
int projectId)
throws AuthorizationException,
java.sql.SQLException,
TMCIllegalArgumentException
- Throws:
AuthorizationException
java.sql.SQLException
TMCIllegalArgumentException
getObjects
public java.util.Collection<User> getObjects()
throws java.sql.SQLException
- Specified by:
getObjects
in class LokahiModel<User>
- Throws:
java.sql.SQLException
getObject
public User getObject(int id)
throws java.sql.SQLException
- Specified by:
getObject
in class LokahiModel<User>
- Throws:
java.sql.SQLException