Thor.API.Operations
Interface tcRequestOperationsIntf


public interface tcRequestOperationsIntf


Method Summary
 void addAdministrativeGroup(long plRequestKey, long plGroupKey, boolean pbWrite, boolean pbDelete)
          Adds an Administrative group to a request.
 void addRequestComment(long plRequestKey, java.lang.String psComment, java.lang.String psCommentType)
          Adds a user comment to a Request.
 long addRequestObject(long plRequestKey, long plObjectKey)
          Adds an Object to be provisioned to a Request.
 long addRequestObject(long plRequestKey, long plObjectKey, boolean pbServiceAccount)
          Adds an Object to be provisioned to a Request
 void addRequestOrganization(long plRequestKey, long plOrganizationKey)
          Adds to a Request an Organization to be provisioned for.
 void addRequestUser(long plRequestKey, long plUserKey)
          Adds to a Request a User to be provisioned for.
 void assignQueue(long plQueueKey, long plRequestKey)
          Assigns a queue to a request
 void assignRequestObjectToQueue(long plQueueKey, long plRequestKey, long plObjectInstanceKey)
          Assigns a Request Object to a particular queue
 void assignRequestObjectToQueueAdmin(long plUserKey, long plRequestKey, long plObjectInstanceKey)
          Assigns a Request Object to a particular Queue Admin
 void assignRequestToUser(long plRequestKey, long plUserKey)
          Assigns an Administrator to a request.
 void cancelRequest(long plRequestKey)
          Cancels a request made in the system.
 boolean canTriggerObject(long plUserKey, long plObjectInstanceKey)
          Checks to see if the object being provisioned for a request can be triggered.
 void closeRequest(long plRequestKey)
          Closes a request made in the system.
 void completeRequestCreation(long plRequestKey)
          Completes the creation of a request, signifying that all the objects and targets for the request have been specified, and it should try to invoke the appropriate standard approval process.
 java.lang.String createProfileModifyRequest(java.util.Map attrs)
          Creates a user profile modification request.
 long createRequest(java.util.Map phAttributeList)
          Creates a request.
 void deselectInstancesForOrganization(long plRequestKey, long[] palObjectInstanceForOrganizationKeys)
          Allows the requester to deselect the specific instances of objects provisioned to an organization that must be acted upon as part of the request.
 void deselectInstancesForUser(long plRequestKey, long[] palObjectInstanceForUserKeys)
          Allows the requester to deselect the specific instances of objects provisioned to a user that must be acted upon as part of the request.
 Thor.API.tcResultSet findObjects(java.lang.String actionType, java.lang.String[] targetKeys, java.lang.String type, java.util.Map searchCriteria)
          This method returns all Resource Objects based on the parameters.
 Thor.API.tcResultSet findRequests(long[] requests)
          Find information about given request collection.
 Thor.API.tcResultSet findRequests(java.util.Map phAttributeList)
          Returns a list of requests that match the provided attribute list.
 Thor.API.tcResultSet findRequests(java.util.Map phAttributeList, int startRow, int pageSize, java.lang.String[] order, boolean ascendingOrder)
          Returns a list of requests that match the provided attribute list.
 Thor.API.tcResultSet findRequestsAfterDate(java.util.Date pdStartDate)
          Returns a list of requests (in the form of a tcResultSet) that were made after the specified date
 Thor.API.tcResultSet findRequestsBeforeDate(java.util.Date pdEndDate)
          Returns a list of requests (in the form of a tcResultSet) that were made before the specified time
 Thor.API.tcResultSet findRequestsByDate(java.util.Date pdStartDate, java.util.Date pdEndDate)
          Returns a list of requests (in the form of a tcResultSet) that were made between the specified times
 Thor.API.tcResultSet findRequestsByStatusAfterDate(java.lang.String[] pasStatus, java.util.Date pdStartDate)
          Returns a list of requests (in the form of a tcResultSet) whose status was the specified value after the specified date
 Thor.API.tcResultSet findRequestsByStatusBeforeDate(java.lang.String[] pasStatus, java.util.Date pdEndDate)
          Returns a list of requests (in the form of a tcResultSet) whose status was the specified value before the specified time
 Thor.API.tcResultSet findRequestsByStatusDate(java.lang.String[] pasStatus, java.util.Date pdStartDate, java.util.Date pdEndDate)
          Returns a list of requests (in the form of a tcResultSet) whose status was the specified value between the specified times
 Thor.API.tcResultSet getApprovalTasksAssigned(java.util.Map attributeList)
          This method returns a list of all the pending approval tasks that are assigned to the specified user.
 Thor.API.tcResultSet getApprovalTasksAssignedToManagedUsers(long userKey, java.util.Map attributeList)
          This method behaves similar to getApprovalTasksAssignedToUser except for the fact that this method returns only the tasks assigned to the users managed by the user passed into this method, represented by userKey.
 Thor.API.tcResultSet getApprovalTasksAssignedToUser(long userKey, java.util.Map attributeList)
          This method returns a list of all the pending approval tasks that are assigned to the specified user.
 Thor.API.tcResultSet getInstanceResolutionListForOrg(long plRequestKey, long plOrganizationKey, long plObjectKey)
          Returns a list of all the request objects - target organizations in the request that require the requester to select an existing instance of that object for that organization.
 Thor.API.tcResultSet getInstanceResolutionListForUser(long plRequestKey, long plUserKey, long plObjectKey)
          Returns a list of all the request objects - target users in the request that require the requester to select an existing instance of that object for that user.
 Thor.API.tcResultSet getInstanceResolutionOptionsForOrg(long plRequestKey, long plOrganizationKey, long plObjectKey)
          Returns a list of all the object instances of the specified object currently provisioned to the specified organization in the request that are valid options for instance resolution.
 Thor.API.tcResultSet getInstanceResolutionOptionsForUser(long plRequestKey, long plUserKey, long plObjectKey)
          Returns a list of all the object instances of the specified object that are currently provisioned to the specified user in the request and are valid options for instance resolution.
 int getNumberOfApprovalTasksAssignedToUser(long userKey, java.lang.String[] statuses)
          This method returns the number of approval tasks are assigned to a given user, to any users that this user is a proxy of, and to any groups that this user member of based on the given statuses.
 long getNumberOfPendingRequests(long userKey)
          Returns the number of pending requests given a user key
 int getNumberOfRequestsCreatedByUser(long userKey, boolean pending)
          Returns the number of requests that have been created by a specific user.
 int getNumberOfRequestsCreatedForUser(long userKey, boolean pending)
          Returns the number of requests that have been created for a specific user.
 int getNumberOfRequestsForTargetUser(long userKey)
          Returns the number of Requests raised for a given user.
 Thor.API.tcResultSet getPendingApprovals(long requestID)
          Deprecated.  
 Thor.API.tcResultSet getProvisioningDetail(long requestID)
          This method returns all provisioning information for the reqeust.
 Thor.API.tcResultSet getQueuesForRequest(long plRequestKey)
          Returns a list of queues (in the form of a tcResultSet) for the specified request.
 Thor.API.tcResultSet getRegistrationUserDetails(long reqKey)
          This returns the request data associated with the given request.
 Thor.API.tcResultSet getRequestAdministrativeGroups(long plRequestKey)
          Retrieves all the administrative groups for a request.
 Thor.API.tcResultSet getRequestComments(long plRequestKey, java.lang.String psCommentType)
          Retrieves all the comments for a request.
 java.lang.String[][] getRequestHistory(java.lang.String reqID)
          Gets the history of the request since its submission.
 Thor.API.tcResultSet getRequestObjects(long plRequestKey)
          Retrieves all the objects being requested
 Thor.API.tcResultSet getRequestObjectStatusHistory(long plRequestKey, long plObjectInstanceKey)
          Retrieves the status history of the specified request object
 Thor.API.tcResultSet getRequestObjectTargetInstanceKeys(long plRequestKey, long plObjectInstanceKey)
          Retrieves the object instance keys for targets for the specified request and request object instance.
 java.lang.String[] getRequestResponses(long plRequestKey, long plUserKey)
          Returns the responses that the specified user can set for the specified request.
 java.lang.String[] getRequestRoles(long plRequestKey, long plUserKey)
          Returns the roles that the specified user plays in the specified request.
 Thor.API.tcResultSet getRequestsAssignedForApproval(long plUserKey, java.lang.String[] pasStatus, boolean pbUserPending)
          Searches for all the requests that have an approval process in which one of the approval tasks is assigned to the specified user.
 Thor.API.tcResultSet getRequestsAssignedForApproval(long plUserKey, java.lang.String[] pasStatus, boolean pbUserPending, java.util.Date pdEndDate)
          Searches for all requests that have an approval process in which one of the approval tasks is assigned to the specified user or to a group that the user is a member of.
 Thor.API.tcResultSet getRequestsAssignedForApproval(long userKey, java.lang.String[] status, boolean userPending, java.util.Date endDate, int startRow, int pageSize, java.lang.String[] order, boolean ascendingOrder)
          Returns a list of requests (in the form of a tcResultSet) that are assigned to the given user for approval.
 Thor.API.tcResultSet getRequestsForAuthorization(long plUserKey, java.lang.String[] pasStatus, boolean pbUserPending)
          Returns all the requests that the given user is authorized to approve.
 Thor.API.tcResultSet getRequestsForObject(java.lang.String psObjectName, java.lang.String[] pasStatus)
          Returns a list of requests (in the form of a tcResultSet) for the specified object.
 Thor.API.tcResultSet getRequestsForOrganizationTarget(long plOrganizationKey, java.lang.String[] pasStatus)
          Returns a list of requests (in the form of a tcResultSet) made for the specified organization.
 Thor.API.tcResultSet getRequestsForQueue(long plQueueKey)
          Returns a list of requests (in the form of a tcResultSet) for the specified queue.
 Thor.API.tcResultSet getRequestsForQueueByStatus(long plQueueKey, java.lang.String[] pasStatus)
          Returns a list of requests (in the form of a tcResultSet) which have the given status for the specified queue.
 Thor.API.tcResultSet getRequestsForUserTarget(long plUserKey, java.lang.String[] pasStatus, java.util.Date pdEndDate)
          Returns a list of requests (in the form of a tcResultSet) made for the specified user.
 Thor.API.tcResultSet getRequestsForUserTarget(long plUserKey, java.lang.String[] pasStatus, java.util.Map attributeList)
          Returns a list of requests (in the form of a tcResultSet) made for the specified user.
 java.lang.String[][] getRequestStages(long plRequestKey)
          Returns all the stages identified for the specified request, and what status each stage is in.
 Thor.API.tcResultSet getRequestStatusHistory(long plRequestKey)
          Retrieves the status history of the request.
 Thor.API.tcResultSet getRequestTargets(long plRequestKey)
          Retrieves all the targets (users or organizations) for whom the request is being made.
 java.lang.String[] getRequestTypes()
          Returns all the request types defined in the Xellerate system.
 Thor.API.tcResultSet getSelectedInstancesForOrg(long plRequestKey, long plOrganizationKey, long plObjectKey)
          Returns a list of all the object instances that are currently provisioned to the specified organization in the request and match the specified object in the request that have been selected for the request action.
 Thor.API.tcResultSet getSelectedInstancesForUser(long plRequestKey, long plUserKey, long plObjectKey)
          Returns a list of all the object instances that are currently provisioned to the specified user in the request and match the specified object in the request that have been selected for the request action.
 Thor.API.tcResultSet getSelectedResolutionInstances(java.lang.String requestKey, java.lang.String type)
          Returns a list of all the object instances that are currently provisioned to the users/organizations in the request and match the specified object in the request that have been selected for the request action.
 void initiateRequestApproval(long reqKey)
          Initiates the request approval(Standard Approval) process
 boolean isRequestApprovable(long plRequestKey, long plUserKey)
          Returns whether the specified user has the authority to approve the specified request.
 boolean isRequestCancellable(long plRequestKey, long plUserKey)
          Returns whether the specified user has the authority to cancel the specified request.
 boolean isRequestUpdatable(long plRequestKey, long plUserKey)
          Returns whether the specified user has the authority to update the specified request.
 boolean isResourceApprovable(long plObjectInstanceKey, long plUserKey)
          Checks wheather the resource can be approved by this user
 boolean isUserSelfRegistrationChallengeValuesProvided(long psRequestKey)
          Checks if user self registration challenge question and answers have been provided
 void reassignApprovalTasksToGroup(long[] taskInstanceKeys, long groupKey)
          This method re-assigns the selected approval tasks to the specified group.
 void reassignApprovalTasksToUser(long[] taskInstanceKeys, long userKey)
          This method re-assigns the selected approval tasks to the specified user.
 void removeAdministrativeGroup(long plRequestKey, long plGroupKey)
          Remove an Administrative group from a request.
 void removeQueue(long plQueueKey, long plRequestKey)
          Removes a queue from a request
 void removeRequestObject(long plRequestKey, long plObjectKey)
          Deletes an Object to be provisioned from a Request
 void removeRequestObject(java.lang.String requestKey, java.lang.String objectInstanceKey)
          Deletes an Object to be provisioned from a Request
 void removeRequestObjectFromQueue(long plRequestKey, long plObjectInstanceKey)
          Removes a Request Object from its assigned queue
 void removeRequestOrganization(long plRequestKey, long plOrganizationKey)
          Removes from a Request an Organization to be provisioned for.
 void removeRequestUser(long plRequestKey, long plUserKey)
          Deletes from a Request a User to be provisioned for.
 void requestMoreInfoFromGroup(long plRequestKey, long plGroupKey)
          Initiates a request more info in the system for a specified request.
 void requestMoreInfoFromGroupWithComment(long plRequestKey, long plGroupKey, java.lang.String psComment)
          Initiates a request more info in the system for a specified request.
 void requestMoreInfoFromUser(long plRequestKey, long plUserKey)
          Initiates a request more info in the system for a specified request.
 void requestMoreInfoFromUserForResource(long plRequestKey, long plUserKey, long plObjectKey)
          Initiates a request more info in the system for a specified resource object of a request.
 void requestMoreInfoFromUserWithComment(long plRequestKey, long plUserKey, java.lang.String psComment)
          Initiates a request more info in the system for a specified request.
 void requestMoreInfoFromUserWithCommentForResource(long plRequestKey, long plUserKey, long plObjectKey, java.lang.String psComment)
          Initiates a request more info in the system for a specified resource object of a request.
 boolean requiresInstanceResolution(long plRequestKey)
          Indicates whether the specified request requires the requester to resolve object instance issues related to the objects in this request.
 void selectInstancesForOrganization(long plRequestKey, long[] palObjectInstanceForOrganizationKeys)
          Allows the requester to select the specific instances of objects provisioned to an organization that must be acted upon as part of the request.
 void selectInstancesForUser(long plRequestKey, long[] palObjectInstanceForUserKeys)
          Allows the requester to select the specific instances of objects provisioned to a user that must be acted upon as part of the request.
 void setRequestObjectAsServiceAccountFlag(long plRequestKey, long plObjectInstanceKey, boolean pbServiceAccount)
          Sets the flag on the requested object that indicates whether it is to be provisioned as a service account or not.
 void setRequestResponse(long plRequestKey, long plUserKey, java.lang.String psResponse)
          Sets the specified response from the specified user on all the tasks in the specified request that the user has access to.
 void setResourceResponse(long plUserKey, long plObjectInstanceKey, java.lang.String psResponse)
          Sets the specified response from the specified user on all the tasks in the specified resource object instance that the user has access to.
 void triggerRequestObject(long plRequestKey, long plObjectInstanceKey)
          Trigger execution of an Object being provisioned for a Request
 void updateAdministrativeGroup(long plRequestKey, long plGroupKey, boolean pbWrite, boolean pbDelete)
          Update the access an Administrative group has to a request.
 void updateRegistrationUserDetails(long pnRequestKey, com.thortech.xl.orb.api.tcMapping[] poAttributes)
          Updates the request's data with the values passed.
 void updateRegistrationUserDetails(long pnRequestKey, java.util.Map poAttributes)
          Updates the request's data with the values passed.
 void updateRequest(long plRequestKey, java.util.Map phAttributeList)
          Updates the specified attributes of a request.
 

