ServicePRO SDK Help

RequestServicesManager..::..GetPrivileges Method

Gets the request privilege.

Namespace:  ServicePRO.Sdk.Windows.Managers
Assembly:  ServicePRO.Sdk.Windows (in ServicePRO.Sdk.Windows.dll)

Syntax


public void GetPrivileges(
	string userSessionKey,
	int requestId,
	clsEnumeration..::..hsStatus requestStatus,
	clsEnumeration..::..hsWorkFlow requestWKF,
	int folderId,
	int currentUserId,
	int authorId,
	bool isPurchase,
	clsEnumeration..::..hsPRStatus purchaseStatus,
	bool moveThenClose,
	stcAssignmentItem workAssignment,
	stcAssignmentItem responsibilityAssignment,
	stcPrivilegeRequest requestPrivileges,
	Action<stcPrivilegeRequest, Exception> callbackAction
)
Public Sub GetPrivileges ( _
	userSessionKey As String, _
	requestId As Integer, _
	requestStatus As clsEnumeration..::..hsStatus, _
	requestWKF As clsEnumeration..::..hsWorkFlow, _
	folderId As Integer, _
	currentUserId As Integer, _
	authorId As Integer, _
	isPurchase As Boolean, _
	purchaseStatus As clsEnumeration..::..hsPRStatus, _
	moveThenClose As Boolean, _
	workAssignment As stcAssignmentItem, _
	responsibilityAssignment As stcAssignmentItem, _
	requestPrivileges As stcPrivilegeRequest, _
	callbackAction As Action(Of stcPrivilegeRequest, Exception) _
)

Parameters

userSessionKey
Type: String
User’s Session Key.
Key property of the User Session Object of type stcSession.
The User Session has to be established by making a call to InitializeSystemAndSession() method in CoreServicesManager class as a first step with using ServicePRO SDK.
requestId
Type: Int32
The request identifier.
requestStatus
Type: HelpSTAR.PCL.Common..::..clsEnumeration..::..hsStatus
The request status.
requestWKF
Type: HelpSTAR.PCL.Common..::..clsEnumeration..::..hsWorkFlow
The request work flow information.
folderId
Type: Int32
The folder identifier.
currentUserId
Type: Int32
The current user identifier.
authorId
Type: Int32
The author identifier.
isPurchase
Type: Boolean
set to true if this is purchase request.
purchaseStatus
Type: HelpSTAR.PCL.Common..::..clsEnumeration..::..hsPRStatus
The status of purchase request .
moveThenClose
Type: Boolean
set to true if moving to close folder.
workAssignment
Type: HelpSTAR.PCL.Common..::..stcAssignmentItem
The work assignment.
responsibilityAssignment
Type: HelpSTAR.PCL.Common..::..stcAssignmentItem
The responsibility assignment.
requestPrivileges
Type: HelpSTAR.PCL.Common..::..stcPrivilegeRequest
The request privileges.
callbackAction
Type: Action<(Of <(<'stcPrivilegeRequest, Exception>)>)>
The callback action.