Class TeamAppSoapMockStub
java.lang.Object
com.collabnet.ce.soap60.webservices.ClientSoapStub
com.collabnet.ce.soap60.webservices.ClientSoapMockStub
com.collabnet.ce.soap60.webservices.team.TeamAppSoapMockStub
- All Implemented Interfaces:
ITeamAppSoap
-
Field Summary
Fields inherited from class com.collabnet.ce.soap60.webservices.ClientSoapMockStub
DATE_WILDCARD, GUIDKEY_WILDCARD, INTEGER_WILDCARD, LONG_WILDCARD, STRING_WILDCARD
Fields inherited from class com.collabnet.ce.soap60.webservices.ClientSoapStub
DEFAULT_CLIENT_TIME_OUT
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
checkUserPermission
(String projectId, String loggedInUser) Simulate a call to checkUserPermissioncreateTeam
(String sessionId, String projectId, String title, String description, String parentTeamId, String teamOwnerUserName, String[] memberUserNames) Simulate a call to createTeamvoid
deleteTeam
(String sessionId, String teamId) Simulate a call to deleteTeamgetChildTeamList
(String sessionId, String parentTeamId) Simulate a call to getChildTeamListgetTeamData
(String sessionId, String teamId) Simulate a call to getTeamDatagetTeamListForProject
(String sessionId, String projectId) Simulate a call to getTeamListForProjectgetTeamMemberList
(String sessionId, String teamId) Simulate a call to getTeamMemberListvoid
prepareCheckUserPermission
(String projectId, String loggedInUser) Prepare a simulated response to checkUserPermissionvoid
prepareCheckUserPermission
(String projectId, String loggedInUser, Exception exception) Prepare a simulated response to checkUserPermissionvoid
prepareCreateTeam
(String sessionId, String projectId, String title, String description, String parentTeamId, String teamOwnerUserName, String[] memberUserNames, Object returnValue) Prepare a simulated response to createTeamvoid
prepareDeleteTeam
(String sessionId, String teamId) Prepare a simulated response to deleteTeamvoid
prepareDeleteTeam
(String sessionId, String teamId, Exception exception) Prepare a simulated response to deleteTeamvoid
prepareGetChildTeamList
(String sessionId, String parentTeamId, Object returnValue) Prepare a simulated response to getChildTeamListvoid
prepareGetTeamData
(String sessionId, String teamId, Object returnValue) Prepare a simulated response to getTeamDatavoid
prepareGetTeamListForProject
(String sessionId, String projectId, Object returnValue) Prepare a simulated response to getTeamListForProjectvoid
prepareGetTeamMemberList
(String sessionId, String teamId, Object returnValue) Prepare a simulated response to getTeamMemberListvoid
prepareSetTeamData
(String sessionId, String teamId, String title, String description, String teamOwnerUserName, String[] memberUserNames, int version) Prepare a simulated response to setTeamDatavoid
prepareSetTeamData
(String sessionId, String teamId, String title, String description, String teamOwnerUserName, String[] memberUserNames, int version, Exception exception) Prepare a simulated response to setTeamDatavoid
setTeamData
(String sessionId, String teamId, String title, String description, String teamOwnerUserName, String[] memberUserNames, int version) Simulate a call to setTeamDataMethods inherited from class com.collabnet.ce.soap60.webservices.ClientSoapMockStub
addSimulatedResult, addSimulatedResult, addSimulatedResult, getCallCount, getCallParameters, getUnusedCalls, simulateCall
Methods inherited from class com.collabnet.ce.soap60.webservices.ClientSoapStub
getServiceCall, getSoapServer, getTimeout, setTimeout, soapParam
-
Constructor Details
-
TeamAppSoapMockStub
-
-
Method Details
-
prepareCreateTeam
public void prepareCreateTeam(String sessionId, String projectId, String title, String description, String parentTeamId, String teamOwnerUserName, String[] memberUserNames, Object returnValue) Prepare a simulated response to createTeam -
createTeam
public TeamSoapDO createTeam(String sessionId, String projectId, String title, String description, String parentTeamId, String teamOwnerUserName, String[] memberUserNames) throws RemoteException Simulate a call to createTeam- Specified by:
createTeam
in interfaceITeamAppSoap
- Parameters:
sessionId
- User session id.projectId
- The id of the project under which to create the new teamtitle
- The title of the new teamdescription
- The description of the new teamparentTeamId
- The id of the parent teamteamOwnerUserName
- The team owner namememberUserNames
- The members of the team- Returns:
- the team soap object
- Throws:
InvalidSessionFault
- when the specified session id is invalid.PermissionDeniedFault
- when the user has insufficient privileges.SystemFault
- when an unexpected system error occurs.NoSuchObjectFault
- when the specified object id is invalid.ObjectAlreadyExistsFault
- if an existing team already exists.IllegalArgumentFault
- if invalid argument value was supplied.InvalidProjectFault
- if invalid project id value was supplied.InvalidTeamFault
- if invalid team id value was supplied.RemoteException
- See Also:
-
prepareSetTeamData
public void prepareSetTeamData(String sessionId, String teamId, String title, String description, String teamOwnerUserName, String[] memberUserNames, int version) Prepare a simulated response to setTeamData -
prepareSetTeamData
public void prepareSetTeamData(String sessionId, String teamId, String title, String description, String teamOwnerUserName, String[] memberUserNames, int version, Exception exception) Prepare a simulated response to setTeamData -
setTeamData
public void setTeamData(String sessionId, String teamId, String title, String description, String teamOwnerUserName, String[] memberUserNames, int version) throws RemoteException Simulate a call to setTeamData- Specified by:
setTeamData
in interfaceITeamAppSoap
- Parameters:
sessionId
- User session id.teamId
- The team Id.title
- The team title.description
- The team description.teamOwnerUserName
- The team owner user name.memberUserNames
- The member user names.version
- The version number.- Throws:
InvalidSessionFault
- when the specified session id is invalid.PermissionDeniedFault
- when the user has insufficient privileges.SystemFault
- when an unexpected system error occurs.NoSuchObjectFault
- when the specified object id is invalid.ObjectAlreadyExistsFault
- if an existing team already exists.IllegalArgumentFault
- if invalid argument value was supplied.InvalidTeamFault
- if invalid team id value was supplied.VersionMismatchFault
- if invalid version number was supplied.RemoteException
- See Also:
-
prepareGetTeamData
Prepare a simulated response to getTeamData -
getTeamData
Simulate a call to getTeamData- Specified by:
getTeamData
in interfaceITeamAppSoap
- Parameters:
sessionId
- User session id.teamId
- The team id.- Returns:
- the team soap object
- Throws:
InvalidSessionFault
- when the specified session id is invalid.PermissionDeniedFault
- when the user has insufficient privileges.SystemFault
- when an unexpected system error occurs.NoSuchObjectFault
- when the specified object id is invalid.ObjectAlreadyExistsFault
- if an existing team already exists.IllegalArgumentFault
- if invalid argument value was supplied.RemoteException
- See Also:
-
prepareDeleteTeam
Prepare a simulated response to deleteTeam -
prepareDeleteTeam
Prepare a simulated response to deleteTeam -
deleteTeam
Simulate a call to deleteTeam- Specified by:
deleteTeam
in interfaceITeamAppSoap
- Parameters:
sessionId
- User session id.teamId
- The team id.- Throws:
InvalidSessionFault
- when the specified session id is invalid.PermissionDeniedFault
- when the user has insufficient privileges.SystemFault
- when an unexpected system error occurs.NoSuchObjectFault
- when the specified object id is invalid.IllegalArgumentFault
- if invalid argument value was supplied.DeleteTeamFault
- if team has child.RemoteException
- See Also:
-
prepareGetTeamListForProject
Prepare a simulated response to getTeamListForProject -
getTeamListForProject
public TeamSoapList getTeamListForProject(String sessionId, String projectId) throws RemoteException Simulate a call to getTeamListForProject- Specified by:
getTeamListForProject
in interfaceITeamAppSoap
- Parameters:
sessionId
- User session id.projectId
- The id of the project under which to create the new team.- Returns:
- list of team for project.
- Throws:
InvalidSessionFault
- when the specified session id is invalid.PermissionDeniedFault
- when the user has insufficient privileges.SystemFault
- when an unexpected system error occurs.NoSuchObjectFault
- when the specified object id is invalid.ObjectAlreadyExistsFault
- if an existing team already exists.IllegalArgumentFault
- if invalid argument value was supplied.InvalidProjectFault
- if invalid project id value was supplied.RemoteException
- See Also:
-
prepareGetChildTeamList
Prepare a simulated response to getChildTeamList -
getChildTeamList
Simulate a call to getChildTeamList- Specified by:
getChildTeamList
in interfaceITeamAppSoap
- Parameters:
sessionId
- User session id.parentTeamId
- The parent team id.- Returns:
- list of child teams for given parent team id.
- Throws:
InvalidSessionFault
- when the specified session id is invalid.PermissionDeniedFault
- when the user has insufficient privileges.SystemFault
- when an unexpected system error occurs.NoSuchObjectFault
- when the specified object id is invalid.ObjectAlreadyExistsFault
- if an existing team already exists.IllegalArgumentFault
- if invalid argument value was supplied.RemoteException
- See Also:
-
prepareGetTeamMemberList
Prepare a simulated response to getTeamMemberList -
getTeamMemberList
Simulate a call to getTeamMemberList- Specified by:
getTeamMemberList
in interfaceITeamAppSoap
- Parameters:
sessionId
- User session id.teamId
- The team id.- Returns:
- list of team members
- Throws:
InvalidSessionFault
- when the specified session id is invalid.PermissionDeniedFault
- when the user has insufficient privileges.SystemFault
- when an unexpected system error occurs.NoSuchObjectFault
- when the specified object id is invalid.ObjectAlreadyExistsFault
- if an existing team already exists.IllegalArgumentFault
- if invalid argument value was supplied.RemoteException
- See Also:
-
prepareCheckUserPermission
Prepare a simulated response to checkUserPermission- See Also:
-
TeamAppSoap.checkUserPermission(java.lang.String, java.lang.String)
-
prepareCheckUserPermission
Prepare a simulated response to checkUserPermission- See Also:
-
TeamAppSoap.checkUserPermission(java.lang.String, java.lang.String)
-
checkUserPermission
Simulate a call to checkUserPermission- Throws:
RemoteException
- See Also:
-
TeamAppSoap.checkUserPermission(java.lang.String, java.lang.String)
-