Method Detail

findRequests

public Thor.API.tcResultSet findRequests(java.util.Map phAttributeList,
                                         int startRow,
                                         int pageSize,
                                         java.lang.String[] order,
                                         boolean ascendingOrder)
                                  throws Thor.API.Exceptions.tcAPIException,
                                         tcAPIException
Returns a list of requests that match the provided attribute list.

Parameters:
phAttributeList - A Map of attribute-value pairs with each entry containing criteria to find requests. The Map key should contain a String representation of the metadata codes and/or user-defined columns. The metadata codes are listed below in the contents of the returned tcResultSet. The Map value can contain a String or an array of String's representing the criteria to find the desired requests. If an array of String's is used, there will be an OR relationship between each element of the array. Note that the Map values can include wild cards(%).
startRow - the start row to retrieve the data
pageSize - the end row of the data to retrieve
order - an array of string to sort the result data
ascendingOrder - if the order should be in ascending or descending order
Returns:
A tcResultSet that contains any user-defined columns as well as the following Request-related information:
  • Objects.Object Status.Key
  • Objects.Object Status.Status
  • Process Instance.Key
  • RequestAdmin.First Name
  • RequestAdmin.Key
  • RequestAdmin.Last Name
  • RequestAdmin.User ID
  • Requester.First Name
  • Requester.Last Name
  • Requester.User ID
  • Requester.Manager Key
  • Requester.Manager First Name
  • Requester.Manager Last Name
  • Requester.Manager User ID
  • Requests.Created By
  • Requests.Creation Date
  • Requests.Key
  • Requests.Note
  • Requests.Object Request Type
  • Requests.Request ID
  • Requests.Request Priority
  • Requests.Row Version
  • Requests.Target Type
  • Requests.Type
  • Requests.Update Date
  • Requests.Updated By
  • Requests.Updated By First Name
  • Requests.Updated By Last Name
  • Requests.Updated By Login
Throws:
tcAPIException

findRequests

public Thor.API.tcResultSet findRequests(java.util.Map phAttributeList)
                                  throws Thor.API.Exceptions.tcAPIException,
                                         tcAPIException
Returns a list of requests that match the provided attribute list.

Parameters:
phAttributeList - A Map of attribute-value pairs with each entry containing criteria to find requests. The Map key should contain a String representation of the metadata codes and/or user-defined columns. The metadata codes are listed below in the contents of the returned tcResultSet. The Map value can contain a String or an array of String's representing the criteria to find the desired requests. If an array of String's is used, there will be an OR relationship between each element of the array. Note that the Map values can include wild cards(%).
Returns:
A tcResultSet that contains any user-defined columns as well as the following Request-related information:
  • Objects.Object Status.Key
  • Objects.Object Status.Status
  • Process Instance.Key
  • RequestAdmin.First Name
  • RequestAdmin.Key
  • RequestAdmin.Last Name
  • RequestAdmin.User ID
  • Requester.First Name
  • Requester.Last Name
  • Requester.User ID
  • Requester.Manager Key
  • Requester.Manager First Name
  • Requester.Manager Last Name
  • Requester.Manager User ID
  • Requests.Created By
  • Requests.Creation Date
  • Requests.Key
  • Requests.Note
  • Requests.Object Request Type
  • Requests.Request ID
  • Requests.Request Priority
  • Requests.Row Version
  • Requests.Target Type
  • Requests.Type
  • Requests.Update Date
  • Requests.Updated By
  • Requests.Updated By First Name
  • Requests.Updated By Last Name
  • Requests.Updated By Login
Throws:
tcAPIException

findRequests

public Thor.API.tcResultSet findRequests(long[] requests)
                                  throws Thor.API.Exceptions.tcAPIException,
                                         tcAPIException
Find information about given request collection. Resultset returned by this method will have the same columns outlined in the other findRequests method.

IMPORTANT NOTE: This API uses the SQL IN cluse to look for all requests and can be slow if there are too many requests in the array.

Returns:
resultset containing information about given requests
Throws:
tcAPIException
See Also:
for more details on the result set returned.

findRequestsByDate

public Thor.API.tcResultSet findRequestsByDate(java.util.Date pdStartDate,
                                               java.util.Date pdEndDate)
                                        throws Thor.API.Exceptions.tcAPIException,
                                               tcAPIException
Returns a list of requests (in the form of a tcResultSet) that were made between the specified times

Parameters:
pdStartDate - The long representation of the date and time after which the request should have been made.
pdEndDate - The long representation of the date and time before which the request should have been made.
Returns:
A tcResultSet in which each row holds information about the request.
Throws:
tcAPIException

findRequestsAfterDate

public Thor.API.tcResultSet findRequestsAfterDate(java.util.Date pdStartDate)
                                           throws Thor.API.Exceptions.tcAPIException,
                                                  tcAPIException
Returns a list of requests (in the form of a tcResultSet) that were made after the specified date

Parameters:
pdStartDate - The long representation of the date and time after which the request should have been made.
Returns:
A tcResultSet in which each row holds information about the request.
Throws:
tcAPIException

findRequestsBeforeDate

public Thor.API.tcResultSet findRequestsBeforeDate(java.util.Date pdEndDate)
                                            throws Thor.API.Exceptions.tcAPIException,
                                                   tcAPIException
Returns a list of requests (in the form of a tcResultSet) that were made before the specified time

Parameters:
pdEndDate - The long representation of the date and time before which the request should have been made.
Returns:
A tcResultSet in which each row holds information about the request.
Throws:
tcAPIException

findRequestsByStatusDate

public Thor.API.tcResultSet findRequestsByStatusDate(java.lang.String[] pasStatus,
                                                     java.util.Date pdStartDate,
                                                     java.util.Date pdEndDate)
                                              throws Thor.API.Exceptions.tcAPIException,
                                                     tcAPIException
Returns a list of requests (in the form of a tcResultSet) whose status was the specified value between the specified times

Parameters:
pasStatus - An array of statuses to filter the requests by. If multiple statuses are specified, they are evaluated using the OR operation.
pdStartDate - The long representation of the date and time after which the request should have had this status
pdEndDate - The long representation of the date and time before which the request should have has this status.
Returns:
A tcResultSet that contains any user-defined columns as well as the following Request-related information:
  • Objects.Object Status.Key
  • Objects.Object Status.Status
  • Process Instance.Key
  • Request History.Created By
  • Request History.Creation Date
  • Request History.Key
  • RequestAdmin.First Name
  • RequestAdmin.Key
  • RequestAdmin.Last Name
  • RequestAdmin.User ID
  • Requester.First Name
  • Requester.Last Name
  • Requester.User ID
  • Requests.Created By
  • Requests.Creation Date
  • Requests.Key
  • Requests.Note
  • Requests.Object Request Type
  • Requests.Request ID
  • Requests.Request Priority
  • Requests.Row Version
  • Requests.Target Type
  • Requests.Type
  • Requests.Update Date
  • Requests.Updated By
Throws:
tcAPIException

findRequestsByStatusAfterDate

public Thor.API.tcResultSet findRequestsByStatusAfterDate(java.lang.String[] pasStatus,
                                                          java.util.Date pdStartDate)
                                                   throws Thor.API.Exceptions.tcAPIException,
                                                          tcAPIException
Returns a list of requests (in the form of a tcResultSet) whose status was the specified value after the specified date

Parameters:
pasStatus - The status to filter on
pdStartDate - The long representation of the date and time after which the request should have had the specified status.
Returns:
A tcResultSet in which each row holds information about the request.
Throws:
tcAPIException

findRequestsByStatusBeforeDate

public Thor.API.tcResultSet findRequestsByStatusBeforeDate(java.lang.String[] pasStatus,
                                                           java.util.Date pdEndDate)
                                                    throws Thor.API.Exceptions.tcAPIException,
                                                           tcAPIException
