Class RbacAppSoapMockStub
- java.lang.Object
-
- com.collabnet.ce.soap60.webservices.ClientSoapStub
-
- com.collabnet.ce.soap60.webservices.ClientSoapMockStub
-
- com.collabnet.ce.soap60.webservices.rbac.RbacAppSoapMockStub
-
- All Implemented Interfaces:
IRbacAppSoap
public class RbacAppSoapMockStub extends ClientSoapMockStub implements IRbacAppSoap
-
-
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 Constructor Description RbacAppSoapMockStub(String soapServerUrl)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddCluster(String sessionId, String roleId, String operationCluster, String folderId)Simulate a call to addClustervoidaddGroup(String sessionId, String groupId, String roleId, String projectOrProjectGroupId)Simulate a call to addGroupvoidaddIntegratedApplicationPermission(String sessionId, String roleId, String integratedAppName, String permission)Simulate a call to addIntegratedApplicationPermissionvoidaddRemoveIAPermission(String sessionId, String roleId, String integratedAppName, String permission, boolean addPermission)Simulate a call to addRemoveIAPermissionvoidaddUser(String sessionId, String roleId, String username)Simulate a call to addUservoidaddUserToProjectRole(String sessionId, String roleId, String username, String projectOrProjectGroupId)Simulate a call to addUserToProjectRolevoidapproveRoleRequest(String sessionId, String requestId, String projectId)Simulate a call to approveRoleRequestvoidcheckPermissionBasedOnSideWideOrProjectRole(com.vasoftware.sf.server.services.access.rbac.RoleDO role, com.vasoftware.sf.common.access.rbac.Operation operation, String loggedInUser)Simulate a call to checkPermissionBasedOnSideWideOrProjectRolevoidcheckSiteWideRolePermission(com.vasoftware.sf.common.access.rbac.Operation operation, String loggedInUser)Simulate a call to checkSiteWideRolePermissionvoidcheckUserActiveStatus(String userName, String loggedInUser)Simulate a call to checkUserActiveStatuscom.vasoftware.sf.server.services.access.rbac.ResourceconstructResource(String operationCluster, String folderId, String loggedInUser)Simulate a call to constructResourceRoleSoapDOcreateGlobalRole(String sessionId, String title, String description, boolean preventInheritance, boolean requestable)Simulate a call to createGlobalRoleRoleSoapDOcreateRole(String sessionId, String projectOrProjectGroupId, String title, String description, boolean preventInheritance, boolean requestable, boolean autoGrant)Simulate a call to createRoleRoleSoapDOcreateSiteWideRole(String sessionId, String title, String description, boolean preventInheritance)Simulate a call to createSiteWideRolevoiddeleteRole(String sessionId, String roleId)Simulate a call to deleteRolebooleangetAutomaticallyGrantOnRequest(String sessionId, String roleId, String projectId)Simulate a call to getAutomaticallyGrantOnRequestRoleSoapListgetGlobalRoleList(String sessionId)Simulate a call to getGlobalRoleListRoleSoapListgetGlobalRolesForAssignment(String sessionId, String projectOrProjectGroupId)Simulate a call to getGlobalRolesForAssignmentRoleSoapListgetGroupRoleList(String sessionId, String groupId, String projectIdOrProjectGroupId)Simulate a call to getGroupRoleListStringgetIAPermissionId(String integratedAppName, String permission, String loggedInUser)Simulate a call to getIAPermissionIdRoleSoapListgetInheritedRoleList(String sessionId, String projectId)Simulate a call to getInheritedRoleListIntegratedAppProjectPermissionSoapListgetIntegratedAppPermissions(String sessionId, String[] projectIds, String baseUrl)Simulate a call to getIntegratedAppPermissionsString[]getIntegratedAppPermissionsForProject(String sessionId, String projectId, String linkId)Simulate a call to getIntegratedAppPermissionsForProjectStringgetLinkId(String projectId, String integratedAppName, String roleId, String loggedInUser)Simulate a call to getLinkIdRoleRequestSoapListgetPendingRequestedRoles(String sessionId, String projectId)Simulate a call to getPendingRequestedRolesUserSoapListgetProjectRoleMemberList(String sessionId, String roleId, String projectOrProjectGroupId)Simulate a call to getProjectRoleMemberListString[]getProjectsByIntegratedAppPermission(String sessionId, String perm, String integratedAppName)Simulate a call to getProjectsByIntegratedAppPermissionProjectSoapListgetProjectsForAction(String sessionId, String operationString, String userName)Simulate a call to getProjectsForActionRoleSoapDOgetRoleData(String sessionId, String roleId)Simulate a call to getRoleDataUserGroupSoapListgetRoleGroupList(String sessionId, String roleId)Simulate a call to getRoleGroupListUserSoapListgetRoleGroupUsers(String sessionId, String projectIdOrProjectGroupId, String roleId)Simulate a call to getRoleGroupUsersRoleSoapListgetRoleList(String sessionId, String projectOrProjectGroupId)Simulate a call to getRoleListUserSoapListgetRoleMemberList(String sessionId, String roleId)Simulate a call to getRoleMemberListRoleSoapListgetSiteWideRoleList(String sessionId)Simulate a call to getSiteWideRoleListRoleSoapListgetUserRoleList(String sessionId, String projectOrProjectGroupId, String username)Simulate a call to getUserRoleListMapgetUserRolesMap(UserRolesSoapDO[] userRolesSoapDOs)Simulate a call to getUserRolesMapRoleSoapListgetUserSiteWideRoleList(String sessionId, String username)Simulate a call to getUserSiteWideRoleListvoidgrantRolesToMembers(String sessionId, UserRolesSoapDO[] userRolesSoapDOs, String projectId)Simulate a call to grantRolesToMembersRoleCluster2SoapListlistClusterForDefaultAccessPermissions(String sessionId, String projectId)Simulate a call to listClusterForDefaultAccessPermissionsRoleClusterSoapListlistClusters(String sessionId, String roleId)Simulate a call to listClustersRoleGroupSoapListlistGroupRolesByProject(String sessionId, String projectId)Simulate a call to listGroupRolesByProjectRoleGroupSoapListlistGroupRolesByProjectGroup(String sessionId, String projectGroupId)Simulate a call to listGroupRolesByProjectGroupSoapNamedValueslistRolePaths(String sessionId, String roleId, String repositoryId)Simulate a call to listRolePathsvoidprepareAddCluster(String sessionId, String roleId, String operationCluster, String folderId)Prepare a simulated response to addClustervoidprepareAddCluster(String sessionId, String roleId, String operationCluster, String folderId, Exception exception)Prepare a simulated response to addClustervoidprepareAddGroup(String sessionId, String groupId, String roleId, String projectOrProjectGroupId)Prepare a simulated response to addGroupvoidprepareAddGroup(String sessionId, String groupId, String roleId, String projectOrProjectGroupId, Exception exception)Prepare a simulated response to addGroupvoidprepareAddIntegratedApplicationPermission(String sessionId, String roleId, String integratedAppName, String permission)Prepare a simulated response to addIntegratedApplicationPermissionvoidprepareAddIntegratedApplicationPermission(String sessionId, String roleId, String integratedAppName, String permission, Exception exception)Prepare a simulated response to addIntegratedApplicationPermissionvoidprepareAddRemoveIAPermission(String sessionId, String roleId, String integratedAppName, String permission, boolean addPermission)Prepare a simulated response to addRemoveIAPermissionvoidprepareAddRemoveIAPermission(String sessionId, String roleId, String integratedAppName, String permission, boolean addPermission, Exception exception)Prepare a simulated response to addRemoveIAPermissionvoidprepareAddUser(String sessionId, String roleId, String username)Prepare a simulated response to addUservoidprepareAddUser(String sessionId, String roleId, String username, Exception exception)Prepare a simulated response to addUservoidprepareAddUserToProjectRole(String sessionId, String roleId, String username, String projectOrProjectGroupId)Prepare a simulated response to addUserToProjectRolevoidprepareAddUserToProjectRole(String sessionId, String roleId, String username, String projectOrProjectGroupId, Exception exception)Prepare a simulated response to addUserToProjectRolevoidprepareApproveRoleRequest(String sessionId, String requestId, String projectId)Prepare a simulated response to approveRoleRequestvoidprepareApproveRoleRequest(String sessionId, String requestId, String projectId, Exception exception)Prepare a simulated response to approveRoleRequestvoidprepareCheckPermissionBasedOnSideWideOrProjectRole(com.vasoftware.sf.server.services.access.rbac.RoleDO role, com.vasoftware.sf.common.access.rbac.Operation operation, String loggedInUser)Prepare a simulated response to checkPermissionBasedOnSideWideOrProjectRolevoidprepareCheckPermissionBasedOnSideWideOrProjectRole(com.vasoftware.sf.server.services.access.rbac.RoleDO role, com.vasoftware.sf.common.access.rbac.Operation operation, String loggedInUser, Exception exception)Prepare a simulated response to checkPermissionBasedOnSideWideOrProjectRolevoidprepareCheckSiteWideRolePermission(com.vasoftware.sf.common.access.rbac.Operation operation, String loggedInUser)Prepare a simulated response to checkSiteWideRolePermissionvoidprepareCheckSiteWideRolePermission(com.vasoftware.sf.common.access.rbac.Operation operation, String loggedInUser, Exception exception)Prepare a simulated response to checkSiteWideRolePermissionvoidprepareCheckUserActiveStatus(String userName, String loggedInUser)Prepare a simulated response to checkUserActiveStatusvoidprepareCheckUserActiveStatus(String userName, String loggedInUser, Exception exception)Prepare a simulated response to checkUserActiveStatusvoidprepareConstructResource(String operationCluster, String folderId, String loggedInUser, Object returnValue)Prepare a simulated response to constructResourcevoidprepareCreateGlobalRole(String sessionId, String title, String description, boolean preventInheritance, boolean requestable, Object returnValue)Prepare a simulated response to createGlobalRolevoidprepareCreateRole(String sessionId, String projectOrProjectGroupId, String title, String description, boolean preventInheritance, boolean requestable, boolean autoGrant, Object returnValue)Prepare a simulated response to createRolevoidprepareCreateSiteWideRole(String sessionId, String title, String description, boolean preventInheritance, Object returnValue)Prepare a simulated response to createSiteWideRolevoidprepareDeleteRole(String sessionId, String roleId)Prepare a simulated response to deleteRolevoidprepareDeleteRole(String sessionId, String roleId, Exception exception)Prepare a simulated response to deleteRolevoidprepareGetAutomaticallyGrantOnRequest(String sessionId, String roleId, String projectId, Object returnValue)Prepare a simulated response to getAutomaticallyGrantOnRequestvoidprepareGetGlobalRoleList(String sessionId, Object returnValue)Prepare a simulated response to getGlobalRoleListvoidprepareGetGlobalRolesForAssignment(String sessionId, String projectOrProjectGroupId, Object returnValue)Prepare a simulated response to getGlobalRolesForAssignmentvoidprepareGetGroupRoleList(String sessionId, String groupId, String projectIdOrProjectGroupId, Object returnValue)Prepare a simulated response to getGroupRoleListvoidprepareGetIAPermissionId(String integratedAppName, String permission, String loggedInUser, Object returnValue)Prepare a simulated response to getIAPermissionIdvoidprepareGetInheritedRoleList(String sessionId, String projectId, Object returnValue)Prepare a simulated response to getInheritedRoleListvoidprepareGetIntegratedAppPermissions(String sessionId, String[] projectIds, String baseUrl, Object returnValue)Prepare a simulated response to getIntegratedAppPermissionsvoidprepareGetIntegratedAppPermissionsForProject(String sessionId, String projectId, String linkId, Object returnValue)Prepare a simulated response to getIntegratedAppPermissionsForProjectvoidprepareGetLinkId(String projectId, String integratedAppName, String roleId, String loggedInUser, Object returnValue)Prepare a simulated response to getLinkIdvoidprepareGetPendingRequestedRoles(String sessionId, String projectId, Object returnValue)Prepare a simulated response to getPendingRequestedRolesvoidprepareGetProjectRoleMemberList(String sessionId, String roleId, String projectOrProjectGroupId, Object returnValue)Prepare a simulated response to getProjectRoleMemberListvoidprepareGetProjectsByIntegratedAppPermission(String sessionId, String perm, String integratedAppName, Object returnValue)Prepare a simulated response to getProjectsByIntegratedAppPermissionvoidprepareGetProjectsForAction(String sessionId, String operationString, String userName, Object returnValue)Prepare a simulated response to getProjectsForActionvoidprepareGetRoleData(String sessionId, String roleId, Object returnValue)Prepare a simulated response to getRoleDatavoidprepareGetRoleGroupList(String sessionId, String roleId, Object returnValue)Prepare a simulated response to getRoleGroupListvoidprepareGetRoleGroupUsers(String sessionId, String projectIdOrProjectGroupId, String roleId, Object returnValue)Prepare a simulated response to getRoleGroupUsersvoidprepareGetRoleList(String sessionId, String projectOrProjectGroupId, Object returnValue)Prepare a simulated response to getRoleListvoidprepareGetRoleMemberList(String sessionId, String roleId, Object returnValue)Prepare a simulated response to getRoleMemberListvoidprepareGetSiteWideRoleList(String sessionId, Object returnValue)Prepare a simulated response to getSiteWideRoleListvoidprepareGetUserRoleList(String sessionId, String projectOrProjectGroupId, String username, Object returnValue)Prepare a simulated response to getUserRoleListvoidprepareGetUserRolesMap(UserRolesSoapDO[] userRolesSoapDOs, Object returnValue)Prepare a simulated response to getUserRolesMapvoidprepareGetUserSiteWideRoleList(String sessionId, String username, Object returnValue)Prepare a simulated response to getUserSiteWideRoleListvoidprepareGrantRolesToMembers(String sessionId, UserRolesSoapDO[] userRolesSoapDOs, String projectId)Prepare a simulated response to grantRolesToMembersvoidprepareGrantRolesToMembers(String sessionId, UserRolesSoapDO[] userRolesSoapDOs, String projectId, Exception exception)Prepare a simulated response to grantRolesToMembersvoidprepareListClusterForDefaultAccessPermissions(String sessionId, String projectId, Object returnValue)Prepare a simulated response to listClusterForDefaultAccessPermissionsvoidprepareListClusters(String sessionId, String roleId, Object returnValue)Prepare a simulated response to listClustersvoidprepareListGroupRolesByProject(String sessionId, String projectId, Object returnValue)Prepare a simulated response to listGroupRolesByProjectvoidprepareListGroupRolesByProjectGroup(String sessionId, String projectGroupId, Object returnValue)Prepare a simulated response to listGroupRolesByProjectGroupvoidprepareListRolePaths(String sessionId, String roleId, String repositoryId, Object returnValue)Prepare a simulated response to listRolePathsvoidprepareRejectRoleRequest(String sessionId, String requestId, String projectId)Prepare a simulated response to rejectRoleRequestvoidprepareRejectRoleRequest(String sessionId, String requestId, String projectId, Exception exception)Prepare a simulated response to rejectRoleRequestvoidprepareRemoveCluster(String sessionId, String roleId, String operationCluster, String folderId)Prepare a simulated response to removeClustervoidprepareRemoveCluster(String sessionId, String roleId, String operationCluster, String folderId, Exception exception)Prepare a simulated response to removeClustervoidprepareRemoveGroup(String sessionId, String groupId, String roleId, String projectOrProjectGroupId)Prepare a simulated response to removeGroupvoidprepareRemoveGroup(String sessionId, String groupId, String roleId, String projectOrProjectGroupId, Exception exception)Prepare a simulated response to removeGroupvoidprepareRemoveIntegratedApplicationPermission(String sessionId, String roleId, String integratedAppName, String permission)Prepare a simulated response to removeIntegratedApplicationPermissionvoidprepareRemoveIntegratedApplicationPermission(String sessionId, String roleId, String integratedAppName, String permission, Exception exception)Prepare a simulated response to removeIntegratedApplicationPermissionvoidprepareRemoveUser(String sessionId, String roleId, String username)Prepare a simulated response to removeUservoidprepareRemoveUser(String sessionId, String roleId, String username, Exception exception)Prepare a simulated response to removeUservoidprepareRemoveUserFromProjectRole(String sessionId, String roleId, String username, String projectOrProjectGroupId)Prepare a simulated response to removeUserFromProjectRolevoidprepareRemoveUserFromProjectRole(String sessionId, String roleId, String username, String projectOrProjectGroupId, Exception exception)Prepare a simulated response to removeUserFromProjectRolevoidprepareRequestRole(String sessionId, String roleId, String projectId)Prepare a simulated response to requestRolevoidprepareRequestRole(String sessionId, String roleId, String projectId, Exception exception)Prepare a simulated response to requestRolevoidprepareRevokeRolesFromMembers(String sessionId, UserRolesSoapDO[] userRolesSoapDOs, String projectId)Prepare a simulated response to revokeRolesFromMembersvoidprepareRevokeRolesFromMembers(String sessionId, UserRolesSoapDO[] userRolesSoapDOs, String projectId, Exception exception)Prepare a simulated response to revokeRolesFromMembersvoidprepareSetAutomaticallyGrantOnRequest(String sessionId, String roleId, String projectId, boolean autoGrant)Prepare a simulated response to setAutomaticallyGrantOnRequestvoidprepareSetAutomaticallyGrantOnRequest(String sessionId, String roleId, String projectId, boolean autoGrant, Exception exception)Prepare a simulated response to setAutomaticallyGrantOnRequestvoidprepareSetRoleData(String sessionId, RoleSoapDO roleData)Prepare a simulated response to setRoleDatavoidprepareSetRoleData(String sessionId, RoleSoapDO roleData, Exception exception)Prepare a simulated response to setRoleDatavoidprepareSetRolePaths(String sessionId, String roleId, String repositoryId, SoapNamedValues rolePaths)Prepare a simulated response to setRolePathsvoidprepareSetRolePaths(String sessionId, String roleId, String repositoryId, SoapNamedValues rolePaths, Exception exception)Prepare a simulated response to setRolePathsvoidrejectRoleRequest(String sessionId, String requestId, String projectId)Simulate a call to rejectRoleRequestvoidremoveCluster(String sessionId, String roleId, String operationCluster, String folderId)Simulate a call to removeClustervoidremoveGroup(String sessionId, String groupId, String roleId, String projectOrProjectGroupId)Simulate a call to removeGroupvoidremoveIntegratedApplicationPermission(String sessionId, String roleId, String integratedAppName, String permission)Simulate a call to removeIntegratedApplicationPermissionvoidremoveUser(String sessionId, String roleId, String username)Simulate a call to removeUservoidremoveUserFromProjectRole(String sessionId, String roleId, String username, String projectOrProjectGroupId)Simulate a call to removeUserFromProjectRolevoidrequestRole(String sessionId, String roleId, String projectId)Simulate a call to requestRolevoidrevokeRolesFromMembers(String sessionId, UserRolesSoapDO[] userRolesSoapDOs, String projectId)Simulate a call to revokeRolesFromMembersvoidsetAutomaticallyGrantOnRequest(String sessionId, String roleId, String projectId, boolean autoGrant)Simulate a call to setAutomaticallyGrantOnRequestvoidsetRoleData(String sessionId, RoleSoapDO roleData)Simulate a call to setRoleDatavoidsetRolePaths(String sessionId, String roleId, String repositoryId, SoapNamedValues rolePaths)Simulate a call to setRolePaths-
Methods 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 Detail
-
RbacAppSoapMockStub
public RbacAppSoapMockStub(String soapServerUrl)
-
-
Method Detail
-
prepareCreateRole
public void prepareCreateRole(String sessionId, String projectOrProjectGroupId, String title, String description, boolean preventInheritance, boolean requestable, boolean autoGrant, Object returnValue)
Prepare a simulated response to createRole
-
createRole
public RoleSoapDO createRole(String sessionId, String projectOrProjectGroupId, String title, String description, boolean preventInheritance, boolean requestable, boolean autoGrant) throws RemoteException
Simulate a call to createRole- Specified by:
createRolein interfaceIRbacAppSoap- Parameters:
sessionId- User session IdprojectOrProjectGroupId- The project /project group Id to create the role intitle- The title of the roledescription- A description of the rolepreventInheritance- If the role's permission is prevented from applying to private subprojects.requestable- If the role is available upon requestautoGrant- If the role is granted automatically on request- Returns:
- The Role2SoapDO that was created
- Throws:
InvalidSessionFault- If the session is invalidPermissionDeniedFault- If the user doesn't have permission to perform the operationSystemFault- when an unexpected system level error occurs.NoSuchObjectFault- When the projectId is invalid or the created roleId is invalid.ObjectAlreadyExistsFault- If the role exists with the specified title in the projectIllegalArgumentFault- If one of the parameters is invalidRemoteException- See Also:
RbacAppSoap.createRole(java.lang.String, java.lang.String, java.lang.String, java.lang.String, boolean, boolean, boolean)
-
prepareCreateSiteWideRole
public void prepareCreateSiteWideRole(String sessionId, String title, String description, boolean preventInheritance, Object returnValue)
Prepare a simulated response to createSiteWideRole
-
createSiteWideRole
public RoleSoapDO createSiteWideRole(String sessionId, String title, String description, boolean preventInheritance) throws RemoteException
Simulate a call to createSiteWideRole- Specified by:
createSiteWideRolein interfaceIRbacAppSoap- Parameters:
sessionId- User session Idtitle- The title of the site-wide roledescription- A description of the rolepreventInheritance- If the role's permission is prevented from applying to private projects.- Returns:
- The Role2SoapDO that was created
- Throws:
InvalidSessionFault- If the session is invalidPermissionDeniedFault- If the user doesn't have permission to perform the operationSystemFault- when an unexpected system level error occurs.NoSuchObjectFault- When the created roleId is invalidObjectAlreadyExistsFault- If the role exists with the specified title in the projectIllegalArgumentFault- If one of the parameters is invalidRemoteException- See Also:
RbacAppSoap.createSiteWideRole(java.lang.String, java.lang.String, java.lang.String, boolean)
-
prepareCreateGlobalRole
public void prepareCreateGlobalRole(String sessionId, String title, String description, boolean preventInheritance, boolean requestable, Object returnValue)
Prepare a simulated response to createGlobalRole
-
createGlobalRole
public RoleSoapDO createGlobalRole(String sessionId, String title, String description, boolean preventInheritance, boolean requestable) throws RemoteException
Simulate a call to createGlobalRole- Specified by:
createGlobalRolein interfaceIRbacAppSoap- Parameters:
sessionId- User session Idtitle- The title of the global roledescription- The description of the global rolepreventInheritance- If the role's permission is prevented from applying to private projects.requestable- If the role is available upon request- Returns:
- The Role2SoapDO that was created
- Throws:
InvalidSessionFault- If the session is invalidPermissionDeniedFault- If the user doesn't have permission to perform the operationSystemFault- when an unexpected system level error occurs.NoSuchObjectFault- When the created roleId is invalidObjectAlreadyExistsFault- If the global role exists with the specified titleIllegalArgumentFault- If one of the parameters is invalidRemoteException- See Also:
RbacAppSoap.createGlobalRole(java.lang.String, java.lang.String, java.lang.String, boolean, boolean)
-
prepareSetRoleData
public void prepareSetRoleData(String sessionId, RoleSoapDO roleData)
Prepare a simulated response to setRoleData
-
prepareSetRoleData
public void prepareSetRoleData(String sessionId, RoleSoapDO roleData, Exception exception)
Prepare a simulated response to setRoleData
-
setRoleData
public void setRoleData(String sessionId, RoleSoapDO roleData) throws RemoteException
Simulate a call to setRoleData- Specified by:
setRoleDatain interfaceIRbacAppSoap- Parameters:
sessionId- User session IdroleData- the role object to save- Throws:
InvalidSessionFault- If the session is invalidVersionMismatchFault- The role version being edited is not the latest onePermissionDeniedFault- If the user doesn't have permission to perform the operationIllegalArgumentFault- If one of the parameters is invalidNoSuchObjectFault- When the roleId is invalidSystemFault- when an unexpected system level error occurs.RemoteException- See Also:
RbacAppSoap.setRoleData(java.lang.String, com.collabnet.ce.soap60.webservices.rbac.RoleSoapDO)
-
prepareGetRoleData
public void prepareGetRoleData(String sessionId, String roleId, Object returnValue)
Prepare a simulated response to getRoleData
-
getRoleData
public RoleSoapDO getRoleData(String sessionId, String roleId) throws RemoteException
Simulate a call to getRoleData- Specified by:
getRoleDatain interfaceIRbacAppSoap- Parameters:
sessionId- User session IdroleId- The id of the role to be fetch- Returns:
- The RoleSoapDO that was fetched
- Throws:
InvalidSessionFault- If the session is invalidPermissionDeniedFault- If the user doesn't have permission to perform the operationNoSuchObjectFault- When the roleId is invalidSystemFault- when an unexpected system level error occurs.IllegalArgumentFault- When the roleId is invalidRemoteException- See Also:
RbacAppSoap.getRoleData(java.lang.String, java.lang.String)
-
prepareCheckPermissionBasedOnSideWideOrProjectRole
public void prepareCheckPermissionBasedOnSideWideOrProjectRole(com.vasoftware.sf.server.services.access.rbac.RoleDO role, com.vasoftware.sf.common.access.rbac.Operation operation, String loggedInUser)Prepare a simulated response to checkPermissionBasedOnSideWideOrProjectRole
-
prepareCheckPermissionBasedOnSideWideOrProjectRole
public void prepareCheckPermissionBasedOnSideWideOrProjectRole(com.vasoftware.sf.server.services.access.rbac.RoleDO role, com.vasoftware.sf.common.access.rbac.Operation operation, String loggedInUser, Exception exception)Prepare a simulated response to checkPermissionBasedOnSideWideOrProjectRole
-
checkPermissionBasedOnSideWideOrProjectRole
public void checkPermissionBasedOnSideWideOrProjectRole(com.vasoftware.sf.server.services.access.rbac.RoleDO role, com.vasoftware.sf.common.access.rbac.Operation operation, String loggedInUser) throws RemoteExceptionSimulate a call to checkPermissionBasedOnSideWideOrProjectRole
-
prepareCheckSiteWideRolePermission
public void prepareCheckSiteWideRolePermission(com.vasoftware.sf.common.access.rbac.Operation operation, String loggedInUser)Prepare a simulated response to checkSiteWideRolePermission
-
prepareCheckSiteWideRolePermission
public void prepareCheckSiteWideRolePermission(com.vasoftware.sf.common.access.rbac.Operation operation, String loggedInUser, Exception exception)Prepare a simulated response to checkSiteWideRolePermission
-
checkSiteWideRolePermission
public void checkSiteWideRolePermission(com.vasoftware.sf.common.access.rbac.Operation operation, String loggedInUser) throws RemoteExceptionSimulate a call to checkSiteWideRolePermission
-
prepareCheckUserActiveStatus
public void prepareCheckUserActiveStatus(String userName, String loggedInUser)
Prepare a simulated response to checkUserActiveStatus
-
prepareCheckUserActiveStatus
public void prepareCheckUserActiveStatus(String userName, String loggedInUser, Exception exception)
Prepare a simulated response to checkUserActiveStatus
-
checkUserActiveStatus
public void checkUserActiveStatus(String userName, String loggedInUser) throws RemoteException
Simulate a call to checkUserActiveStatus
-
prepareDeleteRole
public void prepareDeleteRole(String sessionId, String roleId)
Prepare a simulated response to deleteRole
-
prepareDeleteRole
public void prepareDeleteRole(String sessionId, String roleId, Exception exception)
Prepare a simulated response to deleteRole
-
deleteRole
public void deleteRole(String sessionId, String roleId) throws RemoteException
Simulate a call to deleteRole- Specified by:
deleteRolein interfaceIRbacAppSoap- Parameters:
sessionId- User session IdroleId- The id of the role to be deleted- Throws:
InvalidSessionFault- If the session is invalidPermissionDeniedFault- If the user doesn't have permission to perform the operationSystemFault- when an unexpected system level error occurs.NoSuchObjectFault- When the projectId is invalidRemoteException- See Also:
RbacAppSoap.deleteRole(java.lang.String, java.lang.String)
-
prepareAddCluster
public void prepareAddCluster(String sessionId, String roleId, String operationCluster, String folderId)
Prepare a simulated response to addCluster
-
prepareAddCluster
public void prepareAddCluster(String sessionId, String roleId, String operationCluster, String folderId, Exception exception)
Prepare a simulated response to addCluster
-
addCluster
public void addCluster(String sessionId, String roleId, String operationCluster, String folderId) throws RemoteException
Simulate a call to addCluster- Specified by:
addClusterin interfaceIRbacAppSoap- Parameters:
sessionId- User session IdroleId- The role id to add the cluster tooperationCluster- The cluster name to add to the role. See OperationClusterConstants.folderId- the folder id for the specified cluster.- Throws:
InvalidSessionFault- If the session is invalidPermissionDeniedFault- If the user doesn't have permission to perform the operationSystemFault- when an unexpected system level error occurs.NoSuchObjectFault- When the roleId is invalidObjectAlreadyExistsFault- If the cluster already exists in the roleIllegalArgumentFault- If one of the parameters is invalidRemoteException- See Also:
RbacAppSoap.addCluster(java.lang.String, java.lang.String, java.lang.String, java.lang.String)
-
prepareAddIntegratedApplicationPermission
public void prepareAddIntegratedApplicationPermission(String sessionId, String roleId, String integratedAppName, String permission)
Prepare a simulated response to addIntegratedApplicationPermission
-
prepareAddIntegratedApplicationPermission
public void prepareAddIntegratedApplicationPermission(String sessionId, String roleId, String integratedAppName, String permission, Exception exception)
Prepare a simulated response to addIntegratedApplicationPermission
-
addIntegratedApplicationPermission
public void addIntegratedApplicationPermission(String sessionId, String roleId, String integratedAppName, String permission) throws RemoteException
Simulate a call to addIntegratedApplicationPermission- Specified by:
addIntegratedApplicationPermissionin interfaceIRbacAppSoap- Parameters:
sessionId- User session IdroleId- The role id to add the integrated application permission tointegratedAppName- The integrated application name (e.g: 'Pebble Blog')permission- The integrated application permission name to add to the role.- Throws:
InvalidSessionFault- If the session is invalidPermissionDeniedFault- If the user doesn't have permission to perform the operationSystemFault- when an unexpected system level error occurs.NoSuchObjectFault- When the roleId is invalidObjectAlreadyExistsFault- If the cluster already exists in the roleIllegalArgumentFault- If one of the parameters is invalidRemoteException- See Also:
RbacAppSoap.addIntegratedApplicationPermission(java.lang.String, java.lang.String, java.lang.String, java.lang.String)
-
prepareRemoveIntegratedApplicationPermission
public void prepareRemoveIntegratedApplicationPermission(String sessionId, String roleId, String integratedAppName, String permission)
Prepare a simulated response to removeIntegratedApplicationPermission
-
prepareRemoveIntegratedApplicationPermission
public void prepareRemoveIntegratedApplicationPermission(String sessionId, String roleId, String integratedAppName, String permission, Exception exception)
Prepare a simulated response to removeIntegratedApplicationPermission
-
removeIntegratedApplicationPermission
public void removeIntegratedApplicationPermission(String sessionId, String roleId, String integratedAppName, String permission) throws RemoteException
Simulate a call to removeIntegratedApplicationPermission- Specified by:
removeIntegratedApplicationPermissionin interfaceIRbacAppSoap- Parameters:
sessionId- User session IdroleId- The role id from which the integrated application permission to be removedintegratedAppName- The integrated application name (e.g: 'Pebble Blog')permission- The integrated application permission to be removed from the role.- Throws:
InvalidSessionFault- If the session is invalidPermissionDeniedFault- If the user doesn't have permission to perform the operationSystemFault- when an unexpected system level error occurs.NoSuchObjectFault- When the roleId is invalidObjectAlreadyExistsFault- If the cluster already exists in the roleIllegalArgumentFault- If one of the parameters is invalidRemoteException- See Also:
RbacAppSoap.removeIntegratedApplicationPermission(java.lang.String, java.lang.String, java.lang.String, java.lang.String)
-
prepareAddRemoveIAPermission
public void prepareAddRemoveIAPermission(String sessionId, String roleId, String integratedAppName, String permission, boolean addPermission)
Prepare a simulated response to addRemoveIAPermission
-
prepareAddRemoveIAPermission
public void prepareAddRemoveIAPermission(String sessionId, String roleId, String integratedAppName, String permission, boolean addPermission, Exception exception)
Prepare a simulated response to addRemoveIAPermission
-
addRemoveIAPermission
public void addRemoveIAPermission(String sessionId, String roleId, String integratedAppName, String permission, boolean addPermission) throws RemoteException
Simulate a call to addRemoveIAPermission
-
prepareGetLinkId
public void prepareGetLinkId(String projectId, String integratedAppName, String roleId, String loggedInUser, Object returnValue)
Prepare a simulated response to getLinkId
-
getLinkId
public String getLinkId(String projectId, String integratedAppName, String roleId, String loggedInUser) throws RemoteException
Simulate a call to getLinkId
-
prepareGetIAPermissionId
public void prepareGetIAPermissionId(String integratedAppName, String permission, String loggedInUser, Object returnValue)
Prepare a simulated response to getIAPermissionId
-
getIAPermissionId
public String getIAPermissionId(String integratedAppName, String permission, String loggedInUser) throws RemoteException
Simulate a call to getIAPermissionId
-
prepareRemoveCluster
public void prepareRemoveCluster(String sessionId, String roleId, String operationCluster, String folderId)
Prepare a simulated response to removeCluster
-
prepareRemoveCluster
public void prepareRemoveCluster(String sessionId, String roleId, String operationCluster, String folderId, Exception exception)
Prepare a simulated response to removeCluster
-
removeCluster
public void removeCluster(String sessionId, String roleId, String operationCluster, String folderId) throws RemoteException
Simulate a call to removeCluster- Specified by:
removeClusterin interfaceIRbacAppSoap- Parameters:
sessionId- User session IdroleId- The role id to remove the cluster tooperationCluster- The cluster name to add to the rolefolderId- the folder id for the specified cluster.- Throws:
InvalidSessionFault- If the session is invalidIllegalArgumentFault- If one of the parameters is invalidPermissionDeniedFault- If the user doesn't have permission to perform the operationSystemFault- when an unexpected system level error occurs.NoSuchObjectFault- When the roleId is invalidRemoteException- See Also:
RbacAppSoap.removeCluster(java.lang.String, java.lang.String, java.lang.String, java.lang.String)
-
prepareConstructResource
public void prepareConstructResource(String operationCluster, String folderId, String loggedInUser, Object returnValue)
Prepare a simulated response to constructResource
-
constructResource
public com.vasoftware.sf.server.services.access.rbac.Resource constructResource(String operationCluster, String folderId, String loggedInUser) throws RemoteException
Simulate a call to constructResource
-
prepareListClusters
public void prepareListClusters(String sessionId, String roleId, Object returnValue)
Prepare a simulated response to listClusters
-
listClusters
public RoleClusterSoapList listClusters(String sessionId, String roleId) throws RemoteException
Simulate a call to listClusters- Specified by:
listClustersin interfaceIRbacAppSoap- Parameters:
sessionId- User session IdroleId- The ID of the role for which clusters will be listed- Returns:
- list of clusters for a role
- Throws:
InvalidSessionFault- If the session is invalidIllegalArgumentFault- If one of the parameters is invalidPermissionDeniedFault- If the user doesn't have permission to perform the operationSystemFault- when an unexpected system level error occurs.NoSuchObjectFault- When the roleId is invalidRemoteException- See Also:
RbacAppSoap.listClusters(java.lang.String, java.lang.String)
-
prepareListClusterForDefaultAccessPermissions
public void prepareListClusterForDefaultAccessPermissions(String sessionId, String projectId, Object returnValue)
Prepare a simulated response to listClusterForDefaultAccessPermissions
-
listClusterForDefaultAccessPermissions
public RoleCluster2SoapList listClusterForDefaultAccessPermissions(String sessionId, String projectId) throws RemoteException
Simulate a call to listClusterForDefaultAccessPermissions- Specified by:
listClusterForDefaultAccessPermissionsin interfaceIRbacAppSoap- Parameters:
sessionId- User session IdprojectId- The ID of the project for which clusters will be listed- Returns:
- list of clusters for a project
- Throws:
InvalidSessionFault- If the session is invalidIllegalArgumentFault- If one of the parameters is invalidNoSuchObjectFault- When the roleId is invalidSystemFaultPermissionDeniedFaultRemoteException- See Also:
RbacAppSoap.listClusterForDefaultAccessPermissions(java.lang.String, java.lang.String)
-
prepareAddUser
public void prepareAddUser(String sessionId, String roleId, String username)
Prepare a simulated response to addUser
-
prepareAddUser
public void prepareAddUser(String sessionId, String roleId, String username, Exception exception)
Prepare a simulated response to addUser
-
addUser
public void addUser(String sessionId, String roleId, String username) throws RemoteException
Simulate a call to addUser- Specified by:
addUserin interfaceIRbacAppSoap- Parameters:
sessionId- User sessionIdroleId- The role id to add the user tousername- The username of the user to add to the role- Throws:
InvalidSessionFault- If the session is invalidPermissionDeniedFault- If the user doesn't have permission to perform the operationSystemFault- when an unexpected system level error occurs.NoSuchObjectFault- When the roleId is invalidObjectAlreadyExistsFault- If the user already exists in the roleIllegalArgumentFault- If one of the parameters is invalidRemoteException- See Also:
RbacAppSoap.addUser(java.lang.String, java.lang.String, java.lang.String)
-
prepareGrantRolesToMembers
public void prepareGrantRolesToMembers(String sessionId, UserRolesSoapDO[] userRolesSoapDOs, String projectId)
Prepare a simulated response to grantRolesToMembers
-
prepareGrantRolesToMembers
public void prepareGrantRolesToMembers(String sessionId, UserRolesSoapDO[] userRolesSoapDOs, String projectId, Exception exception)
Prepare a simulated response to grantRolesToMembers
-
grantRolesToMembers
public void grantRolesToMembers(String sessionId, UserRolesSoapDO[] userRolesSoapDOs, String projectId) throws RemoteException
Simulate a call to grantRolesToMembers- Specified by:
grantRolesToMembersin interfaceIRbacAppSoap- Parameters:
sessionId- User sessionIduserRolesSoapDOs- user to roles data containerprojectId- project to which users would be the members with the given roles.- Throws:
InvalidSessionFault- If the session is invalidPermissionDeniedFault- If the user doesn't have permission to perform the operationSystemFault- when an unexpected system level error occurs.NoSuchObjectFault- When the roleId is invalidObjectAlreadyExistsFault- If the user already exists in the roleIllegalArgumentFault- If one of the parameters is invalidRemoteException- See Also:
RbacAppSoap.grantRolesToMembers(java.lang.String, com.collabnet.ce.soap60.webservices.rbac.UserRolesSoapDO[], java.lang.String)
-
prepareGetUserRolesMap
public void prepareGetUserRolesMap(UserRolesSoapDO[] userRolesSoapDOs, Object returnValue)
Prepare a simulated response to getUserRolesMap
-
getUserRolesMap
public Map getUserRolesMap(UserRolesSoapDO[] userRolesSoapDOs) throws RemoteException
Simulate a call to getUserRolesMap
-
prepareRemoveUser
public void prepareRemoveUser(String sessionId, String roleId, String username)
Prepare a simulated response to removeUser
-
prepareRemoveUser
public void prepareRemoveUser(String sessionId, String roleId, String username, Exception exception)
Prepare a simulated response to removeUser
-
removeUser
public void removeUser(String sessionId, String roleId, String username) throws RemoteException
Simulate a call to removeUser- Specified by:
removeUserin interfaceIRbacAppSoap- Parameters:
sessionId- User sessionIdroleId- The role id to add the user tousername- The username of the user to add to the role- Throws:
InvalidSessionFault- If the session is invalidPermissionDeniedFault- If the user doesn't have permission to perform the operationSystemFault- when an unexpected system level error occurs.NoSuchObjectFault- When the roleId is invalidIllegalArgumentFault- If one of the parameters is invalidRemoteException- See Also:
RbacAppSoap.removeUser(java.lang.String, java.lang.String, java.lang.String)
-
prepareRevokeRolesFromMembers
public void prepareRevokeRolesFromMembers(String sessionId, UserRolesSoapDO[] userRolesSoapDOs, String projectId)
Prepare a simulated response to revokeRolesFromMembers
-
prepareRevokeRolesFromMembers
public void prepareRevokeRolesFromMembers(String sessionId, UserRolesSoapDO[] userRolesSoapDOs, String projectId, Exception exception)
Prepare a simulated response to revokeRolesFromMembers
-
revokeRolesFromMembers
public void revokeRolesFromMembers(String sessionId, UserRolesSoapDO[] userRolesSoapDOs, String projectId) throws RemoteException
Simulate a call to revokeRolesFromMembers- Specified by:
revokeRolesFromMembersin interfaceIRbacAppSoap- Parameters:
sessionId- User sessionIduserRolesSoapDOs- user to roles data containerprojectId- project in which roles would be removed from the users.- Throws:
InvalidSessionFault- If the session is invalidPermissionDeniedFault- If the user doesn't have permission to perform the operationSystemFault- when an unexpected system level error occurs.NoSuchObjectFault- When the roleId is invalidIllegalArgumentFault- If one of the parameters is invalidRemoteException- See Also:
RbacAppSoap.revokeRolesFromMembers(java.lang.String, com.collabnet.ce.soap60.webservices.rbac.UserRolesSoapDO[], java.lang.String)
-
prepareAddUserToProjectRole
public void prepareAddUserToProjectRole(String sessionId, String roleId, String username, String projectOrProjectGroupId)
Prepare a simulated response to addUserToProjectRole
-
prepareAddUserToProjectRole
public void prepareAddUserToProjectRole(String sessionId, String roleId, String username, String projectOrProjectGroupId, Exception exception)
Prepare a simulated response to addUserToProjectRole
-
addUserToProjectRole
public void addUserToProjectRole(String sessionId, String roleId, String username, String projectOrProjectGroupId) throws RemoteException
Simulate a call to addUserToProjectRole- Specified by:
addUserToProjectRolein interfaceIRbacAppSoap- Parameters:
sessionId- User sessionIdroleId- The role id to add the user tousername- The username of the user to add to the roleprojectOrProjectGroupId- projectId (or) Project group ID.- Throws:
InvalidSessionFault- If the session is invalidPermissionDeniedFault- If the user doesn't have permission to perform the operationSystemFault- when an unexpected system level error occurs.NoSuchObjectFault- When the roleId is invalidObjectAlreadyExistsFault- If the user already exists in the roleIllegalArgumentFault- If one of the parameters is invalidRemoteException- See Also:
RbacAppSoap.addUserToProjectRole(java.lang.String, java.lang.String, java.lang.String, java.lang.String)
-
prepareRemoveUserFromProjectRole
public void prepareRemoveUserFromProjectRole(String sessionId, String roleId, String username, String projectOrProjectGroupId)
Prepare a simulated response to removeUserFromProjectRole
-
prepareRemoveUserFromProjectRole
public void prepareRemoveUserFromProjectRole(String sessionId, String roleId, String username, String projectOrProjectGroupId, Exception exception)
Prepare a simulated response to removeUserFromProjectRole
-
removeUserFromProjectRole
public void removeUserFromProjectRole(String sessionId, String roleId, String username, String projectOrProjectGroupId) throws RemoteException
Simulate a call to removeUserFromProjectRole- Specified by:
removeUserFromProjectRolein interfaceIRbacAppSoap- Parameters:
sessionId- User sessionIdroleId- The role id to add the user tousername- The username of the user to add to the roleprojectOrProjectGroupId- projectId (or) Project group ID.- Throws:
InvalidSessionFault- If the session is invalidPermissionDeniedFault- If the user doesn't have permission to perform the operationSystemFault- when an unexpected system level error occurs.NoSuchObjectFault- When the roleId is invalidIllegalArgumentFault- If one of the parameters is invalidRemoteException- See Also:
RbacAppSoap.removeUserFromProjectRole(java.lang.String, java.lang.String, java.lang.String, java.lang.String)
-
prepareAddGroup
public void prepareAddGroup(String sessionId, String groupId, String roleId, String projectOrProjectGroupId)
Prepare a simulated response to addGroup
-
prepareAddGroup
public void prepareAddGroup(String sessionId, String groupId, String roleId, String projectOrProjectGroupId, Exception exception)
Prepare a simulated response to addGroup
-
addGroup
public void addGroup(String sessionId, String groupId, String roleId, String projectOrProjectGroupId) throws RemoteException
Simulate a call to addGroup- Specified by:
addGroupin interfaceIRbacAppSoap- Parameters:
sessionId- User sessionId.groupId- the user group to be added.roleId- The role to which the user group is to be added.projectOrProjectGroupId- The project/projectgroup id to which the role belongs.- Throws:
IllegalArgumentFault- If one of the parameters is invalid.InvalidSessionFault- If the session is invalid.PermissionDeniedFault- If the user does not have permission to perform the operation.SystemFault- When an unexpected system level error occurs.NoSuchObjectFault- When the roleId is invalid.ObjectAlreadyExistsFault- If the user group already exists in the role.RemoteException- See Also:
RbacAppSoap.addGroup(java.lang.String, java.lang.String, java.lang.String, java.lang.String)
-
prepareRemoveGroup
public void prepareRemoveGroup(String sessionId, String groupId, String roleId, String projectOrProjectGroupId)
Prepare a simulated response to removeGroup
-
prepareRemoveGroup
public void prepareRemoveGroup(String sessionId, String groupId, String roleId, String projectOrProjectGroupId, Exception exception)
Prepare a simulated response to removeGroup
-
removeGroup
public void removeGroup(String sessionId, String groupId, String roleId, String projectOrProjectGroupId) throws RemoteException
Simulate a call to removeGroup- Specified by:
removeGroupin interfaceIRbacAppSoap- Parameters:
sessionId- User sessionId.groupId- the user group to be added.roleId- The role to which the user group is to be added.projectOrProjectGroupId- The project/projectgroup id to which the role belongs.- Throws:
IllegalArgumentFault- If one of the parameters is invalid.InvalidSessionFault- If the session is invalid.NoSuchObjectFault- When the roleId is invalid.PermissionDeniedFault- If the user does not have permission to perform the operation.SystemFault- When an unexpected system level error occurs.RemoteException- See Also:
RbacAppSoap.removeGroup(java.lang.String, java.lang.String, java.lang.String, java.lang.String)
-
prepareGetRoleList
public void prepareGetRoleList(String sessionId, String projectOrProjectGroupId, Object returnValue)
Prepare a simulated response to getRoleList
-
getRoleList
public RoleSoapList getRoleList(String sessionId, String projectOrProjectGroupId) throws RemoteException
Simulate a call to getRoleList- Specified by:
getRoleListin interfaceIRbacAppSoap- Parameters:
sessionId- User session IdprojectOrProjectGroupId- The Project/Project Group Id to list roles from- Returns:
- The RoleSoapList describing all roles in the project
- Throws:
InvalidSessionFault- If the session is invalidPermissionDeniedFault- If the user doesn't have permission to perform the operationSystemFault- when an unexpected system level error occurs.NoSuchObjectFault- When the projectId is invalidObjectAlreadyExistsFault- If the role exists with the specified title in the projectIllegalArgumentFault- If one of the parameters is invalidRemoteException- See Also:
RbacAppSoap.getRoleList(java.lang.String, java.lang.String)
-
prepareGetInheritedRoleList
public void prepareGetInheritedRoleList(String sessionId, String projectId, Object returnValue)
Prepare a simulated response to getInheritedRoleList
-
getInheritedRoleList
public RoleSoapList getInheritedRoleList(String sessionId, String projectId) throws RemoteException
Simulate a call to getInheritedRoleList- Specified by:
getInheritedRoleListin interfaceIRbacAppSoap- Parameters:
sessionId- User session IdprojectId- The project Id to list the inherited roles from- Returns:
- The Role2SoapList describing all inherited roles in the project
- Throws:
InvalidSessionFault- If the session is invalidPermissionDeniedFault- If the user doesn't have permission to perform the operationSystemFault- when an unexpected system level error occurs.NoSuchObjectFault- When the projectId is invalidIllegalArgumentFault- If one of the parameters is invalidRemoteException- See Also:
RbacAppSoap.getInheritedRoleList(java.lang.String, java.lang.String)
-
prepareGetRoleMemberList
public void prepareGetRoleMemberList(String sessionId, String roleId, Object returnValue)
Prepare a simulated response to getRoleMemberList
-
getRoleMemberList
public UserSoapList getRoleMemberList(String sessionId, String roleId) throws RemoteException
Simulate a call to getRoleMemberList- Specified by:
getRoleMemberListin interfaceIRbacAppSoap- Parameters:
sessionId- User session id.roleId- Role id.- Returns:
- List of users in the specified role.
- Throws:
IllegalArgumentFault- Role id is not specified or invalid.InvalidSessionFault- if the session is invalid.PermissionDeniedFault- if the user does not have permission to perform the operationNoSuchObjectFault- when the specified role id is invalidSystemFault- when an unexpected system level error occurs.RemoteException- See Also:
RbacAppSoap.getRoleMemberList(java.lang.String, java.lang.String)
-
prepareGetProjectRoleMemberList
public void prepareGetProjectRoleMemberList(String sessionId, String roleId, String projectOrProjectGroupId, Object returnValue)
Prepare a simulated response to getProjectRoleMemberList
-
getProjectRoleMemberList
public UserSoapList getProjectRoleMemberList(String sessionId, String roleId, String projectOrProjectGroupId) throws RemoteException
Simulate a call to getProjectRoleMemberList- Specified by:
getProjectRoleMemberListin interfaceIRbacAppSoap- Parameters:
sessionId- User session id.roleId- Role id.projectOrProjectGroupId- Project or Project Group Id- Returns:
- List of users in the specified role in the given project or project group.
- Throws:
IllegalArgumentFault- Role id is not specified or invalid.InvalidSessionFault- if the session is invalid.PermissionDeniedFault- if the user does not have permission to perform the operationNoSuchObjectFault- when the specified role id is invalidSystemFault- when an unexpected system level error occurs.RemoteException- See Also:
RbacAppSoap.getProjectRoleMemberList(java.lang.String, java.lang.String, java.lang.String)
-
prepareGetUserRoleList
public void prepareGetUserRoleList(String sessionId, String projectOrProjectGroupId, String username, Object returnValue)
Prepare a simulated response to getUserRoleList
-
getUserRoleList
public RoleSoapList getUserRoleList(String sessionId, String projectOrProjectGroupId, String username) throws RemoteException
Simulate a call to getUserRoleList- Specified by:
getUserRoleListin interfaceIRbacAppSoap- Parameters:
sessionId- User session id.projectOrProjectGroupId- Project or Project Group id.username- Name of the user.- Returns:
- List of roles that a user is a member of.
- Throws:
IllegalArgumentFault- Username is not specified or invalid.InvalidSessionFault- if the session is invalid.PermissionDeniedFault- if the user does not have permission to perform the operationNoSuchObjectFault- when the specified project or project group id is invalidSystemFault- when an unexpected system level error occurs.RemoteException- See Also:
RbacAppSoap.getUserRoleList(java.lang.String, java.lang.String, java.lang.String)
-
prepareGetUserSiteWideRoleList
public void prepareGetUserSiteWideRoleList(String sessionId, String username, Object returnValue)
Prepare a simulated response to getUserSiteWideRoleList
-
getUserSiteWideRoleList
public RoleSoapList getUserSiteWideRoleList(String sessionId, String username) throws RemoteException
Simulate a call to getUserSiteWideRoleList- Specified by:
getUserSiteWideRoleListin interfaceIRbacAppSoap- Parameters:
sessionId- User session id.username- Name of the user.- Returns:
- List of site-wide roles that a user is a member of.
- Throws:
IllegalArgumentFault- Username is not specified or invalid.InvalidSessionFault- if the session is invalid.PermissionDeniedFault- if the user does not have permission to perform the operationNoSuchObjectFault- when the specified project id is invalidSystemFault- when an unexpected system level error occurs.RemoteException- See Also:
RbacAppSoap.getUserSiteWideRoleList(java.lang.String, java.lang.String)
-
prepareGetSiteWideRoleList
public void prepareGetSiteWideRoleList(String sessionId, Object returnValue)
Prepare a simulated response to getSiteWideRoleList
-
getSiteWideRoleList
public RoleSoapList getSiteWideRoleList(String sessionId) throws RemoteException
Simulate a call to getSiteWideRoleList- Specified by:
getSiteWideRoleListin interfaceIRbacAppSoap- Parameters:
sessionId- User session id.- Returns:
- List of site-wide roles available
- Throws:
InvalidSessionFault- if the session is invalid.PermissionDeniedFault- if the user does not have the permission to perform the operationSystemFault- when an unexpected system level error occurs.RemoteException- See Also:
RbacAppSoap.getSiteWideRoleList(java.lang.String)
-
prepareGetGlobalRoleList
public void prepareGetGlobalRoleList(String sessionId, Object returnValue)
Prepare a simulated response to getGlobalRoleList
-
getGlobalRoleList
public RoleSoapList getGlobalRoleList(String sessionId) throws RemoteException
Simulate a call to getGlobalRoleList- Specified by:
getGlobalRoleListin interfaceIRbacAppSoap- Parameters:
sessionId- User session id.- Returns:
- List of global roles available
- Throws:
InvalidSessionFault- if the session is invalid.PermissionDeniedFault- if the user does not have the permission to perform the operationSystemFault- when an unexpected system level error occurs.RemoteException- See Also:
RbacAppSoap.getGlobalRoleList(java.lang.String)
-
prepareGetGlobalRolesForAssignment
public void prepareGetGlobalRolesForAssignment(String sessionId, String projectOrProjectGroupId, Object returnValue)
Prepare a simulated response to getGlobalRolesForAssignment
-
getGlobalRolesForAssignment
public RoleSoapList getGlobalRolesForAssignment(String sessionId, String projectOrProjectGroupId) throws RemoteException
Simulate a call to getGlobalRolesForAssignment- Specified by:
getGlobalRolesForAssignmentin interfaceIRbacAppSoap- Parameters:
sessionId- User session id.projectOrProjectGroupId- the project or project group from which to get the global roles list- Returns:
- List of global roles available
- Throws:
InvalidSessionFault- if the session is invalid.PermissionDeniedFault- if the user does not have the permission to perform the operationNoSuchObjectFault- when the specified project or project group id is invalidSystemFault- when an unexpected system level error occurs.RemoteException- See Also:
RbacAppSoap.getGlobalRolesForAssignment(java.lang.String, java.lang.String)
-
prepareGetGroupRoleList
public void prepareGetGroupRoleList(String sessionId, String groupId, String projectIdOrProjectGroupId, Object returnValue)
Prepare a simulated response to getGroupRoleList
-
getGroupRoleList
public RoleSoapList getGroupRoleList(String sessionId, String groupId, String projectIdOrProjectGroupId) throws RemoteException
Simulate a call to getGroupRoleList- Specified by:
getGroupRoleListin interfaceIRbacAppSoap- Parameters:
sessionId- User session id.groupId- User Group id.projectIdOrProjectGroupId- Project id or project group id.- Returns:
- List of roles the user group is associated with.
- Throws:
InvalidSessionFault- if the session is invalid.PermissionDeniedFault- if the user does not have permission to perform the operation.SystemFault- when an unexpected system level error occurs.NoSuchObjectFault- when the specified project id or project group id is invalid.IllegalArgumentFault- If one of the parameters is invalid.RemoteException- See Also:
RbacAppSoap.getGroupRoleList(java.lang.String, java.lang.String, java.lang.String)
-
prepareGetRoleGroupList
public void prepareGetRoleGroupList(String sessionId, String roleId, Object returnValue)
Prepare a simulated response to getRoleGroupList
-
getRoleGroupList
public UserGroupSoapList getRoleGroupList(String sessionId, String roleId) throws RemoteException
Simulate a call to getRoleGroupList- Specified by:
getRoleGroupListin interfaceIRbacAppSoap- Parameters:
sessionId- User session id.roleId- Role id.- Returns:
- List of user groups associated with a role.
- Throws:
IllegalArgumentFault- roleId is not specified or invalid.InvalidSessionFault- if the session is invalid.PermissionDeniedFault- if the user does not have permission to perform the operation.SystemFault- when an unexpected system level error occurs.NoSuchObjectFault- when the specified project id is invalid.RemoteException- See Also:
RbacAppSoap.getRoleGroupList(java.lang.String, java.lang.String)
-
prepareListGroupRolesByProject
public void prepareListGroupRolesByProject(String sessionId, String projectId, Object returnValue)
Prepare a simulated response to listGroupRolesByProject
-
listGroupRolesByProject
public RoleGroupSoapList listGroupRolesByProject(String sessionId, String projectId) throws RemoteException
Simulate a call to listGroupRolesByProject- Specified by:
listGroupRolesByProjectin interfaceIRbacAppSoap- Parameters:
sessionId- User session id.projectId- Project id.- Returns:
- list of user groups and the roles it is associated with
- Throws:
IllegalArgumentFault- projectId is not specified or invalid.InvalidSessionFault- if the session is invalid.PermissionDeniedFault- if the user does not have permission to perform the operation.SystemFault- when an unexpected system level error occurs.NoSuchObjectFault- when the specified project id is invalid.RemoteException- See Also:
RbacAppSoap.listGroupRolesByProject(java.lang.String, java.lang.String)
-
prepareGetRoleGroupUsers
public void prepareGetRoleGroupUsers(String sessionId, String projectIdOrProjectGroupId, String roleId, Object returnValue)
Prepare a simulated response to getRoleGroupUsers
-
getRoleGroupUsers
public UserSoapList getRoleGroupUsers(String sessionId, String projectIdOrProjectGroupId, String roleId) throws RemoteException
Simulate a call to getRoleGroupUsers- Specified by:
getRoleGroupUsersin interfaceIRbacAppSoap- Parameters:
sessionId- User session id.projectIdOrProjectGroupId- Project or Project Group's id.roleId- Role id.- Returns:
- List of users in the specified role.
- Throws:
IllegalArgumentFault- Role id is not specified or invalid.InvalidSessionFault- if the session is invalid.PermissionDeniedFault- if the user does not have permission to perform the operationNoSuchObjectFault- when the specified role id is invalidSystemFault- when an unexpected system level error occurs.RemoteException- See Also:
RbacAppSoap.getRoleGroupUsers(java.lang.String, java.lang.String, java.lang.String)
-
prepareListRolePaths
public void prepareListRolePaths(String sessionId, String roleId, String repositoryId, Object returnValue)
Prepare a simulated response to listRolePaths
-
listRolePaths
public SoapNamedValues listRolePaths(String sessionId, String roleId, String repositoryId) throws RemoteException
Simulate a call to listRolePaths- Specified by:
listRolePathsin interfaceIRbacAppSoap- Parameters:
sessionId- User session IdroleId- the key of the role the role paths belongs torepositoryId- the repository id- Returns:
- role path in soap named values format
- Throws:
InvalidSessionFault- If the session is invalidPermissionDeniedFault- If the user doesn't have permission to perform the operationSystemFault- when an unexpected system level error occurs.NoSuchObjectFault- When the roleId is invalidIllegalArgumentFault- If one of the parameters is invalidRemoteException- See Also:
RbacAppSoap.listRolePaths(java.lang.String, java.lang.String, java.lang.String)
-
prepareSetRolePaths
public void prepareSetRolePaths(String sessionId, String roleId, String repositoryId, SoapNamedValues rolePaths)
Prepare a simulated response to setRolePaths
-
prepareSetRolePaths
public void prepareSetRolePaths(String sessionId, String roleId, String repositoryId, SoapNamedValues rolePaths, Exception exception)
Prepare a simulated response to setRolePaths
-
setRolePaths
public void setRolePaths(String sessionId, String roleId, String repositoryId, SoapNamedValues rolePaths) throws RemoteException
Simulate a call to setRolePaths- Specified by:
setRolePathsin interfaceIRbacAppSoap- Parameters:
sessionId- User session IdroleId- the key of the role the role paths belongs torepositoryId- the repository idrolePaths- list of role paths- Throws:
InvalidSessionFault- If the session is invalidPermissionDeniedFault- If the user doesn't have permission to perform the operationSystemFault- when an unexpected system level error occurs.NoSuchObjectFault- When the roleId is invalidIllegalArgumentFault- If one of the parameters is invalidRemoteException- See Also:
RbacAppSoap.setRolePaths(java.lang.String, java.lang.String, java.lang.String, com.collabnet.ce.soap60.types.SoapNamedValues)
-
prepareGetProjectsForAction
public void prepareGetProjectsForAction(String sessionId, String operationString, String userName, Object returnValue)
Prepare a simulated response to getProjectsForAction
-
getProjectsForAction
public ProjectSoapList getProjectsForAction(String sessionId, String operationString, String userName) throws RemoteException
Simulate a call to getProjectsForAction- Specified by:
getProjectsForActionin interfaceIRbacAppSoap- Parameters:
sessionId- User session IdoperationString- Operation in format type.category.nameuserName- the user who would have cluster permission in the returned project list- Returns:
- List of projects
- Throws:
InvalidSessionFault- when the session is invalidPermissionDeniedFault- when the user doesn't have permission to perform the operationIllegalArgumentFault- when the arguments are null or empty.SystemFault- when an unexpected system level error occurs.NoSuchObjectFault- when the userName doesn't exist.RemoteException- See Also:
RbacAppSoap.getProjectsForAction(java.lang.String, java.lang.String, java.lang.String)
-
prepareRequestRole
public void prepareRequestRole(String sessionId, String roleId, String projectId)
Prepare a simulated response to requestRole
-
prepareRequestRole
public void prepareRequestRole(String sessionId, String roleId, String projectId, Exception exception)
Prepare a simulated response to requestRole
-
requestRole
public void requestRole(String sessionId, String roleId, String projectId) throws RemoteException
Simulate a call to requestRole- Specified by:
requestRolein interfaceIRbacAppSoap- Parameters:
sessionId- User session IdroleId- the role idprojectId- project in which to make the request- Throws:
InvalidSessionFault- If the session is invalidPermissionDeniedFault- If the user doesn't have permission to perform the operationNoSuchObjectFault- When the roleId or projectId is invalidIllegalArgumentFault- incorrect parametersSystemFault- when an unexpected system level error occurs.RemoteException- See Also:
RbacAppSoap.requestRole(java.lang.String, java.lang.String, java.lang.String)
-
prepareSetAutomaticallyGrantOnRequest
public void prepareSetAutomaticallyGrantOnRequest(String sessionId, String roleId, String projectId, boolean autoGrant)
Prepare a simulated response to setAutomaticallyGrantOnRequest
-
prepareSetAutomaticallyGrantOnRequest
public void prepareSetAutomaticallyGrantOnRequest(String sessionId, String roleId, String projectId, boolean autoGrant, Exception exception)
Prepare a simulated response to setAutomaticallyGrantOnRequest
-
setAutomaticallyGrantOnRequest
public void setAutomaticallyGrantOnRequest(String sessionId, String roleId, String projectId, boolean autoGrant) throws RemoteException
Simulate a call to setAutomaticallyGrantOnRequest- Specified by:
setAutomaticallyGrantOnRequestin interfaceIRbacAppSoap- Parameters:
sessionId- User session IdroleId- the role idprojectId- the project to which automatically grant property to be setautoGrant- true to set it available upon request- Throws:
InvalidSessionFault- If the session is invalidPermissionDeniedFault- If the user doesn't have permission to perform the operationNoSuchObjectFault- When the projectId is invalidSystemFault- when an unexpected system level error occurs.IllegalArgumentFault- when the role is not available upon requestRemoteException- See Also:
RbacAppSoap.setAutomaticallyGrantOnRequest(java.lang.String, java.lang.String, java.lang.String, boolean)
-
prepareGetAutomaticallyGrantOnRequest
public void prepareGetAutomaticallyGrantOnRequest(String sessionId, String roleId, String projectId, Object returnValue)
Prepare a simulated response to getAutomaticallyGrantOnRequest
-
getAutomaticallyGrantOnRequest
public boolean getAutomaticallyGrantOnRequest(String sessionId, String roleId, String projectId) throws RemoteException
Simulate a call to getAutomaticallyGrantOnRequest- Specified by:
getAutomaticallyGrantOnRequestin interfaceIRbacAppSoap- Parameters:
sessionId- User session IdroleId- the role idprojectId- the project to which automatically grant property to be set- Returns:
- Auto grant flag of role
- Throws:
InvalidSessionFault- If the session is invalidPermissionDeniedFault- If the user doesn't have permission to perform the operationNoSuchObjectFault- When the projectId is invalidSystemFault- when an unexpected system level error occurs.IllegalArgumentFault- when there is a request for global role with Projects project id.RemoteException- See Also:
RbacAppSoap.getAutomaticallyGrantOnRequest(java.lang.String, java.lang.String, java.lang.String)
-
prepareGetPendingRequestedRoles
public void prepareGetPendingRequestedRoles(String sessionId, String projectId, Object returnValue)
Prepare a simulated response to getPendingRequestedRoles
-
getPendingRequestedRoles
public RoleRequestSoapList getPendingRequestedRoles(String sessionId, String projectId) throws RemoteException
Simulate a call to getPendingRequestedRoles- Specified by:
getPendingRequestedRolesin interfaceIRbacAppSoap- Parameters:
sessionId- User session IdprojectId- project in which the pending requested roles needs to be retrieved- Returns:
- List of pending requested roles.
- Throws:
InvalidSessionFault- If the session is invalidPermissionDeniedFault- If the user doesn't have permission to perform the operationNoSuchObjectFault- When projectId is invalidIllegalArgumentFault- incorrect parametersSystemFault- unexpected error occursRemoteException- See Also:
RbacAppSoap.getPendingRequestedRoles(java.lang.String, java.lang.String)
-
prepareApproveRoleRequest
public void prepareApproveRoleRequest(String sessionId, String requestId, String projectId)
Prepare a simulated response to approveRoleRequest
-
prepareApproveRoleRequest
public void prepareApproveRoleRequest(String sessionId, String requestId, String projectId, Exception exception)
Prepare a simulated response to approveRoleRequest
-
approveRoleRequest
public void approveRoleRequest(String sessionId, String requestId, String projectId) throws RemoteException
Simulate a call to approveRoleRequest- Specified by:
approveRoleRequestin interfaceIRbacAppSoap- Parameters:
sessionId- User session IdrequestId- Role request IdprojectId- project in which the role request was raised- Throws:
InvalidSessionFault- If the session is invalidPermissionDeniedFault- If the user doesn't have permission to perform the operationNoSuchObjectFault- When the projectId is invalidIllegalArgumentFault- incorrect parametersSystemFault- unexpected error occursRemoteException- See Also:
RbacAppSoap.approveRoleRequest(java.lang.String, java.lang.String, java.lang.String)
-
prepareRejectRoleRequest
public void prepareRejectRoleRequest(String sessionId, String requestId, String projectId)
Prepare a simulated response to rejectRoleRequest
-
prepareRejectRoleRequest
public void prepareRejectRoleRequest(String sessionId, String requestId, String projectId, Exception exception)
Prepare a simulated response to rejectRoleRequest
-
rejectRoleRequest
public void rejectRoleRequest(String sessionId, String requestId, String projectId) throws RemoteException
Simulate a call to rejectRoleRequest- Specified by:
rejectRoleRequestin interfaceIRbacAppSoap- Parameters:
sessionId- User session IdrequestId- Role request IdprojectId- project in which the role request was raised- Throws:
InvalidSessionFault- If the session is invalidPermissionDeniedFault- If the user doesn't have permission to perform the operationNoSuchObjectFault- When the projectId is invalidIllegalArgumentFault- incorrect parametersSystemFault- unexpected error occursRemoteException- See Also:
RbacAppSoap.rejectRoleRequest(java.lang.String, java.lang.String, java.lang.String)
-
prepareListGroupRolesByProjectGroup
public void prepareListGroupRolesByProjectGroup(String sessionId, String projectGroupId, Object returnValue)
Prepare a simulated response to listGroupRolesByProjectGroup
-
listGroupRolesByProjectGroup
public RoleGroupSoapList listGroupRolesByProjectGroup(String sessionId, String projectGroupId) throws RemoteException
Simulate a call to listGroupRolesByProjectGroup- Specified by:
listGroupRolesByProjectGroupin interfaceIRbacAppSoap- Parameters:
sessionId- User session id.projectGroupId- Project group id.- Returns:
- list of user groups and the roles it is associated with
- Throws:
IllegalArgumentFault- projectGroupId is not specified or invalid.InvalidSessionFault- if the session is invalid.PermissionDeniedFault- if the user does not have permission to perform the operation.SystemFault- when an unexpected system level error occurs.NoSuchObjectFault- when the specified project group id is invalid.RemoteException- See Also:
RbacAppSoap.listGroupRolesByProjectGroup(java.lang.String, java.lang.String)
-
prepareGetProjectsByIntegratedAppPermission
public void prepareGetProjectsByIntegratedAppPermission(String sessionId, String perm, String integratedAppName, Object returnValue)
Prepare a simulated response to getProjectsByIntegratedAppPermission
-
getProjectsByIntegratedAppPermission
public String[] getProjectsByIntegratedAppPermission(String sessionId, String perm, String integratedAppName) throws RemoteException
Simulate a call to getProjectsByIntegratedAppPermission- Specified by:
getProjectsByIntegratedAppPermissionin interfaceIRbacAppSoap- Parameters:
sessionId- User session key.perm- permission criteriaintegratedAppName- the IntegratedApp plugName.- Returns:
- string array of id of projects in which the current user has given permission to given integrated app.
- Throws:
InvalidSessionFault- when the specified session id is invalid.SystemFault- when an unexpected system level error occurs.NoSuchObjectFault- When the plugName is invalidIllegalArgumentFault- When the userId is invalidRemoteException- See Also:
RbacAppSoap.getProjectsByIntegratedAppPermission(java.lang.String, java.lang.String, java.lang.String)
-
prepareGetIntegratedAppPermissionsForProject
public void prepareGetIntegratedAppPermissionsForProject(String sessionId, String projectId, String linkId, Object returnValue)
Prepare a simulated response to getIntegratedAppPermissionsForProject
-
getIntegratedAppPermissionsForProject
public String[] getIntegratedAppPermissionsForProject(String sessionId, String projectId, String linkId) throws RemoteException
Simulate a call to getIntegratedAppPermissionsForProject- Specified by:
getIntegratedAppPermissionsForProjectin interfaceIRbacAppSoap- Parameters:
sessionId- User session key.projectId- the projectIdlinkId- the linkId between integrated app and project- Returns:
- String array of permissions for given integrated application
- Throws:
InvalidSessionFault- when the specified session id is invalid.NoSuchObjectFaultRemoteException- See Also:
RbacAppSoap.getIntegratedAppPermissionsForProject(java.lang.String, java.lang.String, java.lang.String)
-
prepareGetIntegratedAppPermissions
public void prepareGetIntegratedAppPermissions(String sessionId, String[] projectIds, String baseUrl, Object returnValue)
Prepare a simulated response to getIntegratedAppPermissions
-
getIntegratedAppPermissions
public IntegratedAppProjectPermissionSoapList getIntegratedAppPermissions(String sessionId, String[] projectIds, String baseUrl) throws RemoteException
Simulate a call to getIntegratedAppPermissions- Specified by:
getIntegratedAppPermissionsin interfaceIRbacAppSoap- Parameters:
sessionId- User session key.projectIds- the projectIdsbaseUrl- the base url of the integrated application- Returns:
- List of integrated application permission on the specified projects for current user
- Throws:
IllegalArgumentFault- when baseUrl is null or emptyInvalidSessionFault- when the specified session id is invalid.NoSuchObjectFault- when the specified baseUrl is invalidSystemFault- when an unexpected system error occursRemoteException- See Also:
RbacAppSoap.getIntegratedAppPermissions(java.lang.String, java.lang.String[], java.lang.String)
-
-