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
-
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
addCluster
(String sessionId, String roleId, String operationCluster, String folderId) Simulate a call to addClustervoid
Simulate a call to addGroupvoid
addIntegratedApplicationPermission
(String sessionId, String roleId, String integratedAppName, String permission) Simulate a call to addIntegratedApplicationPermissionvoid
addRemoveIAPermission
(String sessionId, String roleId, String integratedAppName, String permission, boolean addPermission) Simulate a call to addRemoveIAPermissionvoid
Simulate a call to addUservoid
addUserToProjectRole
(String sessionId, String roleId, String username, String projectOrProjectGroupId) Simulate a call to addUserToProjectRolevoid
approveRoleRequest
(String sessionId, String requestId, String projectId) Simulate a call to approveRoleRequestvoid
checkPermissionBasedOnSideWideOrProjectRole
(com.vasoftware.sf.server.services.access.rbac.RoleDO role, com.vasoftware.sf.common.access.rbac.Operation operation, String loggedInUser) Simulate a call to checkPermissionBasedOnSideWideOrProjectRolevoid
checkSiteWideRolePermission
(com.vasoftware.sf.common.access.rbac.Operation operation, String loggedInUser) Simulate a call to checkSiteWideRolePermissionvoid
checkUserActiveStatus
(String userName, String loggedInUser) Simulate a call to checkUserActiveStatuscom.vasoftware.sf.server.services.access.rbac.Resource
constructResource
(String operationCluster, String folderId, String loggedInUser) Simulate a call to constructResourcecreateGlobalRole
(String sessionId, String title, String description, boolean preventInheritance, boolean requestable) Simulate a call to createGlobalRolecreateRole
(String sessionId, String projectOrProjectGroupId, String title, String description, boolean preventInheritance, boolean requestable, boolean autoGrant) Simulate a call to createRolecreateSiteWideRole
(String sessionId, String title, String description, boolean preventInheritance) Simulate a call to createSiteWideRolevoid
deleteRole
(String sessionId, String roleId) Simulate a call to deleteRoleboolean
getAutomaticallyGrantOnRequest
(String sessionId, String roleId, String projectId) Simulate a call to getAutomaticallyGrantOnRequestgetGlobalRoleList
(String sessionId) Simulate a call to getGlobalRoleListgetGlobalRolesForAssignment
(String sessionId, String projectOrProjectGroupId) Simulate a call to getGlobalRolesForAssignmentgetGroupRoleList
(String sessionId, String groupId, String projectIdOrProjectGroupId) Simulate a call to getGroupRoleListgetIAPermissionId
(String integratedAppName, String permission, String loggedInUser) Simulate a call to getIAPermissionIdgetInheritedRoleList
(String sessionId, String projectId) Simulate a call to getInheritedRoleListgetIntegratedAppPermissions
(String sessionId, String[] projectIds, String baseUrl) Simulate a call to getIntegratedAppPermissionsString[]
getIntegratedAppPermissionsForProject
(String sessionId, String projectId, String linkId) Simulate a call to getIntegratedAppPermissionsForProjectSimulate a call to getLinkIdgetPendingRequestedRoles
(String sessionId, String projectId) Simulate a call to getPendingRequestedRolesgetProjectRoleMemberList
(String sessionId, String roleId, String projectOrProjectGroupId) Simulate a call to getProjectRoleMemberListString[]
getProjectsByIntegratedAppPermission
(String sessionId, String perm, String integratedAppName) Simulate a call to getProjectsByIntegratedAppPermissiongetProjectsForAction
(String sessionId, String operationString, String userName) Simulate a call to getProjectsForActiongetRoleData
(String sessionId, String roleId) Simulate a call to getRoleDatagetRoleGroupList
(String sessionId, String roleId) Simulate a call to getRoleGroupListgetRoleGroupUsers
(String sessionId, String projectIdOrProjectGroupId, String roleId) Simulate a call to getRoleGroupUsersgetRoleList
(String sessionId, String projectOrProjectGroupId) Simulate a call to getRoleListgetRoleMemberList
(String sessionId, String roleId) Simulate a call to getRoleMemberListgetSiteWideRoleList
(String sessionId) Simulate a call to getSiteWideRoleListgetUserRoleList
(String sessionId, String projectOrProjectGroupId, String username) Simulate a call to getUserRoleListgetUserRolesMap
(UserRolesSoapDO[] userRolesSoapDOs) Simulate a call to getUserRolesMapgetUserSiteWideRoleList
(String sessionId, String username) Simulate a call to getUserSiteWideRoleListvoid
grantRolesToMembers
(String sessionId, UserRolesSoapDO[] userRolesSoapDOs, String projectId) Simulate a call to grantRolesToMemberslistClusterForDefaultAccessPermissions
(String sessionId, String projectId) Simulate a call to listClusterForDefaultAccessPermissionslistClusters
(String sessionId, String roleId) Simulate a call to listClusterslistGroupRolesByProject
(String sessionId, String projectId) Simulate a call to listGroupRolesByProjectlistGroupRolesByProjectGroup
(String sessionId, String projectGroupId) Simulate a call to listGroupRolesByProjectGrouplistRolePaths
(String sessionId, String roleId, String repositoryId) Simulate a call to listRolePathsvoid
prepareAddCluster
(String sessionId, String roleId, String operationCluster, String folderId) Prepare a simulated response to addClustervoid
prepareAddCluster
(String sessionId, String roleId, String operationCluster, String folderId, Exception exception) Prepare a simulated response to addClustervoid
prepareAddGroup
(String sessionId, String groupId, String roleId, String projectOrProjectGroupId) Prepare a simulated response to addGroupvoid
prepareAddGroup
(String sessionId, String groupId, String roleId, String projectOrProjectGroupId, Exception exception) Prepare a simulated response to addGroupvoid
prepareAddIntegratedApplicationPermission
(String sessionId, String roleId, String integratedAppName, String permission) Prepare a simulated response to addIntegratedApplicationPermissionvoid
prepareAddIntegratedApplicationPermission
(String sessionId, String roleId, String integratedAppName, String permission, Exception exception) Prepare a simulated response to addIntegratedApplicationPermissionvoid
prepareAddRemoveIAPermission
(String sessionId, String roleId, String integratedAppName, String permission, boolean addPermission) Prepare a simulated response to addRemoveIAPermissionvoid
prepareAddRemoveIAPermission
(String sessionId, String roleId, String integratedAppName, String permission, boolean addPermission, Exception exception) Prepare a simulated response to addRemoveIAPermissionvoid
prepareAddUser
(String sessionId, String roleId, String username) Prepare a simulated response to addUservoid
prepareAddUser
(String sessionId, String roleId, String username, Exception exception) Prepare a simulated response to addUservoid
prepareAddUserToProjectRole
(String sessionId, String roleId, String username, String projectOrProjectGroupId) Prepare a simulated response to addUserToProjectRolevoid
prepareAddUserToProjectRole
(String sessionId, String roleId, String username, String projectOrProjectGroupId, Exception exception) Prepare a simulated response to addUserToProjectRolevoid
prepareApproveRoleRequest
(String sessionId, String requestId, String projectId) Prepare a simulated response to approveRoleRequestvoid
prepareApproveRoleRequest
(String sessionId, String requestId, String projectId, Exception exception) Prepare a simulated response to approveRoleRequestvoid
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 checkPermissionBasedOnSideWideOrProjectRolevoid
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 checkPermissionBasedOnSideWideOrProjectRolevoid
prepareCheckSiteWideRolePermission
(com.vasoftware.sf.common.access.rbac.Operation operation, String loggedInUser) Prepare a simulated response to checkSiteWideRolePermissionvoid
prepareCheckSiteWideRolePermission
(com.vasoftware.sf.common.access.rbac.Operation operation, String loggedInUser, Exception exception) Prepare a simulated response to checkSiteWideRolePermissionvoid
prepareCheckUserActiveStatus
(String userName, String loggedInUser) Prepare a simulated response to checkUserActiveStatusvoid
prepareCheckUserActiveStatus
(String userName, String loggedInUser, Exception exception) Prepare a simulated response to checkUserActiveStatusvoid
prepareConstructResource
(String operationCluster, String folderId, String loggedInUser, Object returnValue) Prepare a simulated response to constructResourcevoid
prepareCreateGlobalRole
(String sessionId, String title, String description, boolean preventInheritance, boolean requestable, Object returnValue) Prepare a simulated response to createGlobalRolevoid
prepareCreateRole
(String sessionId, String projectOrProjectGroupId, String title, String description, boolean preventInheritance, boolean requestable, boolean autoGrant, Object returnValue) Prepare a simulated response to createRolevoid
prepareCreateSiteWideRole
(String sessionId, String title, String description, boolean preventInheritance, Object returnValue) Prepare a simulated response to createSiteWideRolevoid
prepareDeleteRole
(String sessionId, String roleId) Prepare a simulated response to deleteRolevoid
prepareDeleteRole
(String sessionId, String roleId, Exception exception) Prepare a simulated response to deleteRolevoid
prepareGetAutomaticallyGrantOnRequest
(String sessionId, String roleId, String projectId, Object returnValue) Prepare a simulated response to getAutomaticallyGrantOnRequestvoid
prepareGetGlobalRoleList
(String sessionId, Object returnValue) Prepare a simulated response to getGlobalRoleListvoid
prepareGetGlobalRolesForAssignment
(String sessionId, String projectOrProjectGroupId, Object returnValue) Prepare a simulated response to getGlobalRolesForAssignmentvoid
prepareGetGroupRoleList
(String sessionId, String groupId, String projectIdOrProjectGroupId, Object returnValue) Prepare a simulated response to getGroupRoleListvoid
prepareGetIAPermissionId
(String integratedAppName, String permission, String loggedInUser, Object returnValue) Prepare a simulated response to getIAPermissionIdvoid
prepareGetInheritedRoleList
(String sessionId, String projectId, Object returnValue) Prepare a simulated response to getInheritedRoleListvoid
prepareGetIntegratedAppPermissions
(String sessionId, String[] projectIds, String baseUrl, Object returnValue) Prepare a simulated response to getIntegratedAppPermissionsvoid
prepareGetIntegratedAppPermissionsForProject
(String sessionId, String projectId, String linkId, Object returnValue) Prepare a simulated response to getIntegratedAppPermissionsForProjectvoid
prepareGetLinkId
(String projectId, String integratedAppName, String roleId, String loggedInUser, Object returnValue) Prepare a simulated response to getLinkIdvoid
prepareGetPendingRequestedRoles
(String sessionId, String projectId, Object returnValue) Prepare a simulated response to getPendingRequestedRolesvoid
prepareGetProjectRoleMemberList
(String sessionId, String roleId, String projectOrProjectGroupId, Object returnValue) Prepare a simulated response to getProjectRoleMemberListvoid
prepareGetProjectsByIntegratedAppPermission
(String sessionId, String perm, String integratedAppName, Object returnValue) Prepare a simulated response to getProjectsByIntegratedAppPermissionvoid
prepareGetProjectsForAction
(String sessionId, String operationString, String userName, Object returnValue) Prepare a simulated response to getProjectsForActionvoid
prepareGetRoleData
(String sessionId, String roleId, Object returnValue) Prepare a simulated response to getRoleDatavoid
prepareGetRoleGroupList
(String sessionId, String roleId, Object returnValue) Prepare a simulated response to getRoleGroupListvoid
prepareGetRoleGroupUsers
(String sessionId, String projectIdOrProjectGroupId, String roleId, Object returnValue) Prepare a simulated response to getRoleGroupUsersvoid
prepareGetRoleList
(String sessionId, String projectOrProjectGroupId, Object returnValue) Prepare a simulated response to getRoleListvoid
prepareGetRoleMemberList
(String sessionId, String roleId, Object returnValue) Prepare a simulated response to getRoleMemberListvoid
prepareGetSiteWideRoleList
(String sessionId, Object returnValue) Prepare a simulated response to getSiteWideRoleListvoid
prepareGetUserRoleList
(String sessionId, String projectOrProjectGroupId, String username, Object returnValue) Prepare a simulated response to getUserRoleListvoid
prepareGetUserRolesMap
(UserRolesSoapDO[] userRolesSoapDOs, Object returnValue) Prepare a simulated response to getUserRolesMapvoid
prepareGetUserSiteWideRoleList
(String sessionId, String username, Object returnValue) Prepare a simulated response to getUserSiteWideRoleListvoid
prepareGrantRolesToMembers
(String sessionId, UserRolesSoapDO[] userRolesSoapDOs, String projectId) Prepare a simulated response to grantRolesToMembersvoid
prepareGrantRolesToMembers
(String sessionId, UserRolesSoapDO[] userRolesSoapDOs, String projectId, Exception exception) Prepare a simulated response to grantRolesToMembersvoid
prepareListClusterForDefaultAccessPermissions
(String sessionId, String projectId, Object returnValue) Prepare a simulated response to listClusterForDefaultAccessPermissionsvoid
prepareListClusters
(String sessionId, String roleId, Object returnValue) Prepare a simulated response to listClustersvoid
prepareListGroupRolesByProject
(String sessionId, String projectId, Object returnValue) Prepare a simulated response to listGroupRolesByProjectvoid
prepareListGroupRolesByProjectGroup
(String sessionId, String projectGroupId, Object returnValue) Prepare a simulated response to listGroupRolesByProjectGroupvoid
prepareListRolePaths
(String sessionId, String roleId, String repositoryId, Object returnValue) Prepare a simulated response to listRolePathsvoid
prepareRejectRoleRequest
(String sessionId, String requestId, String projectId) Prepare a simulated response to rejectRoleRequestvoid
prepareRejectRoleRequest
(String sessionId, String requestId, String projectId, Exception exception) Prepare a simulated response to rejectRoleRequestvoid
prepareRemoveCluster
(String sessionId, String roleId, String operationCluster, String folderId) Prepare a simulated response to removeClustervoid
prepareRemoveCluster
(String sessionId, String roleId, String operationCluster, String folderId, Exception exception) Prepare a simulated response to removeClustervoid
prepareRemoveGroup
(String sessionId, String groupId, String roleId, String projectOrProjectGroupId) Prepare a simulated response to removeGroupvoid
prepareRemoveGroup
(String sessionId, String groupId, String roleId, String projectOrProjectGroupId, Exception exception) Prepare a simulated response to removeGroupvoid
prepareRemoveIntegratedApplicationPermission
(String sessionId, String roleId, String integratedAppName, String permission) Prepare a simulated response to removeIntegratedApplicationPermissionvoid
prepareRemoveIntegratedApplicationPermission
(String sessionId, String roleId, String integratedAppName, String permission, Exception exception) Prepare a simulated response to removeIntegratedApplicationPermissionvoid
prepareRemoveUser
(String sessionId, String roleId, String username) Prepare a simulated response to removeUservoid
prepareRemoveUser
(String sessionId, String roleId, String username, Exception exception) Prepare a simulated response to removeUservoid
prepareRemoveUserFromProjectRole
(String sessionId, String roleId, String username, String projectOrProjectGroupId) Prepare a simulated response to removeUserFromProjectRolevoid
prepareRemoveUserFromProjectRole
(String sessionId, String roleId, String username, String projectOrProjectGroupId, Exception exception) Prepare a simulated response to removeUserFromProjectRolevoid
prepareRequestRole
(String sessionId, String roleId, String projectId) Prepare a simulated response to requestRolevoid
prepareRequestRole
(String sessionId, String roleId, String projectId, Exception exception) Prepare a simulated response to requestRolevoid
prepareRevokeRolesFromMembers
(String sessionId, UserRolesSoapDO[] userRolesSoapDOs, String projectId) Prepare a simulated response to revokeRolesFromMembersvoid
prepareRevokeRolesFromMembers
(String sessionId, UserRolesSoapDO[] userRolesSoapDOs, String projectId, Exception exception) Prepare a simulated response to revokeRolesFromMembersvoid
prepareSetAutomaticallyGrantOnRequest
(String sessionId, String roleId, String projectId, boolean autoGrant) Prepare a simulated response to setAutomaticallyGrantOnRequestvoid
prepareSetAutomaticallyGrantOnRequest
(String sessionId, String roleId, String projectId, boolean autoGrant, Exception exception) Prepare a simulated response to setAutomaticallyGrantOnRequestvoid
prepareSetRoleData
(String sessionId, RoleSoapDO roleData) Prepare a simulated response to setRoleDatavoid
prepareSetRoleData
(String sessionId, RoleSoapDO roleData, Exception exception) Prepare a simulated response to setRoleDatavoid
prepareSetRolePaths
(String sessionId, String roleId, String repositoryId, SoapNamedValues rolePaths) Prepare a simulated response to setRolePathsvoid
prepareSetRolePaths
(String sessionId, String roleId, String repositoryId, SoapNamedValues rolePaths, Exception exception) Prepare a simulated response to setRolePathsvoid
rejectRoleRequest
(String sessionId, String requestId, String projectId) Simulate a call to rejectRoleRequestvoid
removeCluster
(String sessionId, String roleId, String operationCluster, String folderId) Simulate a call to removeClustervoid
removeGroup
(String sessionId, String groupId, String roleId, String projectOrProjectGroupId) Simulate a call to removeGroupvoid
removeIntegratedApplicationPermission
(String sessionId, String roleId, String integratedAppName, String permission) Simulate a call to removeIntegratedApplicationPermissionvoid
removeUser
(String sessionId, String roleId, String username) Simulate a call to removeUservoid
removeUserFromProjectRole
(String sessionId, String roleId, String username, String projectOrProjectGroupId) Simulate a call to removeUserFromProjectRolevoid
requestRole
(String sessionId, String roleId, String projectId) Simulate a call to requestRolevoid
revokeRolesFromMembers
(String sessionId, UserRolesSoapDO[] userRolesSoapDOs, String projectId) Simulate a call to revokeRolesFromMembersvoid
setAutomaticallyGrantOnRequest
(String sessionId, String roleId, String projectId, boolean autoGrant) Simulate a call to setAutomaticallyGrantOnRequestvoid
setRoleData
(String sessionId, RoleSoapDO roleData) Simulate a call to setRoleDatavoid
setRolePaths
(String sessionId, String roleId, String repositoryId, SoapNamedValues rolePaths) Simulate a call to setRolePathsMethods 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
-
RbacAppSoapMockStub
-
-
Method Details
-
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:
createRole
in 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:
-
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:
createSiteWideRole
in 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:
-
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:
createGlobalRole
in 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:
-
prepareSetRoleData
Prepare a simulated response to setRoleData -
prepareSetRoleData
Prepare a simulated response to setRoleData -
setRoleData
Simulate a call to setRoleData- Specified by:
setRoleData
in 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:
-
prepareGetRoleData
Prepare a simulated response to getRoleData -
getRoleData
Simulate a call to getRoleData- Specified by:
getRoleData
in 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:
-
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- See Also:
-
RbacAppSoap.checkPermissionBasedOnSideWideOrProjectRole(com.vasoftware.sf.server.services.access.rbac.RoleDO, com.vasoftware.sf.common.access.rbac.Operation, 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, Exception exception) Prepare a simulated response to checkPermissionBasedOnSideWideOrProjectRole- See Also:
-
RbacAppSoap.checkPermissionBasedOnSideWideOrProjectRole(com.vasoftware.sf.server.services.access.rbac.RoleDO, com.vasoftware.sf.common.access.rbac.Operation, java.lang.String)
-
checkPermissionBasedOnSideWideOrProjectRole
public void checkPermissionBasedOnSideWideOrProjectRole(com.vasoftware.sf.server.services.access.rbac.RoleDO role, com.vasoftware.sf.common.access.rbac.Operation operation, String loggedInUser) throws RemoteException Simulate a call to checkPermissionBasedOnSideWideOrProjectRole- Throws:
RemoteException
- See Also:
-
RbacAppSoap.checkPermissionBasedOnSideWideOrProjectRole(com.vasoftware.sf.server.services.access.rbac.RoleDO, com.vasoftware.sf.common.access.rbac.Operation, java.lang.String)
-
prepareCheckSiteWideRolePermission
public void prepareCheckSiteWideRolePermission(com.vasoftware.sf.common.access.rbac.Operation operation, String loggedInUser) Prepare a simulated response to checkSiteWideRolePermission- See Also:
-
RbacAppSoap.checkSiteWideRolePermission(com.vasoftware.sf.common.access.rbac.Operation, java.lang.String)
-
prepareCheckSiteWideRolePermission
public void prepareCheckSiteWideRolePermission(com.vasoftware.sf.common.access.rbac.Operation operation, String loggedInUser, Exception exception) Prepare a simulated response to checkSiteWideRolePermission- See Also:
-
RbacAppSoap.checkSiteWideRolePermission(com.vasoftware.sf.common.access.rbac.Operation, java.lang.String)
-
checkSiteWideRolePermission
public void checkSiteWideRolePermission(com.vasoftware.sf.common.access.rbac.Operation operation, String loggedInUser) throws RemoteException Simulate a call to checkSiteWideRolePermission- Throws:
RemoteException
- See Also:
-
RbacAppSoap.checkSiteWideRolePermission(com.vasoftware.sf.common.access.rbac.Operation, java.lang.String)
-
prepareCheckUserActiveStatus
Prepare a simulated response to checkUserActiveStatus- See Also:
-
RbacAppSoap.checkUserActiveStatus(java.lang.String, java.lang.String)
-
prepareCheckUserActiveStatus
Prepare a simulated response to checkUserActiveStatus- See Also:
-
RbacAppSoap.checkUserActiveStatus(java.lang.String, java.lang.String)
-
checkUserActiveStatus
Simulate a call to checkUserActiveStatus- Throws:
RemoteException
- See Also:
-
RbacAppSoap.checkUserActiveStatus(java.lang.String, java.lang.String)
-
prepareDeleteRole
Prepare a simulated response to deleteRole -
prepareDeleteRole
Prepare a simulated response to deleteRole -
deleteRole
Simulate a call to deleteRole- Specified by:
deleteRole
in 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:
-
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:
addCluster
in 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:
-
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:
addIntegratedApplicationPermission
in 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:
-
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:
removeIntegratedApplicationPermission
in 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:
-
prepareAddRemoveIAPermission
public void prepareAddRemoveIAPermission(String sessionId, String roleId, String integratedAppName, String permission, boolean addPermission) Prepare a simulated response to addRemoveIAPermission- See Also:
-
RbacAppSoap.addRemoveIAPermission(java.lang.String, java.lang.String, java.lang.String, java.lang.String, boolean)
-
prepareAddRemoveIAPermission
public void prepareAddRemoveIAPermission(String sessionId, String roleId, String integratedAppName, String permission, boolean addPermission, Exception exception) Prepare a simulated response to addRemoveIAPermission- See Also:
-
RbacAppSoap.addRemoveIAPermission(java.lang.String, java.lang.String, java.lang.String, java.lang.String, boolean)
-
addRemoveIAPermission
public void addRemoveIAPermission(String sessionId, String roleId, String integratedAppName, String permission, boolean addPermission) throws RemoteException Simulate a call to addRemoveIAPermission- Throws:
RemoteException
- See Also:
-
RbacAppSoap.addRemoveIAPermission(java.lang.String, java.lang.String, java.lang.String, java.lang.String, boolean)
-
prepareGetLinkId
public void prepareGetLinkId(String projectId, String integratedAppName, String roleId, String loggedInUser, Object returnValue) Prepare a simulated response to getLinkId- See Also:
-
RbacAppSoap.getLinkId(java.lang.String, java.lang.String, java.lang.String, java.lang.String)
-
getLinkId
public String getLinkId(String projectId, String integratedAppName, String roleId, String loggedInUser) throws RemoteException Simulate a call to getLinkId- Throws:
RemoteException
- See Also:
-
RbacAppSoap.getLinkId(java.lang.String, java.lang.String, java.lang.String, java.lang.String)
-
prepareGetIAPermissionId
public void prepareGetIAPermissionId(String integratedAppName, String permission, String loggedInUser, Object returnValue) Prepare a simulated response to getIAPermissionId- See Also:
-
RbacAppSoap.getIAPermissionId(java.lang.String, java.lang.String, java.lang.String)
-
getIAPermissionId
public String getIAPermissionId(String integratedAppName, String permission, String loggedInUser) throws RemoteException Simulate a call to getIAPermissionId- Throws:
RemoteException
- See Also:
-
RbacAppSoap.getIAPermissionId(java.lang.String, java.lang.String, java.lang.String)
-
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:
removeCluster
in 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:
-
prepareConstructResource
public void prepareConstructResource(String operationCluster, String folderId, String loggedInUser, Object returnValue) Prepare a simulated response to constructResource- See Also:
-
RbacAppSoap.constructResource(java.lang.String, java.lang.String, java.lang.String)
-
constructResource
public com.vasoftware.sf.server.services.access.rbac.Resource constructResource(String operationCluster, String folderId, String loggedInUser) throws RemoteException Simulate a call to constructResource- Throws:
RemoteException
- See Also:
-
RbacAppSoap.constructResource(java.lang.String, java.lang.String, java.lang.String)
-
prepareListClusters
Prepare a simulated response to listClusters -
listClusters
Simulate a call to listClusters- Specified by:
listClusters
in 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:
-
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:
listClusterForDefaultAccessPermissions
in 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 invalidSystemFault
PermissionDeniedFault
RemoteException
- See Also:
-
prepareAddUser
Prepare a simulated response to addUser -
prepareAddUser
Prepare a simulated response to addUser -
addUser
Simulate a call to addUser- Specified by:
addUser
in 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:
-
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:
grantRolesToMembers
in 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:
-
prepareGetUserRolesMap
Prepare a simulated response to getUserRolesMap- See Also:
-
RbacAppSoap.getUserRolesMap(com.collabnet.ce.soap60.webservices.rbac.UserRolesSoapDO[])
-
getUserRolesMap
Simulate a call to getUserRolesMap- Throws:
RemoteException
- See Also:
-
RbacAppSoap.getUserRolesMap(com.collabnet.ce.soap60.webservices.rbac.UserRolesSoapDO[])
-
prepareRemoveUser
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
Simulate a call to removeUser- Specified by:
removeUser
in 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:
-
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:
revokeRolesFromMembers
in 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:
-
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:
addUserToProjectRole
in 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:
-
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:
removeUserFromProjectRole
in 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:
-
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:
addGroup
in 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:
-
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:
removeGroup
in 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:
-
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:
getRoleList
in 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:
-
prepareGetInheritedRoleList
Prepare a simulated response to getInheritedRoleList -
getInheritedRoleList
Simulate a call to getInheritedRoleList- Specified by:
getInheritedRoleList
in 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:
-
prepareGetRoleMemberList
Prepare a simulated response to getRoleMemberList -
getRoleMemberList
Simulate a call to getRoleMemberList- Specified by:
getRoleMemberList
in 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:
-
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:
getProjectRoleMemberList
in 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:
-
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:
getUserRoleList
in 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:
-
prepareGetUserSiteWideRoleList
Prepare a simulated response to getUserSiteWideRoleList -
getUserSiteWideRoleList
public RoleSoapList getUserSiteWideRoleList(String sessionId, String username) throws RemoteException Simulate a call to getUserSiteWideRoleList- Specified by:
getUserSiteWideRoleList
in 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:
-
prepareGetSiteWideRoleList
Prepare a simulated response to getSiteWideRoleList -
getSiteWideRoleList
Simulate a call to getSiteWideRoleList- Specified by:
getSiteWideRoleList
in 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:
-
prepareGetGlobalRoleList
Prepare a simulated response to getGlobalRoleList -
getGlobalRoleList
Simulate a call to getGlobalRoleList- Specified by:
getGlobalRoleList
in 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:
-
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:
getGlobalRolesForAssignment
in 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:
-
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:
getGroupRoleList
in 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:
-
prepareGetRoleGroupList
Prepare a simulated response to getRoleGroupList -
getRoleGroupList
Simulate a call to getRoleGroupList- Specified by:
getRoleGroupList
in 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:
-
prepareListGroupRolesByProject
Prepare a simulated response to listGroupRolesByProject -
listGroupRolesByProject
public RoleGroupSoapList listGroupRolesByProject(String sessionId, String projectId) throws RemoteException Simulate a call to listGroupRolesByProject- Specified by:
listGroupRolesByProject
in 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:
-
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:
getRoleGroupUsers
in 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:
-
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:
listRolePaths
in 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:
-
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:
setRolePaths
in 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:
-
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:
getProjectsForAction
in 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:
-
prepareRequestRole
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
Simulate a call to requestRole- Specified by:
requestRole
in 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:
-
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:
setAutomaticallyGrantOnRequest
in 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:
-
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:
getAutomaticallyGrantOnRequest
in 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:
-
prepareGetPendingRequestedRoles
Prepare a simulated response to getPendingRequestedRoles -
getPendingRequestedRoles
public RoleRequestSoapList getPendingRequestedRoles(String sessionId, String projectId) throws RemoteException Simulate a call to getPendingRequestedRoles- Specified by:
getPendingRequestedRoles
in 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:
-
prepareApproveRoleRequest
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:
approveRoleRequest
in 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:
-
prepareRejectRoleRequest
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:
rejectRoleRequest
in 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:
-
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:
listGroupRolesByProjectGroup
in 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:
-
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:
getProjectsByIntegratedAppPermission
in 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:
-
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:
getIntegratedAppPermissionsForProject
in 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.NoSuchObjectFault
RemoteException
- See Also:
-
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:
getIntegratedAppPermissions
in 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:
-