Returns a list of requests (in the form of a tcResultSet) whose status was the specified value before the specified time

Parameters:
pasStatus - The status to filter on
pdEndDate - The long representation of the date and time before which the request should have had the specified status.
Returns:
A tcResultSet in which each row holds information about the request.
Throws:
tcAPIException

getRequestsForObject

public Thor.API.tcResultSet getRequestsForObject(java.lang.String psObjectName,
                                                 java.lang.String[] pasStatus)
                                          throws Thor.API.Exceptions.tcAPIException,
                                                 Thor.API.Exceptions.tcObjectNotFoundException,
                                                 tcAPIException
Returns a list of requests (in the form of a tcResultSet) for the specified object. It also can narrow down the requests by the status.

Parameters:
psObjectName - The name of the object to search requests for.
pasStatus - The request status to filter by. If no value is specified then it looks for all requests irrespective of status.
Returns:
A tcResultSet in which each row holds information about the request
Throws:
tcAPIException
tcObjectNotFoundException

getRequestsForUserTarget

public Thor.API.tcResultSet getRequestsForUserTarget(long plUserKey,
                                                     java.lang.String[] pasStatus,
                                                     java.util.Date pdEndDate)
                                              throws Thor.API.Exceptions.tcAPIException,
                                                     Thor.API.Exceptions.tcUserNotFoundException,
                                                     tcAPIException
Returns a list of requests (in the form of a tcResultSet) made for the specified user. It also can narrow down the requests by the status.

Parameters:
plUserKey - The User Key of the user for whom requests have been made.
pasStatus - The request status to filter by. If no value is specified then it looks for all requests irrespective of status.
pdEndDate - The date and time before which the request should have been made.
Returns:
A tcResultSet in which each row holds information about the request
Throws:
tcAPIException
tcUserNotFoundException

getRequestsForUserTarget

public Thor.API.tcResultSet getRequestsForUserTarget(long plUserKey,
                                                     java.lang.String[] pasStatus,
                                                     java.util.Map attributeList)
                                              throws Thor.API.Exceptions.tcAPIException,
                                                     Thor.API.Exceptions.tcUserNotFoundException,
                                                     tcAPIException
Returns a list of requests (in the form of a tcResultSet) made for the specified user. It also can narrow down the requests by the status.

Parameters:
plUserKey - The User Key of the user for whom requests have been made.
pasStatus - The request status to filter by. If no value is specified then it looks for all requests irrespective of status.
attributeList - Search Criteria
Returns:
A tcResultSet in which each row holds information about the request
Throws:
tcAPIException
tcUserNotFoundException

getNumberOfRequestsForTargetUser

public int getNumberOfRequestsForTargetUser(long userKey)
                                     throws Thor.API.Exceptions.tcAPIException,
                                            Thor.API.Exceptions.tcUserNotFoundException,
                                            tcAPIException
Returns the number of Requests raised for a given user.

Parameters:
userKey - The User Key of the user for whom requests have been raise for.
Throws:
tcAPIException - raised if an exception is encountered
tcUserNotFoundException - raised if the user key passed is not valid
Since:
8.5

getRequestsForOrganizationTarget

public Thor.API.tcResultSet getRequestsForOrganizationTarget(long plOrganizationKey,
                                                             java.lang.String[] pasStatus)
                                                      throws Thor.API.Exceptions.tcAPIException,
                                                             Thor.API.Exceptions.tcOrganizationNotFoundException,
                                                             tcAPIException
Returns a list of requests (in the form of a tcResultSet) made for the specified organization. It also can narrow down the requests by the status.

Parameters:
plOrganizationKey - The Organization Key of the organization for whom requests have been made.
pasStatus - The request status to filter by. If no value is specified then it looks for all requests irrespective of status.
Returns:
A tcResultSet in which each row holds information about the request
Throws:
tcAPIException
tcOrganizationNotFoundException

getRequestsAssignedForApproval

public Thor.API.tcResultSet getRequestsAssignedForApproval(long userKey,
                                                           java.lang.String[] status,
                                                           boolean userPending,
                                                           java.util.Date endDate,
                                                           int startRow,
                                                           int pageSize,
                                                           java.lang.String[] order,
                                                           boolean ascendingOrder)
                                                    throws Thor.API.Exceptions.tcAPIException,
                                                           Thor.API.Exceptions.tcUserNotFoundException,
                                                           tcAPIException
Returns a list of requests (in the form of a tcResultSet) that are assigned to the given user for approval.

Parameters:
userKey - The User Key of the user who has to approve the request
status - The request status to filter by. If no value is specified then it looks for all requests irrespective of status.
userPending - Boolean indicating whether to only display those requests that are pending approval by the specified user. True indicates only show those where the approval task assigned to the specified user is pending. False means show all without filtering
endDate - The date and time before which the request should have been made.
startRow - The starting row of the requests that match the given criteria
pageSize - is the number of records to return starting from startRow
order - is a String array of order columns to sort the matching records
ascendingOrder - is a boolean value referring if the order should be ascending (true) or descending (false).
Returns:
A tcResultSet in which each row holds information about the request
Throws:
tcAPIException - general exception if there is a problem processing the require data
tcUserNotFoundException - if the userKey given is not found in the database

getRequestsAssignedForApproval

public Thor.API.tcResultSet getRequestsAssignedForApproval(long plUserKey,
                                                           java.lang.String[] pasStatus,
                                                           boolean pbUserPending,
                                                           java.util.Date pdEndDate)
                                                    throws Thor.API.Exceptions.tcAPIException,
                                                           Thor.API.Exceptions.tcUserNotFoundException,
                                                           tcAPIException
Searches for all requests that have an approval process in which one of the approval tasks is assigned to the specified user or to a group that the user is a member of. Can be filtered based on the request status and whether user's approval is pending.

Parameters:
plUserKey - The User Key of the user who has to approve the request
pasStatus - The request status to filter by. If no value is specified then it looks for all requests irrespective of status.
pbUserPending - Boolean indicating whether to only display those requests that are pending approval by the specified user. True indicates only show those where the approval task assigned to the specified user is pending. False means show all without filtering
pdEndDate - The date and time before which the request should have been made.
Returns:
A tcResultSet in which each row holds information about the request
Throws:
tcAPIException
tcUserNotFoundException

getRequestsAssignedForApproval

public Thor.API.tcResultSet getRequestsAssignedForApproval(long plUserKey,
                                                           java.lang.String[] pasStatus,
                                                           boolean pbUserPending)
                                                    throws Thor.API.Exceptions.tcAPIException,
                                                           Thor.API.Exceptions.tcUserNotFoundException,
                                                           tcAPIException
Searches for all the requests that have an approval process in which one of the approval tasks is assigned to the specified user. Can be filtered based on the Request Status, and whether users approval is pending

Parameters:
plUserKey - The User Key of the user who has to approve the request
pasStatus - The request status to filter by. If no value is specified then it looks for all requests irrespective of status.
pbUserPending - Boolean indicating whether to only display those requests that are pending approval by the specified user. True indicates only show those where the approval task assigned to the specified user is pending. False means show all without filtering
Returns:
A tcResultSet in which each row holds information about the request
Throws:
tcAPIException
tcUserNotFoundException

getRequestTargets

public Thor.API.tcResultSet getRequestTargets(long plRequestKey)
                                       throws Thor.API.Exceptions.tcAPIException,
                                              Thor.API.Exceptions.tcRequestNotFoundException,
                                              tcAPIException
Retrieves all the targets (users or organizations) for whom the request is being made.

Parameters:
plRequestKey - The Request Key of the request to get the targets for
Returns:
A tcResultSet in which each row holds information about the target
Throws:
tcAPIException
tcRequestNotFoundException

getRequestObjects

public Thor.API.tcResultSet getRequestObjects(long plRequestKey)
                                       throws Thor.API.Exceptions.tcAPIException,
                                              Thor.API.Exceptions.tcRequestNotFoundException,
                                              tcAPIException
Retrieves all the objects being requested

Parameters:
plRequestKey - The Request Key of the request to get the objects for
Returns:
A tcResultSet in which each row holds information about the object
Throws:
tcAPIException
tcRequestNotFoundException

isResourceApprovable

public boolean isResourceApprovable(long plObjectInstanceKey,
                                    long plUserKey)
                             throws Thor.API.Exceptions.tcAPIException,
                                    tcAPIException
Checks wheather the resource can be approved by this user

Parameters:
plObjectInstanceKey - Resource instance
plUserKey - User Key
Returns:
Returns true if the user has the rights to approve the resource
Throws:
tcAPIException

getRequestComments

public Thor.API.tcResultSet getRequestComments(long plRequestKey,
                                               java.lang.String psCommentType)
                                        throws Thor.API.Exceptions.tcAPIException,
                                               Thor.API.Exceptions.tcRequestNotFoundException,
                                               tcAPIException
Retrieves all the comments for a request. Can also filter based on comment type.

Parameters:
plRequestKey - The key of the request to get comments for
psCommentType - The type of comment to retrieve. Its value is based on LKU where code = "Request Comments.Type". Leave null or blank if all comments are to be retrieved.
Returns:
A tcResultSet that contains the following information about the specified request's comments:
  • Requests.Comments.Comments
  • Requests.Comments.Created By
  • Requests.Comments.Creation Date
  • Requests.Comments.Key
  • Requests.Comments.Note
  • Requests.Comments.Row Version
  • Requests.Comments.Type
  • Requests.Comments.Update Date
  • Requests.Comments.Updated By
  • Requests.Comments.Created By First Name
  • Requests.Comments.Created By Last Name
  • Requests.Comments.Created By Login
Throws:
tcAPIException
tcRequestNotFoundException

getRequestAdministrativeGroups

public Thor.API.tcResultSet getRequestAdministrativeGroups(long plRequestKey)
                                                    throws Thor.API.Exceptions.tcAPIException,
                                                           Thor.API.Exceptions.tcRequestNotFoundException,
                                                           tcAPIException
Retrieves all the administrative groups for a request.

Parameters:
plRequestKey - The Request Key of the request to get the administrative groups for
Returns:
A tcResultSet in which each row holds information about an administrative group and its privileges.
Throws:
tcAPIException
tcRequestNotFoundException

getRequestStatusHistory

public Thor.API.tcResultSet getRequestStatusHistory(long plRequestKey)
                                             throws Thor.API.Exceptions.tcAPIException,
                                                    Thor.API.Exceptions.tcRequestNotFoundException,
                                                    tcAPIException
Retrieves the status history of the request.

Parameters:
plRequestKey - The key of the request to get the status history for
Returns:
A tcResultSet that contains the following information about the request status history:
  • Request History.Creation Date
  • Request History.Key
  • Request History.Status
  • Users.First Name
  • Users.Key
  • Users.Last Name
  • Users.User ID
Note that the user information above pertains to the user who created the request status.
Throws:
tcAPIException
tcRequestNotFoundException

getRequestObjectStatusHistory

public Thor.API.tcResultSet getRequestObjectStatusHistory(long plRequestKey,
                                                          long plObjectInstanceKey)
                                                   throws Thor.API.Exceptions.tcAPIException,
                                                          Thor.API.Exceptions.tcRequestNotFoundException,
                                                          Thor.API.Exceptions.tcRequestObjectInvalidException,
                                                          tcAPIException
Retrieves the status history of the specified request object

Parameters:
plRequestKey - The key of the request to get the status history for
plObjectInstanceKey - The key of the object instance
Returns:
A tcResultSet that contains the following information about the request status history:
  • Request History.Creation Date
  • Request History.Key
  • Request History.Status
  • Users.First Name
  • Users.Key
  • Users.Last Name
  • Users.User ID
Note that the user information above pertains to the user who created the request status.
Throws:
tcAPIException
tcRequestNotFoundException
tcRequestObjectInvalidException

getRequestObjectTargetInstanceKeys

public Thor.API.tcResultSet getRequestObjectTargetInstanceKeys(long plRequestKey,
                                                               long plObjectInstanceKey)
                                                        throws Thor.API.Exceptions.tcAPIException,
                                                               Thor.API.Exceptions.tcRequestNotFoundException,
                                                               Thor.API.Exceptions.tcRequestObjectInvalidException,
                                                               tcAPIException
Retrieves the object instance keys for targets for the specified request and request object instance. the targets could be the users or the organizations, depending on whether the request was for user targets or organization targets.

Parameters:
plRequestKey - The Request Key of the request to get the objects for
plObjectInstanceKey - The key of the object instance
Returns:
A tcResultSet in which each row holds information about the object instance for target (user/organization) keys, and the target information.
If the request target is "User", the resultset returned contains "Users-Object Instance For User.Key", "Users.Key", "Users.User ID", "Users.First Name", "Users.Last Name"
If the request target is "Organization", the resultset returned contains "Organization-Object Instance-Process Instance.Key", "Organizations.Key", "Organizations.Organization Name"
Throws:
tcAPIException
tcRequestNotFoundException
tcRequestObjectInvalidException

createProfileModifyRequest

public java.lang.String createProfileModifyRequest(java.util.Map attrs)
                                            throws Thor.API.Exceptions.tcRequiredDataMissingException,
                                                   Thor.API.Exceptions.tcAPIException,
                                                   Thor.API.Exceptions.tcOrganizationNotFoundException,
                                                   Thor.API.Exceptions.tcInvalidManagerException,
                                                   Thor.API.Exceptions.tcDuplicateUserException,
                                                   com.thortech.xl.orb.dataaccess.tcDataAccessException,
                                                   tcAPIException
Creates a user profile modification request.

Parameters:
attrs - AMap of name-value pairs, representing the user profile information being modified.
Returns:
The Request Key of the newly created request.
Throws:
tcRequiredDataMissingException
tcAPIException
tcOrganizationNotFoundException
tcInvalidManagerException
tcDuplicateUserException
tcDataAccessException

createRequest

public long createRequest(java.util.Map phAttributeList)
                   throws Thor.API.Exceptions.tcAttributeMissingException,
                          Thor.API.Exceptions.tcInvalidAttributeException,
                          Thor.API.Exceptions.tcRequestInvalidException,
                          Thor.API.Exceptions.tcAPIException,
                          tcAPIException
Creates a request.

Parameters:
phAttributeList - A map of name-value pairs, each entry representing an attribute to be set for the request.
Returns:
The Request Key of the newly created request.
Throws:
tcAttributeMissingException
tcInvalidAttributeException
tcRequestInvalidException
tcAPIException

completeRequestCreation

public void completeRequestCreation(long plRequestKey)
                             throws Thor.API.Exceptions.tcAPIException,
                                    Thor.API.Exceptions.tcRequestInvalidException,
                                    tcAPIException
Completes the creation of a request, signifying that all the objects and targets for the request have been specified, and it should try to invoke the appropriate standard approval process.

Parameters:
plRequestKey - The key for the request to update.
Throws:
tcAPIException
tcRequestInvalidException

updateRequest

public void updateRequest(long plRequestKey,
                          java.util.Map phAttributeList)
                   throws Thor.API.Exceptions.tcAPIException,
                          Thor.API.Exceptions.tcRequestInvalidException,
                          Thor.API.Exceptions.tcInvalidUpdateException,
                          tcAPIException
Updates the specified attributes of a request. This deals with data about the request such as the priority, etc. Not all attributes of a request can be updated.

Parameters:
plRequestKey - The key for the request to update.
phAttributeList - The list of attribute-value pairs being updated
Throws:
tcAPIException
tcRequestInvalidException
tcInvalidUpdateException

cancelRequest

public void cancelRequest(long plRequestKey)
                   throws Thor.API.Exceptions.tcAPIException,
                          Thor.API.Exceptions.tcRequestInvalidException,
                          tcAPIException
Cancels a request made in the system.

Parameters:
plRequestKey - The key for the request to cancel.
Throws:
tcAPIException
tcRequestInvalidException

closeRequest

public void closeRequest(long plRequestKey)
                  throws Thor.API.Exceptions.tcAPIException,
                         Thor.API.Exceptions.tcRequestInvalidException,
                         tcAPIException
Closes a request made in the system.

Parameters:
plRequestKey - The key for the request to close.
Throws:
tcAPIException
tcRequestInvalidException

addRequestObject

public long addRequestObject(long plRequestKey,
                             long plObjectKey)
                      throws Thor.API.Exceptions.tcAPIException,
                             Thor.API.Exceptions.tcRequestNotFoundException,
                             Thor.API.Exceptions.tcRequestObjectInvalidException,
                             tcAPIException
Adds an Object to be provisioned to a Request. Assumes it is not a service account

Parameters:
plRequestKey - The key for the request to add the object to.
plObjectKey - The key of the Object to add
Returns:
The Object Instance key of added resource object.
Throws:
tcAPIException
tcRequestNotFoundException
tcRequestObjectInvalidException

addRequestObject

public long addRequestObject(long plRequestKey,
                             long plObjectKey,
                             boolean pbServiceAccount)
                      throws Thor.API.Exceptions.tcAPIException,
                             Thor.API.Exceptions.tcRequestNotFoundException,
                             Thor.API.Exceptions.tcRequestObjectInvalidException,
                             tcAPIException
Adds an Object to be provisioned to a Request

Parameters:
plRequestKey - The key for the request to add the object to.
plObjectKey - The key of the Object to add
pbServiceAccount - Whether the resource should be provisioned as a service account or not (True for yes)
Returns:
The Object Instance key of added resource object.
Throws:
tcAPIException
tcRequestNotFoundException
tcRequestObjectInvalidException

setRequestObjectAsServiceAccountFlag

public void setRequestObjectAsServiceAccountFlag(long plRequestKey,
                                                 long plObjectInstanceKey,
                                                 boolean pbServiceAccount)
                                          throws Thor.API.Exceptions.tcAPIException,
                                                 Thor.API.Exceptions.tcRequestNotFoundException,
                                                 Thor.API.Exceptions.tcRequestObjectInvalidException,
                                                 tcAPIException
Sets the flag on the requested object that indicates whether it is to be provisioned as a service account or not.

Parameters:
plRequestKey - The key for the request to update the object for.
plObjectInstanceKey - The key of the Object Instance within the request (as retrieved from the @see getRequestObjects method)
pbServiceAccount - Whether the resource should be provisioned as a service account or not (True for yes)
Throws:
tcAPIException
tcRequestNotFoundException
tcRequestObjectInvalidException

removeRequestObject

public void removeRequestObject(long plRequestKey,
                                long plObjectKey)
                         throws Thor.API.Exceptions.tcAPIException,
                                Thor.API.Exceptions.tcRequestNotFoundException,
                                Thor.API.Exceptions.tcRequestObjectInvalidException,
                                tcAPIException
Deletes an Object to be provisioned from a Request

Parameters:
plRequestKey - The key for the request to remove the object from.
plObjectKey - The key of the Object to remove
Throws:
tcAPIException
tcRequestNotFoundException
tcRequestObjectInvalidException

canTriggerObject

public boolean canTriggerObject(long plUserKey,
                                long plObjectInstanceKey)
                         throws Thor.API.Exceptions.tcAPIException,
                                Thor.API.Exceptions.tcUserNotFoundException,
                                Thor.API.Exceptions.tcRequestObjectInvalidException,
                                Thor.API.Exceptions.tcObjectNotApprovedException,
                                tcAPIException
Checks to see if the object being provisioned for a request can be triggered. The user must have write permissions to a queue that is assigned to the object and the object instance must have the status, "Approved, Ready To Provision."

Parameters:
plUserKey - The key of the user
plObjectInstanceKey - The key of the object instance
Returns:
True if the object can be triggered. False if it cannot.
Throws:
tcAPIException
tcUserNotFoundException
tcRequestObjectInvalidException
tcObjectNotApprovedException

triggerRequestObject

public void triggerRequestObject(long plRequestKey,
                                 long plObjectInstanceKey)
                          throws Thor.API.Exceptions.tcAPIException,
                                 Thor.API.Exceptions.tcRequestNotFoundException,
                                 Thor.API.Exceptions.tcRequestObjectInvalidException,
                                 Thor.API.Exceptions.tcObjectNotApprovedException,
                                 tcAPIException
Trigger execution of an Object being provisioned for a Request

Parameters:
plRequestKey - The key for the request to trigger the object for
plObjectInstanceKey - The key of the object instance
Throws:
tcAPIException
tcRequestNotFoundException
tcRequestObjectInvalidException
tcObjectNotApprovedException

addRequestUser

public void addRequestUser(long plRequestKey,
                           long plUserKey)
                    throws Thor.API.Exceptions.tcAPIException,
                           Thor.API.Exceptions.tcRequestNotFoundException,
                           Thor.API.Exceptions.tcRequestUserInvalidException,
                           tcAPIException
Adds to a Request a User to be provisioned for.

Parameters:
plRequestKey - The key for the Request.
plUserKey - The key of the User to add as a target for the request
Throws:
tcAPIException
tcRequestNotFoundException
tcRequestUserInvalidException

removeRequestUser

public void removeRequestUser(long plRequestKey,
                              long plUserKey)
                       throws Thor.API.Exceptions.tcAPIException,
                              Thor.API.Exceptions.tcRequestNotFoundException,
                              Thor.API.Exceptions.tcRequestUserInvalidException,
                              tcAPIException
Deletes from a Request a User to be provisioned for.

Parameters:
plRequestKey - The key for the Request.
plUserKey - The key of the User to remove as a target for the request
Throws:
tcAPIException
tcRequestNotFoundException
tcRequestUserInvalidException

addRequestOrganization

public void addRequestOrganization(long plRequestKey,
                                   long plOrganizationKey)
                            throws Thor.API.Exceptions.tcAPIException,
                                   Thor.API.Exceptions.tcRequestNotFoundException,
                                   Thor.API.Exceptions.tcRequestOrganizationInvalidException,
                                   tcAPIException
Adds to a Request an Organization to be provisioned for.

Parameters:
plRequestKey - The key for the Request.
plOrganizationKey - The key of the Organization to add as a target for the request
Throws:
tcAPIException
tcRequestNotFoundException
tcRequestOrganizationInvalidException

removeRequestOrganization

public void removeRequestOrganization(long plRequestKey,
                                      long plOrganizationKey)
                               throws Thor.API.Exceptions.tcAPIException,
                                      Thor.API.Exceptions.tcRequestNotFoundException,
                                      Thor.API.Exceptions.tcRequestOrganizationInvalidException,
                                      tcAPIException
Removes from a Request an Organization to be provisioned for.

Parameters:
plRequestKey - The key for the Request.
plOrganizationKey - The key of the Organization to remove as a target for the request
Throws:
tcAPIException
tcRequestNotFoundException
tcRequestOrganizationInvalidException

addRequestComment

public void addRequestComment(long plRequestKey,
                              java.lang.String psComment,
                              java.lang.String psCommentType)
                       throws Thor.API.Exceptions.tcAPIException,
                              Thor.API.Exceptions.tcRequestNotFoundException,
                              Thor.API.Exceptions.tcRequestCommentInvalidException,
                              tcAPIException
Adds a user comment to a Request.

Parameters:
plRequestKey - The key for the Request.
psComment - The comment to add to the request
psCommentType - The type of comment being added. Its value is based on LKU where code = Lookup.Request Comments.Type
Throws:
tcAPIException
tcRequestNotFoundException
tcRequestCommentInvalidException

addAdministrativeGroup

public void addAdministrativeGroup(long plRequestKey,
                                   long plGroupKey,
                                   boolean pbWrite,
                                   boolean pbDelete)
                            throws Thor.API.Exceptions.tcAPIException,
                                   Thor.API.Exceptions.tcGroupNotFoundException,
                                   Thor.API.Exceptions.tcRequestNotFoundException,
                                   tcAPIException
Adds an Administrative group to a request.

Parameters:
plRequestKey - The key for the Request.
plGroupKey - The key of the Group to add as an administrator for the request
pbWrite - Whether the group has write access to the group
pbDelete - Whether the group has delete access to the group
Throws:
tcAPIException
tcGroupNotFoundException
tcRequestNotFoundException

updateAdministrativeGroup

public void updateAdministrativeGroup(long plRequestKey,
                                      long plGroupKey,
                                      boolean pbWrite,
                                      boolean pbDelete)
                               throws Thor.API.Exceptions.tcAPIException,
                                      Thor.API.Exceptions.tcAdminNotFoundException,
                                      Thor.API.Exceptions.tcGroupNotFoundException,
                                      Thor.API.Exceptions.tcRequestNotFoundException,
                                      tcAPIException
Update the access an Administrative group has to a request.

Parameters:
plRequestKey - The key for the Request.
plGroupKey - The key of the Group to update the permissions for
pbWrite - Whether the group has write access to the group
pbDelete - Whether the group has delete access to the group
Throws:
tcAPIException
tcAdminNotFoundException
tcGroupNotFoundException
tcRequestNotFoundException

removeAdministrativeGroup

public void removeAdministrativeGroup(long plRequestKey,
                                      long plGroupKey)
                               throws Thor.API.Exceptions.tcAPIException,
                                      Thor.API.Exceptions.tcAdminNotFoundException,
                                      Thor.API.Exceptions.tcGroupNotFoundException,
                                      Thor.API.Exceptions.tcRequestNotFoundException,
                                      Thor.API.Exceptions.tcRequestGroupInvalidException,
                                      tcAPIException
Remove an Administrative group from a request.

Parameters:
plRequestKey - The key for the Request.
plGroupKey - The key of the Group to remove as an administrator for the request
Throws:
tcAPIException
tcAdminNotFoundException
tcGroupNotFoundException
tcRequestNotFoundException
tcRequestGroupInvalidException

assignRequestToUser

public void assignRequestToUser(long plRequestKey,
                                long plUserKey)
                         throws Thor.API.Exceptions.tcAdministratorAlreadyAssignedException,
                                Thor.API.Exceptions.tcAPIException,
                                Thor.API.Exceptions.tcInvalidUserException,
                                Thor.API.Exceptions.tcRequestNotFoundException,
                                Thor.API.Exceptions.tcUserNotFoundException,
                                tcAPIException
Assigns an Administrator to a request. This can only be done if the request does not have a current administrator. The user being assigned must be a member of one of the groups assigned with administrative privileges to this request.

Parameters:
plRequestKey - The key for the Request.
plUserKey - The key of the User to assign as an administrator
Throws:
tcAdministratorAlreadyAssignedException
tcAPIException
tcInvalidUserException
tcRequestNotFoundException
tcUserNotFoundException

isRequestCancellable

public boolean isRequestCancellable(long plRequestKey,
                                    long plUserKey)
                             throws Thor.API.Exceptions.tcAPIException,
                                    tcAPIException
Returns whether the specified user has the authority to cancel the specified request.

Parameters:
plRequestKey - The key for the Request.
plUserKey - The key of the User whose privileges are to be checked
Returns:
True if the user can cancel the request. False if not.
Throws:
tcAPIException

isRequestUpdatable

public boolean isRequestUpdatable(long plRequestKey,
                                  long plUserKey)
                           throws Thor.API.Exceptions.tcAPIException,
                                  tcAPIException
Returns whether the specified user has the authority to update the specified request.

Parameters:
plRequestKey - The key for the Request.
plUserKey - The key of the User whose privileges are to be checked
Returns:
True if the user can update the request. False if not.
Throws:
tcAPIException

isRequestApprovable

public boolean isRequestApprovable(long plRequestKey,
                                   long plUserKey)
                            throws Thor.API.Exceptions.tcAPIException,
                                   tcAPIException
Returns whether the specified user has the authority to approve the specified request.

Parameters:
plRequestKey - The key for the Request.
plUserKey - The key of the User whose approval privileges are to be checked
Returns:
True if the user can approve the request. False if not.
Throws:
tcAPIException

getRequestRoles

public java.lang.String[] getRequestRoles(long plRequestKey,
                                          long plUserKey)
                                   throws Thor.API.Exceptions.tcAPIException,
                                          tcAPIException
Returns the roles that the specified user plays in the specified request.

Parameters:
plRequestKey - The key for the Request.
plUserKey - The key of the User whose request roles are to be checked
Returns:
A string array containing all the roles the user currently has in the request Valid values are "Requester", "Request Target", "Object Authorizer", the Xellerate Role of the user, and "Object Administrator".
Throws:
tcAPIException

getRequestResponses

public java.lang.String[] getRequestResponses(long plRequestKey,
                                              long plUserKey)
                                       throws Thor.API.Exceptions.tcAPIException,
                                              tcAPIException
Returns the responses that the specified user can set for the specified request. This is useful when one would like to deal with the request as a whole rather than dealing with the tasks of the request approval processes. It aggregates all the possible responses for all the tasks that are currently assigned to or accessible to the specified user.

Parameters:
plRequestKey - The key for the Request.
plUserKey - The key of the User whose possible responses are to be checked
Returns:
A String Array containing all the responses the user can set for the tasks in the approval processes of the request
Throws:
tcAPIException

setRequestResponse

public void setRequestResponse(long plRequestKey,
                               long plUserKey,
                               java.lang.String psResponse)
                        throws Thor.API.Exceptions.tcAPIException,
                               Thor.API.Exceptions.tcInvalidResponseException,
                               Thor.API.Exceptions.tcAwaitingObjectDataCompletionException,
                               Thor.API.Exceptions.tcAwaitingApprovalDataCompletionException,
                               tcAPIException
Sets the specified response from the specified user on all the tasks in the specified request that the user has access to. It looks for all the tasks that are currently assigned to or accessible to the specified user. If the specified response is defined as a response for any of those tasks then the response is set on those tasks (and those tasks only)

Parameters:
plRequestKey - The key for the Request.
plUserKey - The key of the User setting the response
psResponse - The response to set for the request
Throws:
tcAPIException
tcInvalidResponseException
Thor.API.Exceptions.tcAwaitingObjectDataCompletionException
Thor.API.Exceptions.tcAwaitingApprovalDataCompletionException

requestMoreInfoFromUser

public void requestMoreInfoFromUser(long plRequestKey,
                                    long plUserKey)
                             throws Thor.API.Exceptions.tcAPIException,
                                    Thor.API.Exceptions.tcInvalidResponseException,
                                    Thor.API.Exceptions.tcRequestApprovedException,
                                    tcAPIException
Initiates a request more info in the system for a specified request. The request for more information is sent to the specified user. The user may have been selected previously based on their role in the request, e.g. it may be a user who the request was made for, or it may be the requester.

Parameters:
plRequestKey - The key for the Request.
plUserKey - The key of the User who must be notified to provide more information for this request.
Throws:
tcAPIException
tcInvalidResponseException
tcRequestApprovedException

requestMoreInfoFromUserWithComment

public void requestMoreInfoFromUserWithComment(long plRequestKey,
                                               long plUserKey,
                                               java.lang.String psComment)
                                        throws Thor.API.Exceptions.tcAPIException,
                                               Thor.API.Exceptions.tcInvalidResponseException,
                                               Thor.API.Exceptions.tcRequestApprovedException,
                                               tcAPIException
Initiates a request more info in the system for a specified request. The request for more information is sent to the specified user. The user may have been selected previously based on their role in the request, e.g. it may be a user who the request was made for, or it may be the requester. The comments are recorded in the Request comments and sent to the user (if desired).

Parameters:
plRequestKey - The key for the Request.
plUserKey - The key of the User who must be notified to provide more information for this request.
psComment - The comment of the user
Throws:
tcAPIException
tcInvalidResponseException
tcRequestApprovedException

requestMoreInfoFromUserForResource

public void requestMoreInfoFromUserForResource(long plRequestKey,
                                               long plUserKey,
                                               long plObjectKey)
                                        throws Thor.API.Exceptions.tcAPIException,
                                               Thor.API.Exceptions.tcInvalidResponseException,
                                               Thor.API.Exceptions.tcRequestApprovedException,
                                               tcAPIException
Initiates a request more info in the system for a specified resource object of a request. The request for more information is sent to the specified user. The user may have been selected previously based on their role in the request, e.g. it may be a user who the request was made for, or it may be the requester.

Parameters:
plRequestKey - The key for the Request.
plUserKey - The key of the User who must be notified to provide more information for this request.
plObjectKey - The key for the resource object
Throws:
tcAPIException
tcInvalidResponseException
tcRequestApprovedException

requestMoreInfoFromUserWithCommentForResource

public void requestMoreInfoFromUserWithCommentForResource(long plRequestKey,
                                                          long plUserKey,
                                                          long plObjectKey,
                                                          java.lang.String psComment)
                                                   throws Thor.API.Exceptions.tcAPIException,
                                                          Thor.API.Exceptions.tcInvalidResponseException,
                                                          Thor.API.Exceptions.tcRequestApprovedException,
                                                          tcAPIException
Initiates a request more info in the system for a specified resource object of a request. The request for more information is sent to the specified user. The user may have been selected previously based on their role in the request, e.g. it may be a user who the request was made for, or it may be the requester. The comments are recorded in the Request comments and sent to the user (if desired).

Parameters:
plRequestKey - The key for the Request.
plUserKey - The key of the User who must be notified to provide more information for this request.
plObjectKey - The key for the resource object
psComment - The comment of the user
Throws:
tcAPIException
tcInvalidResponseException
tcRequestApprovedException

requestMoreInfoFromGroup

public void requestMoreInfoFromGroup(long plRequestKey,
                                     long plGroupKey)
                              throws Thor.API.Exceptions.tcAPIException,
                                     Thor.API.Exceptions.tcInvalidResponseException,
                                     Thor.API.Exceptions.tcRequestApprovedException,
                                     tcAPIException
Initiates a request more info in the system for a specified request. The request for more information is sent to the specified group. The group may have been selected previously based on their role in the request, e.g. it may be a group acting as an object authorizer in the system.

Parameters:
plRequestKey - The key for the Request.
plGroupKey - The key of the Group that must be notified to provide more information for this request.
Throws:
tcAPIException
tcInvalidResponseException
tcRequestApprovedException

requestMoreInfoFromGroupWithComment

public void requestMoreInfoFromGroupWithComment(long plRequestKey,
                                                long plGroupKey,
                                                java.lang.String psComment)
                                         throws Thor.API.Exceptions.tcAPIException,
                                                Thor.API.Exceptions.tcInvalidResponseException,
                                                Thor.API.Exceptions.tcRequestApprovedException,
                                                tcAPIException
Initiates a request more info in the system for a specified request. The request for more information is sent to the specified group. The group may have been selected previously based on their role in the request, e.g. it may be a group acting as an object authorizer in the system.

Parameters:
plRequestKey - The key for the Request.
plGroupKey - The key of the Group that must be notified to provide more information for this request.
psComment - The comment related to the request for more information.
Throws:
tcAPIException
tcInvalidResponseException
tcRequestApprovedException

getRequestTypes

public java.lang.String[] getRequestTypes()
                                   throws Thor.API.Exceptions.tcAPIException,
                                          tcAPIException
Returns all the request types defined in the Xellerate system.

Returns:
An array of strings, each string a valid request type
Throws:
tcAPIException

getRequestStages

public java.lang.String[][] getRequestStages(long plRequestKey)
                                      throws Thor.API.Exceptions.tcAPIException,
                                             tcAPIException
Returns all the stages identified for the specified request, and what status each stage is in.

Parameters:
plRequestKey - The key for the Request.
Returns:
A two dimensional string array with two columns, one the stage name the other the status of the stage
Throws:
tcAPIException

getRequestsForQueue

public Thor.API.tcResultSet getRequestsForQueue(long plQueueKey)
                                         throws Thor.API.Exceptions.tcQueueNotFoundException,
                                                Thor.API.Exceptions.tcAPIException,
                                                tcAPIException
Returns a list of requests (in the form of a tcResultSet) for the specified queue.

Parameters:
plQueueKey - The key for the Queue.
Returns:
A tcResultSet in which each row holds information about the request
Throws:
tcQueueNotFoundException
tcAPIException

getRequestsForQueueByStatus

public Thor.API.tcResultSet getRequestsForQueueByStatus(long plQueueKey,
                                                        java.lang.String[] pasStatus)
                                                 throws Thor.API.Exceptions.tcQueueNotFoundException,
                                                        Thor.API.Exceptions.tcAPIException,
                                                        tcAPIException
Returns a list of requests (in the form of a tcResultSet) which have the given status for the specified queue.

Parameters:
plQueueKey - The key for the Queue.
pasStatus - The status of the requests which would be returned
Returns:
A tcResultSet in which each row holds information about the request
Throws:
tcQueueNotFoundException
tcAPIException

getQueuesForRequest

public Thor.API.tcResultSet getQueuesForRequest(long plRequestKey)
                                         throws Thor.API.Exceptions.tcRequestNotFoundException,
                                                Thor.API.Exceptions.tcAPIException,
                                                tcAPIException
Returns a list of queues (in the form of a tcResultSet) for the specified request.

Parameters:
plRequestKey - The key for the Request.
Returns:
A tcResultSet in which each row holds information about the queue
Throws:
tcRequestNotFoundException
tcAPIException

assignQueue

public void assignQueue(long plQueueKey,
                        long plRequestKey)
                 throws Thor.API.Exceptions.tcRequestNotFoundException,
                        Thor.API.Exceptions.tcQueueNotFoundException,
                        Thor.API.Exceptions.tcAPIException,
                        tcAPIException
Assigns a queue to a request

Parameters:
plQueueKey - The key for the Queue.
plRequestKey - The Key of the Request.
Throws:
tcRequestNotFoundException
tcQueueNotFoundException
tcAPIException

removeQueue

public void removeQueue(long plQueueKey,
                        long plRequestKey)
                 throws Thor.API.Exceptions.tcRequestNotFoundException,
                        Thor.API.Exceptions.tcQueueNotFoundException,
                        Thor.API.Exceptions.tcAPIException,
                        tcAPIException
Removes a queue from a request

Parameters:
plQueueKey - The key for the Queue.
plRequestKey - The Key of the Request.
Throws:
tcRequestNotFoundException
tcQueueNotFoundException
tcAPIException

assignRequestObjectToQueue

public void assignRequestObjectToQueue(long plQueueKey,
                                       long plRequestKey,
                                       long plObjectInstanceKey)
                                throws Thor.API.Exceptions.tcRequestNotFoundException,
                                       Thor.API.Exceptions.tcQueueNotFoundException,
                                       Thor.API.Exceptions.tcRequestObjectInvalidException,
                                       Thor.API.Exceptions.tcAPIException,
                                       tcAPIException
Assigns a Request Object to a particular queue

Parameters:
plQueueKey - The key for the Queue.
plRequestKey - The Key of the Request.
plObjectInstanceKey - The Key of the Request Object Instance.
Throws:
tcRequestNotFoundException
tcQueueNotFoundException
tcRequestObjectInvalidException
tcAPIException

removeRequestObjectFromQueue

public void removeRequestObjectFromQueue(long plRequestKey,
                                         long plObjectInstanceKey)
                                  throws Thor.API.Exceptions.tcRequestNotFoundException,
                                         Thor.API.Exceptions.tcRequestObjectInvalidException,
                                         Thor.API.Exceptions.tcAPIException,
                                         tcAPIException
Removes a Request Object from its assigned queue

Parameters:
plRequestKey - The Key of the Request.
plObjectInstanceKey - The Key of the Request Object Instance.
Throws:
tcRequestNotFoundException
tcRequestObjectInvalidException
tcAPIException

assignRequestObjectToQueueAdmin

public void assignRequestObjectToQueueAdmin(long plUserKey,
                                            long plRequestKey,
                                            long plObjectInstanceKey)
                                     throws Thor.API.Exceptions.tcRequestNotFoundException,
                                            Thor.API.Exceptions.tcUserNotFoundException,
                                            Thor.API.Exceptions.tcRequestObjectInvalidException,
                                            Thor.API.Exceptions.tcAPIException,
                                            tcAPIException
Assigns a Request Object to a particular Queue Admin

Parameters:
plUserKey - The key for the User.
plRequestKey - The Key of the Request.
plObjectInstanceKey - The Key of the Request Object Instance.
Throws:
tcRequestNotFoundException
tcUserNotFoundException
tcRequestObjectInvalidException
tcAPIException

getRequestsForAuthorization

public Thor.API.tcResultSet getRequestsForAuthorization(long plUserKey,
                                                        java.lang.String[] pasStatus,
                                                        boolean pbUserPending)
                                                 throws Thor.API.Exceptions.tcAPIException,
                                                        Thor.API.Exceptions.tcUserNotFoundException,
                                                        tcAPIException
Returns all the requests that the given user is authorized to approve.

Parameters:
plUserKey - The User Key of the user who has to approve the request
pasStatus - The request status to filter by. If no value is specified then it looks for all requests irrespective of status.
pbUserPending - Boolean indicating whether to only display those requests that are pending approval by the specified user. True indicates only show those where the approval task assigned to the specified user is pending. False means show all without filtering
Returns:
A tcResultSet in which each row holds information about the request
Throws:
tcAPIException
tcUserNotFoundException

requiresInstanceResolution

public boolean requiresInstanceResolution(long plRequestKey)
                                   throws Thor.API.Exceptions.tcAPIException,
                                          Thor.API.Exceptions.tcRequestNotFoundException,
                                          tcAPIException
Indicates whether the specified request requires the requester to resolve object instance issues related to the objects in this request. This check is necessary only in the case of requests of type Disable/Enable/Revoke of objects.

Parameters:
plRequestKey - The Key of the Request.
Returns:
True if object instance resolution is required, False if not
Throws:
tcAPIException
tcRequestNotFoundException

getInstanceResolutionListForUser

public Thor.API.tcResultSet getInstanceResolutionListForUser(long plRequestKey,
                                                             long plUserKey,
                                                             long plObjectKey)
                                                      throws Thor.API.Exceptions.tcAPIException,
                                                             Thor.API.Exceptions.tcRequestNotFoundException,
                                                             Thor.API.Exceptions.tcRequestObjectInvalidException,
                                                             Thor.API.Exceptions.tcRequestUserInvalidException,
                                                             tcAPIException
Returns a list of all the request objects - target users in the request that require the requester to select an existing instance of that object for that user. It can also be used to get all by not specifying the user or object keys.
This method call only makes sense in the context of a request whose action type is Enable/Disable/Revoke.

Parameters:
plRequestKey - The Key of the Request.
plUserKey - The Key of the Target User. Specify 0 to get the list for all target users in the request.
plObjectKey - The Key of the Object. Specify 0 to get the list for all objects in the request.
Returns:
Result set containing the matrix of users and objects that require an instance to be selected
Throws:
tcAPIException
tcRequestNotFoundException
tcRequestObjectInvalidException
tcRequestUserInvalidException

getInstanceResolutionListForOrg

public Thor.API.tcResultSet getInstanceResolutionListForOrg(long plRequestKey,
                                                            long plOrganizationKey,
                                                            long plObjectKey)
                                                     throws Thor.API.Exceptions.tcAPIException,
                                                            Thor.API.Exceptions.tcRequestNotFoundException,
                                                            Thor.API.Exceptions.tcRequestObjectInvalidException,
                                                            Thor.API.Exceptions.tcRequestOrganizationInvalidException,
                                                            tcAPIException
Returns a list of all the request objects - target organizations in the request that require the requester to select an existing instance of that object for that organization. It can also be used to get a greater list by not specifying the organization or object keys.
This method call only makes sense in the context of a request whose action type is Enable/Disable/Revoke.

Parameters:
plRequestKey - The Key of the Request.
plOrganizationKey - The Key of the Target Organization. Specify 0 to get the list for all target organizations in the request.
plObjectKey - The Key of the Object. Specify 0 to get the list for all objects in the request.
Returns:
Result set containing the matrix of organizations and objects that require an instance to be selected
Throws:
tcAPIException
tcRequestNotFoundException
tcRequestObjectInvalidException
tcRequestOrganizationInvalidException

getInstanceResolutionOptionsForUser

public Thor.API.tcResultSet getInstanceResolutionOptionsForUser(long plRequestKey,
                                                                long plUserKey,
                                                                long plObjectKey)
                                                         throws Thor.API.Exceptions.tcAPIException,
                                                                Thor.API.Exceptions.tcRequestNotFoundException,
                                                                Thor.API.Exceptions.tcRequestObjectInvalidException,
                                                                Thor.API.Exceptions.tcRequestUserInvalidException,
                                                                Thor.API.Exceptions.tcWrongRequestActionException,
                                                                tcAPIException
Returns a list of all the object instances of the specified object that are currently provisioned to the specified user in the request and are valid options for instance resolution.
If the request action is "Enable", it will only return instances that have a status of 'Disabled'.
If the request action is "Disable", it will only return instances that do not have a status of 'Disabled' or 'Revoked'.
If the request action is "Revoke", it will only return instances that do not have a status of 'Revoked'.
It also specifies if an instance is currently selected or not for this request.
The values returned here are the ones to be used when selecting or deselecting instances using the

Parameters:
plRequestKey - The Key of the Request.
plUserKey - The Key of the Target User.
plObjectKey - The Key of the Object.
Returns:
Result set containing the object instances of the specified object currently provisioned to the specified user that can be selected from
Throws:
tcAPIException
tcRequestNotFoundException
tcRequestObjectInvalidException
tcRequestUserInvalidException
tcWrongRequestActionException
See Also:
and, methods.
This method call only makes sense in the context of a request whose action type is Enable/Disable/Revoke.

getInstanceResolutionOptionsForOrg

public Thor.API.tcResultSet getInstanceResolutionOptionsForOrg(long plRequestKey,
                                                               long plOrganizationKey,
                                                               long plObjectKey)
                                                        throws Thor.API.Exceptions.tcAPIException,
                                                               Thor.API.Exceptions.tcRequestNotFoundException,
                                                               Thor.API.Exceptions.tcRequestObjectInvalidException,
                                                               Thor.API.Exceptions.tcRequestOrganizationInvalidException,
                                                               Thor.API.Exceptions.tcWrongRequestActionException,
                                                               tcAPIException
Returns a list of all the object instances of the specified object currently provisioned to the specified organization in the request that are valid options for instance resolution.
If the request action is "Enable", it will only return instances that have a status of 'Disabled'.
If the request action is "Disable", it will only return instances that do not have a status of 'Disabled' or 'Revoked'.
If the request action is "Revoke", it will only return instances that do not have a status of 'Revoked'.
It also specifies if an instance is currently selected or not for this request.
The values returned here are the ones to be used when selecting or deselecting instances using the

Parameters:
plRequestKey - The Key of the Request.
plOrganizationKey - The Key of the Target Organization.
plObjectKey - The Key of the Object.
Returns:
Result set containing the object instances of the specified object currently provisioned to the specified organization that can be selected from
Throws:
tcAPIException
tcRequestNotFoundException
tcRequestObjectInvalidException
tcRequestOrganizationInvalidException
tcWrongRequestActionException
See Also:
and, methods.
This method call only makes sense in the context of a request whose action type is Enable/Disable/Revoke.

getSelectedInstancesForUser

public Thor.API.tcResultSet getSelectedInstancesForUser(long plRequestKey,
                                                        long plUserKey,
                                                        long plObjectKey)
                                                 throws Thor.API.Exceptions.tcAPIException,
                                                        Thor.API.Exceptions.tcRequestNotFoundException,
                                                        Thor.API.Exceptions.tcRequestObjectInvalidException,
                                                        Thor.API.Exceptions.tcRequestUserInvalidException,
                                                        Thor.API.Exceptions.tcWrongRequestActionException,
                                                        tcAPIException
Returns a list of all the object instances that are currently provisioned to the specified user in the request and match the specified object in the request that have been selected for the request action.
The values returned here are the ones that will be acted upon when the request enable/disable/revoke action is taken.
This method call only makes sense in the context of a request whose action type is Enable/Disable/Revoke.

Parameters:
plRequestKey - The Key of the Request.
plUserKey - The Key of the Target User. Provide 0 if all selections for the request irrespective of user are required.
plObjectKey - The Key of the Object. Provide 0 if all selections for the request irrespective of object are required.
Returns:
Result set containing information about the selected object instances of the specified object currently provisioned to the specified user to be acted upon in this request
Throws:
tcAPIException
tcRequestNotFoundException
tcRequestObjectInvalidException
tcRequestUserInvalidException
tcWrongRequestActionException

getSelectedInstancesForOrg

public Thor.API.tcResultSet getSelectedInstancesForOrg(long plRequestKey,
                                                       long plOrganizationKey,
                                                       long plObjectKey)
                                                throws Thor.API.Exceptions.tcAPIException,
                                                       Thor.API.Exceptions.tcRequestNotFoundException,
                                                       Thor.API.Exceptions.tcRequestObjectInvalidException,
                                                       Thor.API.Exceptions.tcRequestOrganizationInvalidException,
                                                       Thor.API.Exceptions.tcWrongRequestActionException,
                                                       tcAPIException
Returns a list of all the object instances that are currently provisioned to the specified organization in the request and match the specified object in the request that have been selected for the request action.
The values returned here are the ones that will be acted upon when the request enable/disable/revoke action is taken.
This method call only makes sense in the context of a request whose action type is Enable/Disable/Revoke.

Parameters:
plRequestKey - The Key of the Request.
plOrganizationKey - The Key of the Target Organization. Provide 0 if all selections for the request irrespective of organization are required.
plObjectKey - The Key of the Object. Provide 0 if all selections for the request irrespective of object are required.
Returns:
Result set containing information about the selected object instances of the specified object currently provisioned to the specified organization to be acted upon in this request
Throws:
tcAPIException
tcRequestNotFoundException
tcRequestObjectInvalidException
tcRequestOrganizationInvalidException
tcWrongRequestActionException

selectInstancesForUser

public void selectInstancesForUser(long plRequestKey,
                                   long[] palObjectInstanceForUserKeys)
                            throws Thor.API.Exceptions.tcAPIException,
                                   Thor.API.Exceptions.tcRequestNotFoundException,
                                   Thor.API.Exceptions.tcWrongRequestActionException,
                                   tcAPIException
Allows the requester to select the specific instances of objects provisioned to a user that must be acted upon as part of the request. One or more instances can be selected by providing their Object Instance For User keys that are retrieved as part of the returned result set from the

Parameters:
plRequestKey - The Key of the Request.
palObjectInstanceForUserKeys - An array of Object Instance For User Keys.
Throws:
tcAPIException
tcRequestNotFoundException
tcWrongRequestActionException
See Also:
method.
This method call only makes sense in the context of a request whose action type is Enable/Disable/Revoke.

selectInstancesForOrganization

public void selectInstancesForOrganization(long plRequestKey,
                                           long[] palObjectInstanceForOrganizationKeys)
                                    throws Thor.API.Exceptions.tcAPIException,
                                           Thor.API.Exceptions.tcRequestNotFoundException,
                                           Thor.API.Exceptions.tcWrongRequestActionException,
                                           tcAPIException
Allows the requester to select the specific instances of objects provisioned to an organization that must be acted upon as part of the request. One or more instances can be selected by providing their Object Instance For Organization keys that are retrieved as part of the returned result set from the

Parameters:
plRequestKey - The Key of the Request.
palObjectInstanceForOrganizationKeys - An array of Object Instance For Organization Keys.
Throws:
tcAPIException
tcRequestNotFoundException
tcWrongRequestActionException
See Also:
method.
This method call only makes sense in the context of a request whose action type is Enable/Disable/Revoke.

deselectInstancesForUser

public void deselectInstancesForUser(long plRequestKey,
                                     long[] palObjectInstanceForUserKeys)
                              throws Thor.API.Exceptions.tcAPIException,
                                     Thor.API.Exceptions.tcRequestNotFoundException,
                                     Thor.API.Exceptions.tcWrongRequestActionException,
                                     tcAPIException
Allows the requester to deselect the specific instances of objects provisioned to a user that must be acted upon as part of the request. One or more instances can be deselected by providing their Object Instance For User keys that are retrieved as part of the returned result set from the

Parameters:
plRequestKey - The Key of the Request.
palObjectInstanceForUserKeys - An array of Object Instance For User Keys.
Throws:
tcAPIException
tcRequestNotFoundException
tcWrongRequestActionException
See Also:
method.
This method call only makes sense in the context of a request whose action type is Enable/Disable/Revoke.

deselectInstancesForOrganization

public void deselectInstancesForOrganization(long plRequestKey,
                                             long[] palObjectInstanceForOrganizationKeys)
                                      throws Thor.API.Exceptions.tcAPIException,
                                             Thor.API.Exceptions.tcRequestNotFoundException,
                                             Thor.API.Exceptions.tcWrongRequestActionException,
                                             tcAPIException
Allows the requester to deselect the specific instances of objects provisioned to an organization that must be acted upon as part of the request. One or more instances can be deselected by providing their Object Instance For Organization keys that are retrieved as part of the returned result set from the

Parameters:
plRequestKey - The Key of the Request.
palObjectInstanceForOrganizationKeys - An array of Object Instance For Organization Keys.
Throws:
tcAPIException
tcRequestNotFoundException
tcWrongRequestActionException
See Also:
method.
This method call only makes sense in the context of a request whose action type is Enable/Disable/Revoke.

setResourceResponse

public void setResourceResponse(long plUserKey,
                                long plObjectInstanceKey,
                                java.lang.String psResponse)
                         throws Thor.API.Exceptions.tcAPIException,
                                Thor.API.Exceptions.tcInvalidResponseException,
                                tcAPIException
Sets the specified response from the specified user on all the tasks in the specified resource object instance that the user has access to. It looks for all the tasks that are currently assigned to or accessible to the specified user. If the specified response is defined as a response for any of those tasks then the response is set on those tasks (and those tasks only)

Parameters:
plUserKey - The key of the User setting the response
plObjectInstanceKey - The key for the Resource Object Instance.
psResponse - The response to set for the request
Throws:
tcAPIException
tcInvalidResponseException

getRequestHistory

public java.lang.String[][] getRequestHistory(java.lang.String reqID)
                                       throws Thor.API.Exceptions.tcRequestInvalidException,
                                              Thor.API.Exceptions.tcAPIException,
                                              tcAPIException
Gets the history of the request since its submission. Each record indicates an action on the request.

Parameters:
reqID - - the request ID returned when creating the request
Returns:
- a table with columns and rows of request data. The columns returned are: Request Number, Creation Time, Request Priority, Request Status, Status Update Time.
Throws:
tcRequestInvalidException
tcAPIException

getRegistrationUserDetails

public Thor.API.tcResultSet getRegistrationUserDetails(long reqKey)
                                                throws Thor.API.Exceptions.tcRequestInvalidException,
                                                       Thor.API.Exceptions.tcAPIException,
                                                       tcAPIException
This returns the request data associated with the given request. The data is in RQD for the given request. The return value is a result set with columns - rqd_attr_name, rqd_attr_value and rqd_display and rqd_encrypted. This API actually is generic, except that currently, it filters attr-value pair related to challenge questions sent through Registration request. Future Improvement: Make this more generic and allow for any kind of request and allow each kind of request to filter or modify data before returning.

Parameters:
reqKey - The Request key
Returns:
Returns the Thor.API.tcResultSet, which has the user registration deatils
Throws:
tcRequestInvalidException
tcAPIException

isUserSelfRegistrationChallengeValuesProvided

public boolean isUserSelfRegistrationChallengeValuesProvided(long psRequestKey)
                                                      throws Thor.API.Exceptions.tcRequestInvalidException,
                                                             Thor.API.Exceptions.tcAPIException,
                                                             tcAPIException
Checks if user self registration challenge question and answers have been provided

Parameters:
psRequestKey - The Request Key
Returns:
True is user self registration challenge question and answers have been provided, false otherwise
Throws:
tcRequestInvalidException
tcAPIException

updateRegistrationUserDetails

public void updateRegistrationUserDetails(long pnRequestKey,
                                          java.util.Map poAttributes)
                                   throws Thor.API.Exceptions.tcRequestInvalidException,
                                          Thor.API.Exceptions.tcOrganizationNotFoundException,
                                          Thor.API.Exceptions.tcAPIException,
                                          Thor.API.Exceptions.tcInvalidManagerException,
                                          Thor.API.Exceptions.tcDuplicateUserException,
                                          tcAPIException
Updates the request's data with the values passed.

Parameters:
pnRequestKey - Request ID for which data is updated
poAttributes - Key Value pair (the way, value was passed to createRegistrationRequest method in tcUtilityFactory)
Throws:
tcRequestInvalidException
tcOrganizationNotFoundException
tcAPIException
tcInvalidManagerException
tcDuplicateUserException
tcDataAccessException

updateRegistrationUserDetails

public void updateRegistrationUserDetails(long pnRequestKey,
                                          com.thortech.xl.orb.api.tcMapping[] poAttributes)
                                   throws Thor.API.Exceptions.tcRequestInvalidException,
                                          Thor.API.Exceptions.tcOrganizationNotFoundException,
                                          Thor.API.Exceptions.tcAPIException,
                                          Thor.API.Exceptions.tcInvalidManagerException,
                                          Thor.API.Exceptions.tcDuplicateUserException,
                                          com.thortech.xl.orb.dataaccess.tcDataAccessException,
                                          tcAPIException
Updates the request's data with the values passed.

Parameters:
pnRequestKey - Request ID for which data is updated
poAttributes - Key Value pair (the way, value was passed to createRegistrationRequest method in tcUtilityFactory)
Throws:
tcRequestInvalidException
tcOrganizationNotFoundException
tcAPIException
tcInvalidManagerException
tcDuplicateUserException
tcDataAccessException

getNumberOfApprovalTasksAssignedToUser

public int getNumberOfApprovalTasksAssignedToUser(long userKey,
                                                  java.lang.String[] statuses)
                                           throws Thor.API.Exceptions.tcUserNotFoundException,
                                                  Thor.API.Exceptions.tcAPIException,
                                                  tcAPIException
This method returns the number of approval tasks are assigned to a given user, to any users that this user is a proxy of, and to any groups that this user member of based on the given statuses.

Parameters:
userKey - The User Key of the user for whom to get the number of approval tasks.
statuses - An array of statuses to filter the tasks by. If multiple statuses are specified, they are evaluated using the OR operator. If no status is specified then it looks for all tasks irrespective of status.
Returns:
the number of tasks assigned to the given user based on the given statuses
Throws:
tcUserNotFoundException - raise if the user is not a valid user in the system.
tcAPIException - raise if there is a problem during the execution of the API.
Since:
8.0

getApprovalTasksAssignedToUser

public Thor.API.tcResultSet getApprovalTasksAssignedToUser(long userKey,
                                                           java.util.Map attributeList)
                                                    throws Thor.API.Exceptions.tcUserNotFoundException,
                                                           Thor.API.Exceptions.tcAPIException,
                                                           Thor.API.Exceptions.tcAttributeNotFoundException,
                                                           tcAPIException
This method returns a list of all the pending approval tasks that are assigned to the specified user. The attributeList parameter contains the name-value pairs used to filter the results returned by the result set. This method returns tasks not only assigned to the user passed in as a parameter, but also the users who assigned the passed-in-user as a proxy. The same thing applies to groups as well.

Parameters:
userKey - the user key to find the approval tasks
attributeList - the list of attributes that filter the search of approval tasks
Returns:
A result set with the information matching the filter criteria. The following are the columns returned:
  • Requester.First Name
  • Requester.Last Name
  • Requests.Key
  • Requests.Request ID
  • Requests.Row Version
  • Requests.Type
  • Requests.Object Request Type
  • Process Instance.Task Details.Row Version
  • Process Instance.Task Details.Status
  • Process Instance.Task Details.Type
  • Process Instance.Task Details.Update Date
  • Process Instance.Task Details.Update By
  • Process Instance.Task Details.Action
  • Process Instance.Task Details.Actual End Date
  • Process Instance.Task Details.Actual Start Date
  • Process Instance.Task Details.Created By
  • Process Instance.Task Details.Creation Date
  • Process Instance.Task Details.Projected End
  • Process Instance.Task Details.Projected Start
  • Process Instance.Task Information.Assigned To
  • Process Instance.Task Information.Assigned To User Key
  • Process Instance.Task Information.Created By
  • Process Instance.Task Information.Creation Date
  • Process Instance.Task Information.Retry Task
  • Process Instance.Task Information.Row Version
  • Process Instance.Task Information.Update Date
  • Process Instance.Task Information.Updated By
  • Process Instance.Task Information.Assigned To Group Key
  • Process Instance.Task Information.Assigned Type
  • Process Instance.Task Information.Assignee User ID
  • Process Instance.Task Information.Assignee First Name
  • Process Instance.Task Information.Assignee Last Name
  • Groups.Group Name
  • Process Definition.Tasks.Task Name
  • Objects.Name
Throws:
tcUserNotFoundException - raise if the user is not a valid user.
tcAPIException - raise if a problem occurred when retrieving the information.
tcAttributeNotFoundException - raise if an attribute is not valid.
Since:
8.0

getApprovalTasksAssigned

public Thor.API.tcResultSet getApprovalTasksAssigned(java.util.Map attributeList)
                                              throws Thor.API.Exceptions.tcAPIException,
                                                     Thor.API.Exceptions.tcAttributeNotFoundException,
                                                     tcAPIException
This method returns a list of all the pending approval tasks that are assigned to the specified user. The attributeList parameter contains the name-value pairs used to filter the results returned by the result set. This method returns tasks not only assigned to the user passed in as a parameter, but also the users who assigned the passed-in-user as a proxy. The same thing applies to groups as well.

Parameters:
attributeList - the list of attributes that filter the search of approval tasks
Returns:
A result set with the information matching the filter criteria. The following are the columns returned:
  • Requester.First Name
  • Requester.Last Name
  • Requests.Key
  • Requests.Request ID
  • Requests.Row Version
  • Requests.Type
  • Requests.Object Request Type
  • Process Instance.Task Details.Row Version
  • Process Instance.Task Details.Status
  • Process Instance.Task Details.Type
  • Process Instance.Task Details.Update Date
  • Process Instance.Task Details.Update By
  • Process Instance.Task Details.Action
  • Process Instance.Task Details.Actual End Date
  • Process Instance.Task Details.Actual Start Date
  • Process Instance.Task Details.Created By
  • Process Instance.Task Details.Creation Date
  • Process Instance.Task Details.Projected End
  • Process Instance.Task Details.Projected Start
  • Process Instance.Task Information.Assigned To
  • Process Instance.Task Information.Assigned To User Key
  • Process Instance.Task Information.Created By
  • Process Instance.Task Information.Creation Date
  • Process Instance.Task Information.Retry Task
  • Process Instance.Task Information.Row Version
  • Process Instance.Task Information.Update Date
  • Process Instance.Task Information.Updated By
  • Process Instance.Task Information.Assigned To Group Key
  • Process Instance.Task Information.Assigned Type
  • Process Instance.Task Information.Assignee User ID
  • Process Instance.Task Information.Assignee First Name
  • Process Instance.Task Information.Assignee Last Name
  • Groups.Group Name
  • Process Definition.Tasks.Task Name
  • Objects.Name
Throws:
tcUserNotFoundException - raise if the user is not a valid user.
tcAPIException - raise if a problem occurred when retrieving the information.
tcAttributeNotFoundException - raise if an attribute is not valid.
Since:
8.0

getApprovalTasksAssignedToManagedUsers

public Thor.API.tcResultSet getApprovalTasksAssignedToManagedUsers(long userKey,
                                                                   java.util.Map attributeList)
                                                            throws Thor.API.Exceptions.tcUserNotFoundException,
                                                                   Thor.API.Exceptions.tcAPIException,
                                                                   Thor.API.Exceptions.tcAttributeNotFoundException,
                                                                   tcAPIException
This method behaves similar to getApprovalTasksAssignedToUser except for the fact that this method returns only the tasks assigned to the users managed by the user passed into this method, represented by userKey. The proxy functionality will have no effect on the results of this API method.

Parameters:
userKey -
attributeList -
Returns:
Throws:
tcAPIException - raise if a problem occurred when retrieving the information.
tcUserNotFoundException - raise if the user is not a valid user.
tcAttributeNotFoundException - raise if an attribute is not valid.
Since:
8.0
See Also:
getApprovalTasksAssignedToUser

reassignApprovalTasksToUser

public void reassignApprovalTasksToUser(long[] taskInstanceKeys,
                                        long userKey)
                                 throws Thor.API.Exceptions.tcAPIException,
                                        Thor.API.Exceptions.tcUserNotFoundException,
                                        Thor.API.Exceptions.tcTaskNotFoundException,
                                        Thor.API.Exceptions.tcBulkException,
                                        tcAPIException
This method re-assigns the selected approval tasks to the specified user.

Parameters:
taskInstanceKeys - array of task instances that need to be re-assigned
userKey - the user key that all the task instance will re-assign to
Throws:
tcAPIException - raise if a problem occurred when retrieving the information.
tcUserNotFoundException - raise if the user is not a valid user.
tcTaskNotFoundException - raise if one or more task are not valid.
tcBulkException - raise if a problem occurred on any of the re-assigments of the task instance.
Since:
8.0

reassignApprovalTasksToGroup

public void reassignApprovalTasksToGroup(long[] taskInstanceKeys,
                                         long groupKey)
                                  throws Thor.API.Exceptions.tcAPIException,
                                         Thor.API.Exceptions.tcGroupNotFoundException,
                                         Thor.API.Exceptions.tcTaskNotFoundException,
                                         Thor.API.Exceptions.tcBulkException,
                                         tcAPIException
This method re-assigns the selected approval tasks to the specified group.

Parameters:
taskInstanceKeys - array of task instances that need to be re-assigned
groupKey - the group key that all the task instance will re-assign to
Throws:
tcAPIException - raise if a problem occurred when retrieving the information.
tcGroupNotFoundException - raise if the group is not a valid group.
tcTaskNotFoundException - raise if one or more task are not valid.
tcBulkException - raise if a problem occurred on any of the re-assigments of the task instance.
Since:
8.0

getNumberOfRequestsCreatedForUser

public int getNumberOfRequestsCreatedForUser(long userKey,
                                             boolean pending)
                                      throws Thor.API.Exceptions.tcUserNotFoundException,
                                             Thor.API.Exceptions.tcAPIException,
                                             tcAPIException
Returns the number of requests that have been created for a specific user.

Parameters:
userKey - The user key of the user who the requests are created for.
pending - Boolean indicating whether to only count those requests that are pending. True indicates to only count the requests that are NOT in the following statuses:
  • Request Initialized
  • Not Approved
  • Request Complete
  • Request Closed
  • Request Cancelled
False indicates to show all requests created for the specified user without filtering.
Returns:
An integer representing the number of requests.
Throws:
tcUserNotFoundException
tcAPIException
Since:
8.0

getNumberOfRequestsCreatedByUser

public int getNumberOfRequestsCreatedByUser(long userKey,
                                            boolean pending)
                                     throws Thor.API.Exceptions.tcUserNotFoundException,
                                            Thor.API.Exceptions.tcAPIException,
                                            tcAPIException
Returns the number of requests that have been created by a specific user.

Parameters:
userKey - The user key of the user who the requests are created by.
pending - Boolean indicating whether to only count those requests that are pending. True indicates to only count the requests that are NOT in the following statuses:
  • Request Initialized
  • Not Approved
  • Request Complete
  • Request Closed
  • Request Cancelled
False indicates to show all requests created by the specified user without filtering.
Returns:
An integer representing the number of requests.
Throws:
tcUserNotFoundException
tcAPIException
Since:
8.0

getNumberOfPendingRequests

public long getNumberOfPendingRequests(long userKey)
                                throws Thor.API.Exceptions.tcUserNotFoundException,
                                       Thor.API.Exceptions.tcAPIException,
                                       tcAPIException
Returns the number of pending requests given a user key

Parameters:
userKey - the user to retrieve the pending approvals for
Throws:
tcUserNotFoundException
tcAPIException

initiateRequestApproval

public void initiateRequestApproval(long reqKey)
                             throws Thor.API.Exceptions.tcInvalidStatusException,
                                    Thor.API.Exceptions.tcAPIException,
                                    tcAPIException
Initiates the request approval(Standard Approval) process

Parameters:
reqKey - the request to initiate the approval process
Throws:
tcInvalidStatusException
tcAPIException

getProvisioningDetail

public Thor.API.tcResultSet getProvisioningDetail(long requestID)
                                           throws Thor.API.Exceptions.tcAPIException,
                                                  tcAPIException
This method returns all provisioning information for the reqeust.

Returns:
tcResultSet
Throws:
tcAPIException - raise if a problem occurred when retrieving the information.
Since:
8.0

getPendingApprovals

public Thor.API.tcResultSet getPendingApprovals(long requestID)
                                         throws Thor.API.Exceptions.tcAPIException,
                                                tcAPIException
Deprecated.  

This method returns all pendig approvals for the request.

Returns:
tcResultSet
Throws:
tcAPIException - raise if a problem occurred when retrieving the information.
Since:
8.0

findObjects

public Thor.API.tcResultSet findObjects(java.lang.String actionType,
                                        java.lang.String[] targetKeys,
                                        java.lang.String type,
                                        java.util.Map searchCriteria)
                                 throws Thor.API.Exceptions.tcAPIException,
                                        tcAPIException
This method returns all Resource Objects based on the parameters.

Parameters:
actionType - Enable/Disable/Revoke
targetKeys - string array to hold either user keys or organization keys
type - U is user type, O is organization type.
Returns:
tcResultSet
Throws:
tcAPIException - raise if a problem occurred when retrieving the information.
Since:
8.0

removeRequestObject

public void removeRequestObject(java.lang.String requestKey,
                                java.lang.String objectInstanceKey)
                         throws Thor.API.Exceptions.tcAPIException,
                                Thor.API.Exceptions.tcRequestNotFoundException,
                                Thor.API.Exceptions.tcRequestObjectInvalidException,
                                tcAPIException
Deletes an Object to be provisioned from a Request

Parameters:
requestKey - The key for the request to remove the object from.
objectInstanceKey - The key of the Object Instance to remove
Throws:
tcAPIException
tcRequestNotFoundException
tcRequestObjectInvalidException

getSelectedResolutionInstances

public Thor.API.tcResultSet getSelectedResolutionInstances(java.lang.String requestKey,
                                                           java.lang.String type)
                                                    throws Thor.API.Exceptions.tcAPIException,
                                                           tcAPIException
Returns a list of all the object instances that are currently provisioned to the users/organizations in the request and match the specified object in the request that have been selected for the request action.
The values returned here are the ones that will be acted upon when the request enable/disable/revoke action is taken.
This method call only makes sense in the context of a request whose action type is Enable/Disable/Revoke.

Parameters:
requestKey - The Key of the Request.
type - U is for User. O is for Organization
Throws:
tcAPIException
Since:
8.0


Copyright © 1991, 2006 Oracle. All rights reserved.