public class FlexDeploy2Functions extends BaseFunctions implements IFlexDeployFunctions
Constructor and Description |
---|
FlexDeploy2Functions() |
FlexDeploy2Functions(boolean isExecute,
LogFunctions pFLOG) |
Modifier and Type | Method and Description |
---|---|
void |
activateBranch(java.lang.Long pProjectId,
java.lang.String pBranchName)
Active a FlexDeploy Branch on a project.
|
void |
activateStream(java.lang.Long pProjectId,
java.lang.String pStreamName)
Active a FlexDeploy Stream on a project.
|
void |
addFilesToPackage(java.lang.Long pProjectId,
java.lang.String pPackageName,
java.util.List<java.lang.String> pFiles)
Adds files to a given package.
|
FlxWorkItemCommentDataObject |
addWorkItemComment(java.lang.String pWorkItemNumber,
java.lang.String pComment)
Adds a work item comment with the provided data.
|
void |
assignGroupToUser(java.lang.Long pGroupId,
java.lang.Long pUserId)
Assigns Group to User with the provided data.
|
void |
assignGroupToUser(java.lang.String pGroupName,
java.lang.String pUserName)
Assigns Group to User with the provided data.
|
java.lang.Long |
buildPackage(java.lang.Long pStreamId,
ProjectPackagePojo projectPackage)
Builds a FlexDeploy Package.
|
java.lang.Long |
buildPackage(java.lang.Long pStreamId,
ProjectPackagePojo projectPackage,
BuildOptions pBuildOptions)
Builds a FlexDeploy Package.
|
java.lang.Long |
buildPackage(java.lang.Long pStreamId,
ProjectPackagePojo projectPackage,
PollingResult pPollingResult)
Builds a FlexDeploy Package using a PollingResult.
|
java.lang.Long |
buildPackage(java.lang.Long pStreamId,
ProjectPackagePojo projectPackage,
PollingResult pPollingResult,
BuildOptions pBuildOptions)
Builds a FlexDeploy Package using a PollingResult.
|
java.lang.Long |
buildProject(java.lang.Long pStreamId,
java.lang.Long pProjectId)
Builds a FlexDeploy Project.
|
java.lang.Long |
buildProject(java.lang.Long pStreamId,
java.lang.Long pProjectId,
BuildOptions pBuildOptions)
Builds a FlexDeploy Project.
|
java.lang.Long |
buildProject(java.lang.Long pStreamId,
java.lang.Long pProjectId,
PollingResult pPollingResult)
Builds a FlexDeploy Project using a PollingResult.
|
java.lang.Long |
buildProject(java.lang.Long pStreamId,
java.lang.Long pProjectId,
PollingResult pPollingResult,
BuildOptions pBuildOptions)
Builds a FlexDeploy Project using a PollingResult.
|
void |
cleanup() |
java.lang.Long |
createBranch(java.lang.Long pProjectId,
ProjectStreamPojo pBranch)
Create a FlexDeploy Branch on a given project.
|
java.lang.Long |
createBranch(java.lang.Long pProjectId,
java.lang.String pBranchName)
Create a FlexDeploy Branch on a given project.
|
java.lang.Long |
createBranch(java.lang.Long pProjectId,
java.lang.String pBranchName,
java.lang.String pVersionSyntax)
Create a FlexDeploy Branch on a given project.
|
CredentialDataObject |
createCredential(CredentialDataObject pCredentialDataObject)
Create Credential with the provided data.
|
java.lang.Long |
createDynamicPackage(java.lang.Long pProjectId,
java.lang.String pPackageName,
java.lang.String pDescription,
java.lang.String pIncludePath,
java.lang.String pExcludePath)
Creates a dynamic package for given include and exclude path.
|
EndpointDataObject |
createEndpoint(EndpointDataObject pEndpointDataObject)
Create Endpoint with the provided data.
|
EnvironmentDataObject |
createEnvironment(EnvironmentDataObject pEnvDataObject)
Create Environment with the provided data.
|
FlxWorkItemFieldDataObject |
createFlxWorkItemField(FlxWorkItemFieldDataObject pDobj)
Creates a Flex Work Item Field with the provided data.
|
PropertyKeyGroupDataObject |
createFlxWorkItemFieldGroup(PropertyKeyGroupDataObject pDobj)
Creates a Flex Work Item Field Group with the provided data.
|
FolderDataObject |
createFolder(FolderDataObject pFolderDataObject)
Create Folder with the provided data.
|
FdGroupDataObject |
createGroup(FdGroupDataObject pGroupDataObject)
Create Group with the provided data.
|
CMSObject |
createIncidentByWorkflowType(java.lang.Long pWorkflowRequestId,
java.util.Map<java.lang.String,java.io.Serializable> pIncidentFields)
Returns a CMSObject with incident details.
|
CMSObject |
createIncidentForWorklowRequest(java.lang.Long pWorkflowRequestId,
java.util.Map<java.lang.String,java.io.Serializable> pIncidentFields,
java.lang.String pCMSInstanceCode,
java.lang.String pCMSInstanceName)
Returns a CMSObject with incident details for a particular CMS Instance by searching with Instance Name and Instance Code.
|
java.lang.Long |
createPackage(java.lang.Long pProjectId,
java.lang.String pPackageName,
java.lang.String pDescription,
java.util.List<java.lang.String> pFiles)
Creates a package for a given project and list of files.
|
java.lang.Long |
createPackage(java.lang.Long pProjectId,
java.lang.String pPackageName,
java.lang.String pDescription,
java.lang.Long pStreamId,
PollingResult pPollingResult)
Creates a package for a given project relative to a PollingResult.
|
java.lang.Long |
createProject(ProjectPojo pProjectPojo)
Creates and configures a project with the provided data.
|
ProjectTriggerDataObject |
createProjectTrigger(ProjectTriggerDataObject pPojo)
Creates a project trigger with the provided data.Returns the project trigger details after creation.
|
PropertyKeyDefinitionDataObject |
createPropertyKeyDefinition(PropertyKeyDefinitionDataObject pPojo)
Creates a property key definition with the provided data.
|
java.lang.Long |
createSCMInstance(SCMInstancePojo pSCMInstancePojo)
Creates and configures an SCM instance with the given data.
|
java.lang.Long |
createSCMInstance(java.lang.String pSCMInstanceName,
java.lang.String pDescription,
java.lang.Boolean pIsActive,
java.lang.String pInstanceCode,
java.util.List<PropertyValuePojo> pProperties,
java.lang.String pSCMType)
Creates and configures an SCM Instance with the provided data.
|
java.lang.Long |
createStream(java.lang.Long pProjectId,
ProjectStreamPojo pStream)
Create a FlexDeploy Stream on a given project.
|
java.lang.Long |
createStream(java.lang.Long pProjectId,
java.lang.String pStreamName)
Create a FlexDeploy Stream on a given project.
|
java.lang.Long |
createStream(java.lang.Long pProjectId,
java.lang.String pStreamName,
java.lang.String pVersionSyntax)
Create a FlexDeploy Stream on a given project.
|
TargetGroupDataObject |
createTargetGroup(TargetGroupDataObject pTargetGroupDataObj)
Create TargetGroup with the provided data.
|
FdUserDataObject |
createUser(FdUserDataObject pUserDataObj)
Create User with the provided data.
|
FlxWorkItemDataObject |
createWorkItem(FlxWorkItemDataObject pPojo)
Creates a work item with the provided data.Returns the work item details after creation.
|
void |
deleteCredential(java.lang.Long pCredentialId)
Deletes a Credential.
|
void |
deleteEndpoint(java.lang.Long pEndpointId)
Deletes an Endpoint.
|
void |
deleteEnvironment(java.lang.Long pEnvironmentId)
Deletes an Environment.
|
void |
deleteFlxWorkItem(java.lang.Long pFlexWorkItemId)
Deletes a Flex Work Item
|
void |
deleteFlxWorkItemField(java.lang.Long pFlexWorkItemFieldId)
Deletes a Flex Work Item Field
|
void |
deleteFlxWorkItemFieldGroup(java.lang.String pFlexWorkItemFieldGroupCode)
Deletes a Flex Work Item Field Group
|
void |
deleteFolder(java.lang.Long pFolderId)
Deletes a Folder.
|
void |
deletePackage(java.lang.Long pProjectId,
java.lang.String pPackageName)
Deletes a project package
|
void |
deleteProjectTrigger(java.lang.Long pProjectTriggerId)
Deletes the project trigger based on Project Trigger id.
|
void |
deleteTargetGroup(java.lang.Long pTargetGroupId)
Deletes a TargetGroup.
|
java.lang.Long |
deployPackage(java.lang.Long pProjectId,
java.lang.String pPackageName,
java.lang.String pEnvironmentCode,
DeployOptions pDeployOptions)
Deploys a FlexDeploy Package.
|
java.lang.Long |
deployProject(java.lang.Long pProjectId,
java.lang.String pEnvironmentCode,
DeployOptions pDeployOptions)
Deploys a FlexDeploy Project.
|
java.lang.Integer |
discoverFiles(java.lang.Long pProjectId,
java.lang.Long pStreamId)
Populate partial deployment files for a given project.
|
void |
downloadLogs(java.lang.Long pWorkflowExecutionId,
java.lang.String pDestinationPath)
Downloads the plugin logs from the workflow execution based on Id.
|
java.lang.Long |
executeUtility(java.lang.Long pProjectId,
java.lang.String pEnvironmentCode)
Executes a FlexDeploy Utility Project for a single environment on all instances configured in Project Configuration.
|
java.lang.Long |
executeUtility(java.lang.Long pProjectId,
java.lang.String pEnvironmentCode,
ExecuteOptions pExecuteOptions)
Executes a FlexDeploy Utility Project for a single environment with specified ExecuteOptions.
|
java.lang.Long |
findBranchId(java.lang.Long pProjectId,
java.lang.String pBranchName)
Finds a FlexDeploy branch id from the Branch name.
|
CMSInstancePojo |
findCMSInstance(java.lang.String pCMSInstanceCode)
Gets a CMSInstance based on the CMS Instance Code passed.
|
java.util.List<EnvironmentPojo> |
findEnvironment(java.lang.String pEnvironmentCode)
Gets the environment with the specified enviornment code.
|
java.lang.Long |
findFolderId(java.lang.String pFolderName)
Finds the FlexDeploy Folder id for any given name.
|
java.util.List<FolderDataObject> |
findFoldersWithName(java.lang.String pFolderName)
Finds FlexDeploy Folders for any given name
|
FolderDataObject |
findFolderWithId(java.lang.Long pFolderId)
Finds Folder using Id.
|
IntegrationInstancePojo |
findIntegrationInstance(java.lang.String pIntegrationInstanceCode,
java.lang.String pType)
Gets an integration instance based on the code.
|
PollingResult |
findLocalChangeLogs(java.lang.String pUrl,
java.lang.String pBranch,
java.lang.String pCurrentRevision,
java.lang.String pFromRevision)
Finds change logs for a local ssh enabled git repository.
|
PollingResult |
findLocalChangeLogs(java.lang.String pUrl,
java.lang.String pBranch,
java.lang.String pCurrentRevision,
java.lang.String pFromRevision,
boolean pIgnoreTargetBranchMerge)
Finds change logs for a local ssh enabled git repository.
|
PollingResult |
findLocalChangeLogs(java.lang.String pUrl,
java.lang.String pBranch,
java.lang.String pCurrentRevision,
java.lang.String pFromRevision,
java.lang.String pUser,
java.lang.String pPassword)
Finds change logs for a local git repository.
|
PollingResult |
findLocalChangeLogs(java.lang.String pUrl,
java.lang.String pBranch,
java.lang.String pCurrentRevision,
java.lang.String pFromRevision,
java.lang.String pUser,
java.lang.String pPassword,
boolean pIgnoreTargetBranchMerge)
Finds change logs for a local ssh enabled git repository.
|
java.util.Set<ProjectPackagePojo> |
findPackagesForChange(java.lang.String pRepositoryName,
java.lang.String pStreamName,
java.util.List<java.lang.String> pChangedFiles)
Finds relevant FlexDeploy Packages for a list of changed files.
|
java.util.Set<ProjectPackagePojo> |
findPackagesForChange(java.lang.String pRepositoryName,
java.lang.String pStreamName,
PollingResult pPollingResult)
Finds relevant FlexDeploy Packages for any given PollingResult.
|
java.lang.Long |
findProjectId(java.lang.String pProjectName)
Finds the FlexDeploy Project id for any given name.
|
java.util.Set<java.lang.Long> |
findProjectsForChange(java.lang.String pRepositoryName,
java.lang.String pStreamName,
java.util.List<java.lang.String> pChangedFiles)
Finds relevant FlexDeploy Projects for a list of changed files.
|
java.util.Set<java.lang.Long> |
findProjectsForChange(java.lang.String pRepositoryName,
java.lang.String pStreamName,
PollingResult pPollingResult)
Finds relevant FlexDeploy Projects for any given PollingResult and stream.
|
java.util.Set<java.lang.Long> |
findProjectsForNewBranch(java.lang.String pRepositoryName)
Finds relevant FlexDeploy Projects for a new branch event.
|
java.util.Set<java.lang.Long> |
findProjectsForNewBranch(java.lang.String pRepositoryName,
PollingResult pPollingResult)
Finds relevant FlexDeploy Projects for a new branch event.
|
java.util.List<ProjectDataObject> |
findProjectsWithName(java.lang.String pProjectName)
Finds FlexDeploy Projects for any given name
|
ProjectDataObject |
findProjectWithId(java.lang.Long pProjectId)
Finds Project using Id.
|
java.lang.Long |
findStreamId(java.lang.Long pProjectId,
java.lang.String pStreamName)
Finds a FlexDeploy stream id from the Stream name.
|
FlxWorkItemDataObject |
findWorkItemByNumber(java.lang.String pWorkItemNumber)
Gets work item based on work item number.
|
java.util.List<FlexFieldMetadataDataObject> |
getActiveBuildFlexfieldMetadata()
Gets active build flexfields metadata.
|
java.util.List<FlexFieldMetadataDataObject> |
getActiveDeployUtilityFlexfieldMetadata()
Gets active deploy or utility flexfields metadata.
|
java.util.List<TasksQueryResultPojo> |
getApprovedPipelineStageGateTasks(java.lang.Long pPipelineStageExecId)
Gets Task details based on pipeline stage execution id.
|
ChangeManagementSystem |
getChangeManagementSystemByInstanceCode(java.lang.String pInstanceCode)
Returns a CMS System for a particular CMS Instance by searching with Instance Code.
|
ChangeManagementSystem |
getChangeManagementSystemByInstanceId(java.lang.Long pCMSInstanceId)
Returns a CMS System for a particular CMS Instance Id.
|
ChangeManagementSystem |
getChangeManagementSystemByInstanceName(java.lang.String pInstanceName)
Returns a CMS System for a particular CMS Instance by searching with Instance Name.
|
CMSInstancePojo |
getCMSInstance(java.lang.Long pCMSInstanceId)
Gets a CMSInstance based on the CMS Instance Id passed.
|
CredentialDataObject |
getCredentialById(java.lang.Long pCredentialId)
Returns Credential information for a given Credential Id.
|
CredentialDataObject |
getCredentialByName(java.lang.String pCredentialName)
Returns Credential information for a given Credential name.
|
java.lang.Long |
getCurrentlyDeployedVersionId(java.lang.Long pProjectId,
java.lang.Long pEnvironmentId,
java.lang.Long pInstanceId)
Returns currently deployed project version Id of full deployment project.
|
java.lang.Long |
getCurrentlyDeployedVersionId(java.lang.Long pProjectId,
java.lang.Long pEnvironmentId,
java.lang.Long pInstanceId,
java.lang.String pPackageName)
Returns currently deployed project version Id of partial deployment project.
|
EndpointDataObject |
getEndpointById(java.lang.Long pEndpointId)
Returns Endpoint information for a given endpoint Id.
|
EndpointDataObject |
getEndpointByName(java.lang.String pEndpointName)
Returns Endpoint information for a given Endpoint Name.
|
EnvironmentPojo |
getEnvironment(java.lang.Long pEnvironmentId)
Gets the environment with the specified Id.
|
EnvironmentDataObject |
getEnvironmentByCode(java.lang.String pEnvironmentCode)
Returns Environment information for a given environment code.
|
EnvironmentDataObject |
getEnvironmentById(java.lang.Long pEnvironmentId)
Returns Environment information for a given environment Id.
|
EnvironmentDataObject |
getEnvironmentByName(java.lang.String pEnvironmentName)
Returns Environment information for a given environmentName
|
java.lang.String |
getFlexDeployBaseUrl()
Returns the FlexDeploy Server base url configured in System Settings.
|
PropertyKeyGroupDataObject |
getFlxWorkItemFieldGroupWithCode(java.lang.String pFlexWorkItemFieldGroupCode)
Finds a Flex Work Item Field Group using Code.
|
FlxWorkItemFieldDataObject |
getFlxWorkItemFieldWithId(java.lang.Long pFlexWorkItemFieldId)
Finds Flex Work Item Field using Id.
|
FlxWorkItemStatusDataObject |
getFlxWorkItemStatusWithId(java.lang.Long pFlexWorkItemStatusId)
Finds Flex Work Item Status using Id.
|
FlxWorkItemTypeDataObject |
getFlxWorkItemTypeWithCode(java.lang.String pFlexWorkItemTypeCode)
Finds Flex Work Item Type using Code.
|
java.lang.String |
getGroovyKey() |
FdGroupDataObject |
getGroupById(java.lang.Long pGroupId)
Returns Group information for a given group Id.
|
FdGroupDataObject |
getGroupByName(java.lang.String pGroupName)
Returns Group information for a given group name.
|
IntegrationInstancePojo |
getIntegrationInstance(java.lang.Long pIntegrationInstanceId,
java.lang.String pType)
Gets an integration instance based on the id.
|
IssueTrackingSystem |
getIssueTrackingSystemByInstanceCode(java.lang.String pInstanceCode)
Returns a ITS System for a particular ITS Instance Code.
|
IssueTrackingSystem |
getIssueTrackingSystemByInstanceId(java.lang.Long pITSInstanceId)
Returns a ITS System for a particular ITS Instance Id.
|
IssueTrackingSystem |
getIssueTrackingSystemByInstanceName(java.lang.String pInstanceName)
Returns a ITS System for a particular ITS Instance Name.
|
java.lang.Long |
getMatchingProjectObjectId(java.lang.Long pProjectId,
java.lang.String pFile)
Returns internal id for file in a project.
|
PackageDetailsResponsePojo |
getPackage(java.lang.Long pProjectId,
java.lang.String pPackageName)
Returns a PackageDetailsResponsePojo given a Project Id and Package Name
|
java.util.List<TasksQueryResultPojo> |
getPipelineStageGateTasks(java.lang.Long pPipelineStageExecId)
Gets Task details based on pipeline stage execution id.
|
java.util.Map<java.lang.Long,java.io.InputStream> |
getPluginLogInputStreams(java.lang.Long pWorkflowExecutionId)
Returns plugin logs from a workflow execution as a map with the key being the plugin execution id and value as an InputStream of log data.
|
java.util.Map<java.lang.Long,java.io.InputStream> |
getPluginLogInputStreams(java.lang.Long pWorkflowExecutionId,
java.lang.Boolean pOnlyError)
Returns plugin logs from a workflow execution as a map with the key being the plugin execution id and value as an InputStream of log data.
|
java.util.Collection<PluginLogPojo> |
getPluginLogs(java.lang.Long pWorkflowExecutionId)
Gets the plugin logs from the workflow execution based on Id.
|
java.lang.Long |
getPreviouslyDeployedVersionId(java.lang.Long pProjectId,
java.lang.Long pEnvironmentId,
java.lang.Long pInstanceId)
Returns previously deployed project version Id of full deployment project.
|
java.lang.Long |
getPreviouslyDeployedVersionId(java.lang.Long pProjectId,
java.lang.Long pEnvironmentId,
java.lang.Long pInstanceId,
java.lang.String pPackageName)
Returns previously deployed project version Id of partial deployment project.
|
ProjectPojo |
getProject(java.lang.Long pProjectId)
Returns project information for a given projectId.
|
ProjectStreamDataObject |
getProjectBranchById(java.lang.Long pBranchId,
java.lang.Long pProjectId)
Returns the project branch details for given branchId and projectId
|
ProjectTriggerDataObject |
getProjectTriggerById(java.lang.Long pProjectTriggerId)
Returns the project trigger information based on Project Trigger id.
|
ProjectVersionDataObject |
getProjectVersionById(java.lang.Long pProjectVersionId,
java.lang.Long pProjectId)
Gets project version data object by project version id and project Id.
|
PropertyKeyDefinitionDataObject |
getPropertyKeyDefinition(java.lang.Long pPropertyKeyDefinitionId)
Retrieves a property key definition by its ID.
|
PropertyKeyDefinitionDataObject |
getPropertyKeyDefinition(java.lang.String pKeyName)
Retrieves a property key definition by its key name.
|
PropertySetDataObject |
getPropertySet(java.lang.Long pPropertySetId)
Retrieves a property set by its ID.
|
java.io.InputStream |
getReportDataByWorkflowExecutionReportId(java.lang.Long pWorkflowExecutionReportId)
Get a report by Workflow Execution Report ID.
|
java.util.List<WorkflowExecutionReportDataObject> |
getReportsByWorkflowExecutionId(java.lang.Long pWorkflowExecutionId)
Gets a list of WorkflowExecutionReportDataObject objects that are associated with a workflow execution
|
ScanResultPojo |
getScanResultForSonarqube(java.lang.String pBaseUrl,
java.lang.String pProjectKey)
get Scan result for SonarQube
|
RelSnapshotDataObject |
getSnapshotDetails(java.lang.Long pSnapshotId)
RETURN a release snapshot data object by id.
|
TargetGroupDataObject |
getTargetGroupByCode(java.lang.String pTargetGroupCode)
Get the TargetGroup based on TargetGroup code passed.
|
TargetGroupDataObject |
getTargetGroupById(java.lang.Long pTargetGroupId)
Get the TargetGroup based on TargetGroup id passed.
|
TargetGroupDataObject |
getTargetGroupByName(java.lang.String pTargetGroupName)
Get the TargetGroup based on TargetGroup name passed.
|
FdUserDataObject |
getUser(java.lang.String pUsername)
Returns user information for a given username.
|
FdUserDataObject |
getUserById(java.lang.Long pUserId)
Returns User information along with the user attributes and group detail for a given user Id.
|
java.util.List<FDUser> |
getUsersFromGroupId(java.lang.Long pGroupId)
Gets a list of FDUser objects that are members of the group with the given group Id.
|
java.util.List<FDUser> |
getUsersFromGroupName(java.lang.String pGroupName)
Gets a list of FDUser objects that are members of the group with the given group name.
|
WorkflowExecutionDataObject |
getWorkflowExecutionById(java.lang.Long pWorkflowExecutionId)
Gets workflow execution details for workflow execution id.
|
java.util.List<WorkflowExecutionDataObject> |
getWorkflowExecutionByWorkflowRequestId(java.lang.Long pWorkflowRequestId)
Gets workflow execution details by workflow request id.
|
java.util.List<ScmCommitDataObject> |
getWorkflowExecutionCommits(java.lang.Long pWorkflowExecutionId)
Gets Commit details associated with workflow execution.
|
java.util.List<CodeValueInputPOJO> |
getWorkflowExecutionFlexfields(java.lang.Long pWorkflowExecutionId)
Gets workflow execution flexfields details for workflow execution id.
|
java.util.List<CodeValueInputPOJO> |
getWorkflowExecutionInputs(java.lang.Long pWorkflowExecutionId)
Gets workflow execution inputs details for workflow execution id.
|
java.util.List<CodeValueInputPOJO> |
getWorkflowExecutionOutputs(java.lang.Long pWorkflowExecutionId)
Gets workflow execution output details for workflow execution id.
|
WorkflowExecutionVariables |
getWorkflowExecutionVariables(java.lang.Long pWorkflowExecutionId)
Gets workflow execution variables for workflow execution id.
|
java.util.List<WorkItemDataObject> |
getWorkflowExecutionWorkItems(java.lang.Long pWorkflowExecutionId)
Gets WorkItem details associated with workflow execution.
|
java.util.List<TasksQueryResultPojo> |
getWorkflowRequestTasks(java.lang.Long pWorkflowRequestId)
Gets Task details based on workflow request id.
|
java.util.List<FlxWorkItemFieldDataDataObject> |
getWorkItemFieldData(java.lang.String pWorkItemNumber)
Returns List of work item field details for work item number.
|
java.util.List<WorkItemDataObject> |
getWorkItemsForAllExecutions(java.lang.Long pSnapshotId,
java.lang.Long pEnvironmentId)
Gets Work Item details associated with all execution for given snapshort and environment.
|
java.util.List<WorkItemDataObject> |
getWorkItemsForFailedExecutions(java.lang.Long pSnapshotId,
java.lang.Long pEnvironmentId)
Gets Work Item details associated with failed execution for given snapshort and environment.
|
java.util.List<WorkItemDataObject> |
getWorkItemsForSnapshotVersions(java.lang.Long pSnapshotId)
Gets Work Item details associated with snapshort versions.
|
java.util.List<WorkItemDataObject> |
getWorkItemsForSuccessfulExecutions(java.lang.Long pSnapshotId,
java.lang.Long pEnvironmentId)
Gets Work Item details associated with successful execution for given snapshort and environment.
|
java.lang.String |
getWorkItemStatus(WorkItemDataObject pWorkItem)
Gets Work Item Status.
|
java.util.List<FlxWorkItemStatusDataObject> |
getWorkItemStatuses()
Gets the work item statuses.
|
java.util.List<FlxWorkItemTypeDataObject> |
getWorkItemTypes()
Gets the work item types.
|
void |
inactivateBranch(java.lang.Long pProjectId,
java.lang.String pBranchName)
Inactivates a project stream using AM method to patch stream
|
void |
inactivateStream(java.lang.Long pProjectId,
java.lang.String pStreamName)
Inactivates a project stream using AM method to patch stream
|
boolean |
isBotUsername(java.lang.String pUsername)
Return whether an username (case-insensitive) is a FlexDeploy bot username and not a FlexDeploy user.
|
java.lang.String |
parseWorkItemRichText(java.lang.String pWorkItemRichText)
Parse Rich Text to retrieve raw text.
|
void |
patchBranch(java.lang.Long pProjectId,
java.lang.Long pBranchId,
ProjectStreamDataObject pBranch)
Patches a FlexDeploy Branch on a given project.
|
CredentialDataObject |
patchCredential(CredentialDataObject pCredentialDataObject)
Update Credential with the provided data.
|
EndpointDataObject |
patchEndpoint(EndpointDataObject pEndpointDataObject)
Update Endpoint with the provided data.
|
EnvironmentDataObject |
patchEnvironment(EnvironmentDataObject pEnvDataObject)
Update Environment with the provided data.
|
FlxWorkItemFieldDataObject |
patchFlxWorkItemField(FlxWorkItemFieldDataObject pPojo)
Patches a Flex Work Item Field with the provided data.
|
PropertyKeyGroupDataObject |
patchFlxWorkItemFieldGroup(PropertyKeyGroupDataObject pDobj)
Patches a Flex Work Item Field Group with the provided data.
|
FolderDataObject |
patchFolder(FolderDataObject pFolderDataObject)
Update Folder with the provided data.
|
FdGroupDataObject |
patchGroup(FdGroupDataObject pGroupDataObject)
Update Group with the provided data.
|
java.lang.Long |
patchProject(java.lang.Long pProjectId,
ProjectPojo pProjectPojo)
Updates a project with the provided data.
|
java.lang.Long |
patchProjectProperties(java.lang.Long pProjectId,
java.util.List<PropertyValuePojo> pPropertyPojos)
Updates a project's properties with the provided data.
|
ProjectTriggerDataObject |
patchProjectTrigger(ProjectTriggerDataObject pPojo)
Updates a project trigger with the provided data.
|
PropertyKeyDefinitionDataObject |
patchPropertyKeyDefinition(PropertyKeyDefinitionDataObject pPojo)
updates a property key definition with the provided data.
|
void |
patchStream(java.lang.Long pProjectId,
java.lang.Long pStreamId,
ProjectStreamDataObject pStream)
Patches a FlexDeploy Stream on a given project.
|
TargetGroupDataObject |
patchTargetGroup(TargetGroupDataObject pTargetGroupDataObj)
Update TargetGroup with the provided data.
|
FdUserDataObject |
patchUser(FdUserDataObject pUserDataObject)
Update User with the provided data.
|
FlxWorkItemDataObject |
patchWorkItem(FlxWorkItemDataObject pPojo)
Patches a work item with the provided data.
|
FlxWorkItemCommentDataObject |
patchWorkItemComment(java.lang.String pWorkItemCommentId,
java.lang.String pComment)
Update a work item comment with the provided data.
|
java.lang.Integer |
populateFiles(java.lang.Long pProjectId,
java.lang.Long pStreamId)
Deprecated.
|
java.util.List<FlxWorkItemFieldDataObject> |
saveFlxWorkItemFields(java.util.List<FlxWorkItemFieldDataObject> pPojos,
java.lang.String pGroupCode)
Updates all Flex Work Item Fields within a group.
|
java.util.List<FlxWorkItemFieldDataDataObject> |
saveWorkItemFieldData(java.lang.String pWorkItemNumber,
java.lang.String pFieldName,
java.io.Serializable pValue)
Saves work item field data on given work item number, field name and value.
|
PaginatedResponse<ProjectStreamDataObject> |
searchBranches(ProjectStreamDataObject pCriteriaObject,
java.lang.Integer pLimit,
java.lang.Integer pOffset)
Find Branches using criteria values provided.
|
PaginatedResponse<CredentialDataObject> |
searchCredentials(CredentialDataObject pCriteriaObject,
java.lang.Integer pLimit,
java.lang.Integer pOffset)
Find Credentials using criteria values provided.
|
PaginatedResponse<EndpointDataObject> |
searchEndpoints(EndpointDataObject pCriteriaObject,
java.lang.Integer pLimit,
java.lang.Integer pOffset)
Find Endpoints using criteria values provided.
|
PaginatedResponse<EnvironmentDataObject> |
searchEnvironments(EnvironmentDataObject pCriteriaObject,
java.lang.Integer pLimit,
java.lang.Integer pOffset)
Find Environments using criteria values provided.
|
PaginatedResponse<PropertyKeyGroupDataObject> |
searchFlxWorkItemFieldGroups(PropertyKeyGroupDataObject pCriteriaObject,
java.lang.Integer pLimit,
java.lang.Integer pOffset)
Returns a list of Flex Work Item Field Groups based on criteria values provided.
|
PaginatedResponse<FlxWorkItemFieldDataObject> |
searchFlxWorkItemFields(FlxWorkItemFieldDataObject pCriteriaObject,
java.lang.Integer pLimit,
java.lang.Integer pOffset)
Returns a list of Flex Work Item Fields based on criteria values provided.
|
PaginatedResponse<FlxWorkItemDataObject> |
searchFlxWorkItems(FlxWorkItemDataObject pCriteriaObject,
java.lang.Integer pLimit,
java.lang.Integer pOffset)
Returns a list of Flex Work Items based on criteria values provided.
|
PaginatedResponse<FlxWorkItemStatusDataObject> |
searchFlxWorkItemStatuses(FlxWorkItemStatusDataObject pCriteriaObject,
java.lang.Integer pLimit,
java.lang.Integer pOffset)
Returns a list of Flex Work Item Statuses based on criteria values provided.
|
PaginatedResponse<FlxWorkItemTypeDataObject> |
searchFlxWorkItemTypes(FlxWorkItemTypeDataObject pCriteriaObject,
java.lang.Integer pLimit,
java.lang.Integer pOffset)
Returns a list of Flex Work Item Types based on criteria values provided.
|
PaginatedResponse<FolderDataObject> |
searchFolders(FolderDataObject pCriteriaObject,
java.lang.Integer pLimit,
java.lang.Integer pOffset)
Find Folders using criteria values provided.
|
PaginatedResponse<FdGroupDataObject> |
searchGroups(FdGroupDataObject pGroupObject,
java.lang.Integer pLimit,
java.lang.Integer pOffset)
Find Groups using criteria values provided.
|
PaginatedResponse<ProjectPackageDataObject> |
searchProjectPackages(ProjectPackageDataObject pCriteriaObject,
java.lang.Integer pLimit,
java.lang.Integer pOffset)
Find Packages using criteria values provided.
|
PaginatedResponse<ProjectDataObject> |
searchProjects(ProjectDataObject pCriteriaObject,
java.lang.Integer pLimit,
java.lang.Integer pOffset)
Find Projects using criteria values provided.
|
PaginatedResponse<ProjectTriggerDataObject> |
searchProjectTriggers(ProjectTriggerDataObject pCriteriaObject,
java.lang.Integer pLimit,
java.lang.Integer pOffset)
Find Project Triggers using criteria values provided.
|
PaginatedResponse<ProjectVersionDataObject> |
searchProjectVersions(ProjectVersionDataObject pParameters,
java.lang.Integer pLimit,
java.lang.Integer pOffset)
Find Project Versions using criteria values provided.
|
PaginatedResponse<PropertyKeyDefinitionDataObject> |
searchPropertyKeyDefinitions(PropertyKeyDefinitionDataObject pSearchParams,
java.lang.Integer pLimit,
java.lang.Integer pOffset)
Searches for property key definitions based on the provided search parameters and pagination input.
|
PaginatedResponse<PropertySetDataObject> |
searchPropertySets(PropertySetDataObject pSearchParams,
java.lang.Integer pLimit,
java.lang.Integer pOffset)
Searches for property set based on the provided search parameters and pagination input.
|
PaginatedResponse<TargetGroupDataObject> |
searchTargetGroups(TargetGroupDataObject pCriteriaObject,
java.lang.Integer pLimit,
java.lang.Integer pOffset)
Find TargetGroups using criteria values provided.
|
PaginatedResponse<FdUserDataObject> |
searchUsers(FdUserDataObject pUserObject,
java.lang.Integer pLimit,
java.lang.Integer pOffset)
Find Users using criteria values provided.
|
void |
unassignGroupFromUser(java.lang.Long pGroupId,
java.lang.Long pUserId)
Unassigns Group from User with the provided data.
|
void |
unassignGroupFromUser(java.lang.String pGroupName,
java.lang.String pUserName)
Unassigns Group from User with the provided data.
|
void |
updateBranch(java.lang.Long pProjectId,
java.lang.Long pBranchId,
ProjectStreamPojo pBranch)
Updates a FlexDeploy Branch on a given project.
|
CredentialDataObject |
updateCredential(CredentialDataObject pCredentialDataObject)
Update Credential with the provided data.
|
EndpointDataObject |
updateEndpoint(EndpointDataObject pEndpointDataObject)
Update Endpoint based on the Endpoint details.
|
EnvironmentDataObject |
updateEnvironment(EnvironmentDataObject pEnvDataObject)
Update Environment based on the Environment details.
|
FlxWorkItemFieldDataObject |
updateFlxWorkItemField(FlxWorkItemFieldDataObject pDobj)
Updates Flex work item field based on the Flex work item field details.
|
PropertyKeyGroupDataObject |
updateFlxWorkItemFieldGroup(PropertyKeyGroupDataObject pDobj)
Updates Flex work item field group based on the Flex work item field group details.
|
FolderDataObject |
updateFolder(FolderDataObject pFolderDataObject)
Update Folder based on the Folder details.
|
FdGroupDataObject |
updateGroup(FdGroupDataObject pGroupDataObject)
Update Group based on the Group details.
|
void |
updatePackage(java.lang.Long pProjectId,
java.lang.String pPackageName,
java.lang.Long pStreamId,
PollingResult pPollingResult)
Updates a given package relative to a PollingResult.
|
void |
updatePackage(java.lang.Long pProjectId,
java.lang.String pPackageName,
java.lang.Long pStreamId,
PollingResult pPollingResult,
boolean pSortFiles)
Updates a given package relative to a PollingResult.
|
void |
updatePackageStatus(java.lang.Long pProjectId,
java.lang.String pPackageName,
java.lang.String pPackageStatus)
Updates a given package status.
|
java.lang.Long |
updateProject(java.lang.Long pProjectId,
ProjectPojo pProjectPojo)
Updates a project with the provided data.
|
java.lang.Long |
updateProjectProperties(java.lang.Long pProjectId,
java.util.List<PropertyValuePojo> pPropertyPojos)
Updates a project's properties with the provided data.
|
ProjectTriggerDataObject |
updateProjectTrigger(ProjectTriggerDataObject pPojo)
Updates Project Trigger based on the project trigger details.
|
PropertyKeyDefinitionDataObject |
updatePropertyKeyDefinition(PropertyKeyDefinitionDataObject pPojo)
Updates a property key definition with the provided data.
|
void |
updateScanResult(java.lang.Long pProjectId,
java.lang.String pScanId,
ScanResultPojo pScanResultPojo,
boolean pIsStatusSuccess)
Updates a FlexDeploy ScanResult on a given project.
|
java.lang.Long |
updateSCMInstance(java.lang.Long pSCMInstanceId,
SCMInstancePojo pSCMInstancePojo)
Updates an SCM instance with the given data.
|
java.lang.Long |
updateSCMInstance(java.lang.Long pSCMInstanceId,
java.lang.String pSCMInstanceName,
java.lang.String pDescription,
java.lang.Boolean pIsActive,
java.lang.String pInstanceCode,
java.util.List<PropertyValuePojo> pProperties,
java.lang.String pSCMType)
Updates an SCM instance with the given data.
|
void |
updateStream(java.lang.Long pProjectId,
java.lang.Long pStreamId,
ProjectStreamPojo pStream)
Updates a FlexDeploy Stream on a given project.
|
TargetGroupDataObject |
updateTargetGroup(TargetGroupDataObject pTargetGroupDataObj)
Update TargetGroup based on the TargetGroup details.
|
FdUserDataObject |
updateUser(FdUserDataObject pUserDataObject)
Update User based on the User details.
|
PropertySetDataObject |
updateWorkflowPropertySet(PropertySetDataObject pPropertySet)
Updates a property set with the provided data.
|
FlxWorkItemDataObject |
updateWorkItem(FlxWorkItemDataObject pPojo)
Updates work item based on the work item details.
|
FlxWorkItemDataObject |
updateWorkItemAssignee(java.lang.String pWorkItemNumber,
java.lang.String pUserName)
Updates a work item Assignee.
|
FlxWorkItemDataObject |
updateWorkItemStatus(java.lang.String pWorkItemNumber,
java.lang.String pStatusName)
Updates a work item status.
|
FlxWorkItemDataObject |
updateWorkItemType(java.lang.String pWorkItemNumber,
java.lang.String pTypeCode)
Updates a work item Type.
|
decryptIntegrationInstance, doSimpleGet, findIntegrationInstanceByCode, getLogFunctions, getServerBaseUrl, setScriptRef
public FlexDeploy2Functions()
public FlexDeploy2Functions(boolean isExecute, LogFunctions pFLOG)
public PollingResult findLocalChangeLogs(java.lang.String pUrl, java.lang.String pBranch, java.lang.String pCurrentRevision, java.lang.String pFromRevision) throws FlexCheckedException
findLocalChangeLogs
findLocalChangeLogs
in interface IFlexDeployFunctions
pUrl
- Url of the git repository to find logs againstpBranch
- Branch to find logs againstpCurrentRevision
- Current revision after the pushpFromRevision
- Previous revision before the pushFlexDeployValidationException
- if an invalid revision is passed.FlexCheckedException
public PollingResult findLocalChangeLogs(java.lang.String pUrl, java.lang.String pBranch, java.lang.String pCurrentRevision, java.lang.String pFromRevision, boolean pIgnoreTargetBranchMerge) throws FlexCheckedException
findLocalChangeLogs
findLocalChangeLogs
in interface IFlexDeployFunctions
pUrl
- Url of the git repository to find logs againstpBranch
- Branch to find logs againstpCurrentRevision
- Current revision after the pushpFromRevision
- Previous revision before the pushpIgnoreTargetBranchMerge
- Exclude commits that were merged from the target branch into this branch. When using git flow this will ignore merges
done from the target branch 'develop' into your feature branch. Default value is trueFlexDeployValidationException
- if an invalid revision is passed.FlexCheckedException
public PollingResult findLocalChangeLogs(java.lang.String pUrl, java.lang.String pBranch, java.lang.String pCurrentRevision, java.lang.String pFromRevision, java.lang.String pUser, java.lang.String pPassword) throws FlexCheckedException
findLocalChangeLogs
in interface IFlexDeployFunctions
pUrl
- Url of the git repository to find logs againstpBranch
- Branch to find logs againstpCurrentRevision
- Current revision after the pushpFromRevision
- Previous revision before the pushpUser
- User to use for local credentialspPassword
- Password of the userFlexDeployValidationException
- if an invalid revision is passed.FlexCheckedException
public PollingResult findLocalChangeLogs(java.lang.String pUrl, java.lang.String pBranch, java.lang.String pCurrentRevision, java.lang.String pFromRevision, java.lang.String pUser, java.lang.String pPassword, boolean pIgnoreTargetBranchMerge) throws FlexCheckedException
findLocalChangeLogs
findLocalChangeLogs
in interface IFlexDeployFunctions
pUrl
- Url of the git repository to find logs againstpBranch
- Branch to find logs againstpCurrentRevision
- Current revision after the pushpFromRevision
- Previous revision before the pushpUser
- User to use for local credentialspPassword
- Password of the userpIgnoreTargetBranchMerge
- Exclude commits that were merged from the target branch into this branch. When using git flow this will ignore merges
done from the target branch 'develop' into your feature branch. Default value is trueFlexDeployValidationException
- if an invalid revision is passed.FlexCheckedException
public ProjectPojo getProject(java.lang.Long pProjectId) throws FlexDeployRowNotFoundException
getProject
in interface IFlexDeployFunctions
pProjectId
- Project Id of the project to retrieveFlexDeployRowNotFoundException
- if no project is found for given pProjectId
public java.lang.Long createProject(ProjectPojo pProjectPojo)
createProject
in interface IFlexDeployFunctions
pProjectPojo
- - Object containing project configuration information.public java.lang.Long updateProject(java.lang.Long pProjectId, ProjectPojo pProjectPojo)
updateProject
in interface IFlexDeployFunctions
pProjectId
- - Id of the project that is to be updated.pProjectPojo-
- Object containing project configuration information.FlexDeployRowNotFoundException
- if pProjectId
does not exist.public java.lang.Long patchProject(java.lang.Long pProjectId, ProjectPojo pProjectPojo)
patchProject
in interface IFlexDeployFunctions
pProjectId
- - Id of the project that is to be updated.pProjectPojo-
- Object containing project configuration information.FlexDeployRowNotFoundException
- if pProjectId
does not exist.public java.lang.Long updateProjectProperties(java.lang.Long pProjectId, java.util.List<PropertyValuePojo> pPropertyPojos)
updateProjectProperties
in interface IFlexDeployFunctions
pProjectId
- - Id of the project that is to be updated.pPropertyPojos
- - List of property values to be updated on project.public java.lang.Long patchProjectProperties(java.lang.Long pProjectId, java.util.List<PropertyValuePojo> pPropertyPojos)
patchProjectProperties
in interface IFlexDeployFunctions
pProjectId
- - Id of the project that is to be updated.pPropertyPojos
- - List of property values to be updated on project.public void addFilesToPackage(java.lang.Long pProjectId, java.lang.String pPackageName, java.util.List<java.lang.String> pFiles) throws FlexDeployRowNotFoundException
addFilesToPackage
in interface IFlexDeployFunctions
pProjectId
- Parent project id of the packagepPackageName
- Name of the packagepFiles
- Filepaths to add to the package.FlexDeployRowNotFoundException
- if pPackageName
does not exist on project pProjectId
.@Deprecated public java.lang.Integer populateFiles(java.lang.Long pProjectId, java.lang.Long pStreamId)
populateFiles
in interface IFlexDeployFunctions
pProjectId
- Project id to populate files for. This should be a project using partial deployment.pStreamId
- Stream id to use when populating.FlexDeployAPIException
- if it is message wrapper error.findStreamId(java.lang.Long, java.lang.String)
public java.lang.Integer discoverFiles(java.lang.Long pProjectId, java.lang.Long pStreamId)
discoverFiles
in interface IFlexDeployFunctions
pProjectId
- Project id to populate files for. This should be a project using partial deployment.pStreamId
- Stream id to use when populating.FlexDeployAPIException
- if it is message wrapper error.findStreamId(java.lang.Long, java.lang.String)
public void updatePackageStatus(java.lang.Long pProjectId, java.lang.String pPackageName, java.lang.String pPackageStatus)
updatePackageStatus
in interface IFlexDeployFunctions
pProjectId
- Parent project id of the packagepPackageName
- Name of the packagepPackageStatu}
- The updated package status [ACTIVE, COMPLETED, or INACTIVE]FlexDeployRowNotFoundException
- if pProjectId
is not found or pPackageName
doesnt exist on projectFlexDeployValidationException
- if pPackageStatus
is invalidpublic void updatePackage(java.lang.Long pProjectId, java.lang.String pPackageName, java.lang.Long pStreamId, PollingResult pPollingResult)
addFilesToPackage
method.
This function will automatically populate files if new files are detected.
Files added to this package are always added to the end of the list.updatePackage
in interface IFlexDeployFunctions
pProjectId
- Parent project id of the packagepPackageName
- Name of the packagepStreamId
- Stream to use when populating files if new files are foundpPollingResult
- PollingResult object to use for finding differencesFlexDeployRowNotFoundException
- if pProjectId
is not found or pPackageName
doesnt exist on projectFlexDeployValidationException
- if project other than SCM Type GIT is invalid.BitbucketFunctions.getChangeLogs(java.lang.Object, java.lang.String, java.lang.String)
,
GithubFunctions.getChangeLogs(java.lang.Object)
public void updatePackage(java.lang.Long pProjectId, java.lang.String pPackageName, java.lang.Long pStreamId, PollingResult pPollingResult, boolean pSortFiles)
addFilesToPackage
method.
This function will automatically populate files if new files are detected.
The files in this package can optionally be sorted by their project files sequence number.updatePackage
in interface IFlexDeployFunctions
pProjectId
- Parent project id of the packagepPackageName
- Name of the packagepStreamId
- Stream to use when populating files if new files are foundpPollingResult
- PollingResult object to use for finding differencespSortFiles
- Sort package files after updateFlexDeployRowNotFoundException
- if pProjectId
is not found or pPackageName
doesnt exist on projectFlexDeployValidationException
- if project other than SCM Type GIT is invalid.BitbucketFunctions.getChangeLogs(java.lang.Object, java.lang.String, java.lang.String)
,
GithubFunctions.getChangeLogs(java.lang.Object)
public java.lang.Long createPackage(java.lang.Long pProjectId, java.lang.String pPackageName, java.lang.String pDescription, java.util.List<java.lang.String> pFiles)
createPackage
in interface IFlexDeployFunctions
pProjectId
- Parent project id to create package under.pPackageName
- Package name to use.pDescription
- Description to give the package.pFiles
- List of files to add to the package. File paths should be as they appear in the File Catalog of the project.public java.lang.Long createDynamicPackage(java.lang.Long pProjectId, java.lang.String pPackageName, java.lang.String pDescription, java.lang.String pIncludePath, java.lang.String pExcludePath)
createDynamicPackage
in interface IFlexDeployFunctions
pProjectId
- Parent project id to create package under.pPackageName
- Package name to use.pDescription
- Description to give the package.pIncludePath
- files to be included in the package.pExcludePath
- files to be excluded in the package.public java.lang.Long createPackage(java.lang.Long pProjectId, java.lang.String pPackageName, java.lang.String pDescription, java.lang.Long pStreamId, PollingResult pPollingResult)
createPackage
in interface IFlexDeployFunctions
pProjectId
- Parent project id of the packagepPackageName
- Name of the packagepDescription
- Description to give the package.pPollingResult
- PollingResult object to use for finding differencesFlexDeployRowNotFoundException
- if pProjectId
is not found or pPackageName
doesnt exist on projectFlexDeployValidationException
- if project pProjectId
is invalid,BitbucketFunctions.getChangeLogs(java.lang.Object, java.lang.String, java.lang.String)
,
GithubFunctions.getChangeLogs(java.lang.Object)
public void deletePackage(java.lang.Long pProjectId, java.lang.String pPackageName)
deletePackage
in interface IFlexDeployFunctions
pProjectId
- Parent project id package is under.pPackageName
- Name of package to delete.FlexDeployOptimisticLockException
- if another user updated or deleted row.public java.lang.Long buildPackage(java.lang.Long pStreamId, ProjectPackagePojo projectPackage)
PollingResult variant
buildPackage
in interface IFlexDeployFunctions
pStreamId
- Stream to use when building package. See findStreamId
.projectPackage
- Wrapper object containing project id and package name to build.FlexDeployRowNotFoundException
- if pStreamId
not found in project.
if no row found for project.
if default build environment not foundFlexDeployValidationException
- if requested project is a utility project.
if requested project is not active.
if no build workflow or target group mapped for the project.public java.lang.Long buildPackage(java.lang.Long pStreamId, ProjectPackagePojo projectPackage, BuildOptions pBuildOptions)
PollingResult variant
buildPackage
in interface IFlexDeployFunctions
pStreamId
- Stream to use when building package. See findStreamId
.projectPackage
- Wrapper object containing project id and package name to build.pBuildOptions
- Additional build object where optional options can be set.FlexDeployRowNotFoundException
- if pStreamId
not found in project.
if no row found for project.
if default build environment not foundFlexDeployValidationException
- if requested project is a utility project.
if requested project is not active.
if no build workflow or target group mapped for the project.public java.lang.Long buildPackage(java.lang.Long pStreamId, ProjectPackagePojo projectPackage, PollingResult pPollingResult)
buildPackage
in interface IFlexDeployFunctions
pStreamId
- Stream to use when building package. See findStreamId
.projectPackage
- Wrapper object containing project id and package name to build.pPollingResult
- PollingResult object containing change logs and committer information.FlexDeployRowNotFoundException
- if pStreamId
not found in project.
if no row found for project.
if default build environment not foundFlexDeployValidationException
- if requested project is a utility project.
if requested project is not active.
if no build workflow or target group mapped for the project.BitbucketFunctions.getChangeLogs(java.lang.Object, java.lang.String, java.lang.String)
,
GithubFunctions.getChangeLogs(java.lang.Object)
public java.lang.Long buildPackage(java.lang.Long pStreamId, ProjectPackagePojo projectPackage, PollingResult pPollingResult, BuildOptions pBuildOptions)
buildPackage
in interface IFlexDeployFunctions
pStreamId
- Stream to use when building package. See findStreamId
.projectPackage
- Wrapper object containing project id and package name to build.pPollingResult
- PollingResult object containing change logs and committer information.pBuildOptions
- Additional build object where optional options can be set.FlexDeployRowNotFoundException
- if pStreamId
not found in project.
if no row found for project.
if default build environment not foundFlexDeployValidationException
- if requested project is a utility project.
if requested project is not active.
if no build workflow or target group mapped for the project.BitbucketFunctions.getChangeLogs(java.lang.Object, java.lang.String, java.lang.String)
,
GithubFunctions.getChangeLogs(java.lang.Object)
public java.lang.Long buildProject(java.lang.Long pStreamId, java.lang.Long pProjectId)
PollingResult variant
buildProject
in interface IFlexDeployFunctions
pStreamId
- Stream to use when building project. See findStreamId
.pProjectId
- Project id to build.FlexDeployRowNotFoundException
- if pStreamId
not found in project.
if no row found for project.
if default build environment not foundFlexDeployValidationException
- if requested project is a utility project.
if requested project is not active.
if no build workflow or target group mapped for the project.public java.lang.Long buildProject(java.lang.Long pStreamId, java.lang.Long pProjectId, BuildOptions pBuildOptions)
PollingResult variant
buildProject
in interface IFlexDeployFunctions
pStreamId
- Stream to use when building project. See findStreamId
.pProjectId
- Project id to build.pBuildOptions
- Additional build object where optional options can be set.FlexDeployRowNotFoundException
- if pStreamId
not found in project.
if no row found for project.
if default build environment not foundFlexDeployValidationException
- if requested project is a utility project.
if requested project is not active.
if no build workflow or target group mapped for the project.public java.lang.Long buildProject(java.lang.Long pStreamId, java.lang.Long pProjectId, PollingResult pPollingResult)
buildProject
in interface IFlexDeployFunctions
pStreamId
- Stream to use when building project. See findStreamId
.pProjectId
- Project id to build.pPollingResult
- PollingResult object containing change logs and committer information.FlexDeployRowNotFoundException
- if pStreamId
not found in project.
if no row found for project.
if default build environment not foundFlexDeployValidationException
- if requested project is a utility project.
if requested project is not active.
if no build workflow or target group mapped for the project.BitbucketFunctions.getChangeLogs(java.lang.Object, java.lang.String, java.lang.String)
,
GithubFunctions.getChangeLogs(java.lang.Object)
public java.lang.Long buildProject(java.lang.Long pStreamId, java.lang.Long pProjectId, PollingResult pPollingResult, BuildOptions pBuildOptions)
buildProject
in interface IFlexDeployFunctions
pStreamId
- Stream to use when building project. See findStreamId
.pProjectId
- Project id to build.pPollingResult
- PollingResult object containing change logs and committer information.pBuildOptions
- Additional build object where optional options can be set.Long
WorkflowRequest idFlexDeployRowNotFoundException
- if pStreamId
not found in project.
if no row found for project.
if default build environment not foundFlexDeployValidationException
- if requested project is a utility project.
if requested project is not active.
if no build workflow or target group mapped for the project.BitbucketFunctions.getChangeLogs(java.lang.Object, java.lang.String, java.lang.String)
,
GithubFunctions.getChangeLogs(java.lang.Object)
public java.lang.Long deployPackage(java.lang.Long pProjectId, java.lang.String pPackageName, java.lang.String pEnvironmentCode, DeployOptions pDeployOptions)
deployPackage
in interface IFlexDeployFunctions
pProjectId
- Project id to deploy.pPackageName
- Name of packagepEnvironmentCode
- Code of the enviornment.pDeployOptions
- Additional deploy object where optional options can be set.FlexDeployRowNotFoundException
- if no row found for pProjectId
.
if no row found for pEnvironmentCode
.
if no row found for pPackageName
.FlexDeployValidationException
- if pEnvironmentCode
is missing.
if requested project is a utility project.
if requested project is not active.
if no deploy workflow or target group mapped for the project.
if package name given for standard project.public java.lang.Long deployProject(java.lang.Long pProjectId, java.lang.String pEnvironmentCode, DeployOptions pDeployOptions)
deployProject
in interface IFlexDeployFunctions
pProjectId
- Project id to deploy.pEnvironmentCode
- Code of the enviornment.pDeployOptions
- Additional deploy object where optional options can be set.FlexDeployRowNotFoundException
- if no row found for pProjectId
.
if no row found for pEnvironmentCode
.FlexDeployValidationException
- if pEnvironmentCode
is missing.
if requested project is a utility project.
if requested project is not active.
if no deploy workflow or target group mapped for the project.public java.util.Set<java.lang.Long> findProjectsForNewBranch(java.lang.String pRepositoryName)
findProjectsForNewBranch
in interface IFlexDeployFunctions
pRepositoryName
- Git repository name with the change. Name is of the form (username/repo). e.g. toddmotto/public-apispublic java.util.Set<java.lang.Long> findProjectsForNewBranch(java.lang.String pRepositoryName, PollingResult pPollingResult)
findProjectsForNewBranch
.
This function currently only compares against Git repositories and is not compatible with other scm types.findProjectsForNewBranch
in interface IFlexDeployFunctions
pRepositoryName
- Git repository name with the change. Name is of the form (username/repo). e.g. toddmotto/public-apispPollingResult
- PollingResult object for determining relevant projects.BitbucketFunctions.getChangeLogs(java.lang.Object, java.lang.String, java.lang.String)
,
GithubFunctions.getChangeLogs(java.lang.Object)
public java.util.Set<java.lang.Long> findProjectsForChange(java.lang.String pRepositoryName, java.lang.String pStreamName, PollingResult pPollingResult)
findProjectsForChange
in interface IFlexDeployFunctions
pRepositoryName
- Git repository name with the change. Name is of the form (username/repo). e.g. toddmotto/public-apispStreamName
- Stream/branch name for which the change occurred. e.g. 'master'pPollingResult
- PollingResult object for determining relevant projects.BitbucketFunctions.getChangeLogs(java.lang.Object, java.lang.String, java.lang.String)
,
GithubFunctions.getChangeLogs(java.lang.Object)
public java.util.Set<java.lang.Long> findProjectsForChange(java.lang.String pRepositoryName, java.lang.String pStreamName, java.util.List<java.lang.String> pChangedFiles)
findProjectsForChange
in interface IFlexDeployFunctions
pRepositoryName
- Git repository name with the change. Name is of the form (username/repo). e.g. toddmotto/public-apispStreamName
- Stream/branch name for which the change occurred. e.g. 'master'pChangedFiles
- List of changed files from a push event. If no files are passed then all projects using given repository will be returned.BitbucketFunctions.getChangeLogs(java.lang.Object, java.lang.String, java.lang.String)
,
GithubFunctions.getChangeLogs(java.lang.Object)
public java.util.Set<ProjectPackagePojo> findPackagesForChange(java.lang.String pRepositoryName, java.lang.String pStreamName, PollingResult pPollingResult)
findPackagesForChange
in interface IFlexDeployFunctions
pRepositoryName
- Git repository name with the change. Name is of the form (username/repo). e.g. toddmotto/public-apispStreamName
- Stream/branch name for which the change occurred. e.g. 'master'pPollingResult
- PollingResult object for determining relevant packages.BitbucketFunctions.getChangeLogs(java.lang.Object, java.lang.String, java.lang.String)
,
GithubFunctions.getChangeLogs(java.lang.Object)
public java.util.Set<ProjectPackagePojo> findPackagesForChange(java.lang.String pRepositoryName, java.lang.String pStreamName, java.util.List<java.lang.String> pChangedFiles)
findPackagesForChange
in interface IFlexDeployFunctions
pRepositoryName
- Git repository name with the change. Name is of the form (username/repo). e.g. toddmotto/public-apispStreamName
- Stream/branch name for which the change occurred. e.g. 'master'pChangedFiles
- List of changed files from a push event. If no files are passed then all packages using given repository will be returned.BitbucketFunctions.getChangeLogs(java.lang.Object, java.lang.String, java.lang.String)
,
GithubFunctions.getChangeLogs(java.lang.Object)
public java.lang.Long findProjectId(java.lang.String pProjectName)
findProjectId
in interface IFlexDeployFunctions
pProjectName
- Case sensitive project name to search byFlexDeployRowNotFoundException
- if no row found for pProjectName
.public ProjectDataObject findProjectWithId(java.lang.Long pProjectId)
findProjectWithId
in interface IFlexDeployFunctions
pProjectId-
- Id of Project to find.FlexDeployRowNotFoundException
- if no row found for pProjectId
.public java.util.List<ProjectDataObject> findProjectsWithName(java.lang.String pProjectName)
findProjectsWithName
in interface IFlexDeployFunctions
pProjectName
- Case insensitive project name to search bypublic PaginatedResponse<ProjectDataObject> searchProjects(ProjectDataObject pCriteriaObject, java.lang.Integer pLimit, java.lang.Integer pOffset)
searchProjects
in interface IFlexDeployFunctions
pCriteriaObject
- pLimit
- pOffset
- public java.lang.Long findBranchId(java.lang.Long pProjectId, java.lang.String pBranchName)
findBranchId
in interface IFlexDeployFunctions
pProjectId
- Project id on which the branch belongs.pBranchName
- Name of the branch. e.g. 'feature/JIRA-12', 'master'.FlexDeployRowNotFoundException
- if no row found for pBranchName
for pProjectId
.public java.lang.Long createBranch(java.lang.Long pProjectId, java.lang.String pBranchName, java.lang.String pVersionSyntax)
createBranch
in interface IFlexDeployFunctions
pProjectId
- Project to create the branch on.pBranchName
- Branch name to create.pVersionSyntax
- Version Syntax to use for the branch. For example: "1.0.mybranch." + SequenceNumber. Note that this is a groovy script and literal strings should be enclosed in quotes.public java.lang.Long createBranch(java.lang.Long pProjectId, ProjectStreamPojo pBranch)
createBranch
in interface IFlexDeployFunctions
pProjectId
- Project to create the branch on.pBranch
- ProjectStreamDataObject object representing the branch to create.public java.lang.Long createBranch(java.lang.Long pProjectId, java.lang.String pBranchName)
createBranch
in interface IFlexDeployFunctions
pProjectId
- Project to create the branch on.pBranchName
- Branch name to create.FlexCheckedException
public void updateBranch(java.lang.Long pProjectId, java.lang.Long pBranchId, ProjectStreamPojo pBranch)
updateBranch
in interface IFlexDeployFunctions
pProjectId
- Project to create the branch on.pBranchId
- Id of the branch to update.pBranch
- ProjectStreamPojo object representing the branch to update.FlexDeployRowNotFoundException
- if pBranchId
does not exist for pProjectId
.public void patchBranch(java.lang.Long pProjectId, java.lang.Long pBranchId, ProjectStreamDataObject pBranch)
patchBranch
in interface IFlexDeployFunctions
pProjectId
- Project to create the branch on.pBranchId
- Id of the branch to update.pBranch
- ProjectStreamDataObject object representing the branch to update.FlexDeployRowNotFoundException
- if pBranchId
does not exist for pProjectId
.public void inactivateBranch(java.lang.Long pProjectId, java.lang.String pBranchName)
inactivateBranch
in interface IFlexDeployFunctions
pProjectId
- pBranchName
- public void activateBranch(java.lang.Long pProjectId, java.lang.String pBranchName) throws FlexCheckedException
activateBranch
in interface IFlexDeployFunctions
pProjectId
- project id for which the branch belongs.pBranchName
- Branch name to inactivate.FlexCheckedException
public IntegrationInstancePojo findIntegrationInstance(java.lang.String pIntegrationInstanceCode, java.lang.String pType) throws FlexNotFoundException
findIntegrationInstance
in interface IFlexDeployFunctions
pIntegrationInstanceCode
- Code for the integration instace.pType
- Type of the integration instance. {SCM, TEST, ITS, CMS, CLOUD, ARTIFACTREPO, CISERVER, SCANTOOL, MESSAGING, OTHERTOOLS}.FlexNotFoundException
- if no integration instance found for passed code.public java.lang.Long createSCMInstance(java.lang.String pSCMInstanceName, java.lang.String pDescription, java.lang.Boolean pIsActive, java.lang.String pInstanceCode, java.util.List<PropertyValuePojo> pProperties, java.lang.String pSCMType)
createSCMInstance
in interface IFlexDeployFunctions
pSCMInstanceName
- - The unique name of the SCM instance.pDescription
- - The description of the SCM instance.pIsActive
- - Whether or not the SCM instance is active.pInstanceCode
- - The code of the SCM instance.pProperties
- - A list of objects containing the required property values for the specified SCM type. The objects must contain propertyName field as well as either propertyValue if the value is not encrypted or credentialId if the value is encrypted.pSCMType
- - The SCM type of the instance. Must be a valid source control management system. Possible values are SVN, GIT, CVS, TFVC, PERF, PVCS, FILE, or NONE.FlexDeployValidationException
- if an invalid value is passed in pSCMInstancePojo.public java.lang.Long createSCMInstance(SCMInstancePojo pSCMInstancePojo)
createSCMInstance
in interface IFlexDeployFunctions
pSCMInstancePojo
- - The object containing all of the required data for the SCM instance.FlexDeployValidationException
- if an invalid value is passed in pSCMInstancePojo.public java.lang.Long updateSCMInstance(java.lang.Long pSCMInstanceId, java.lang.String pSCMInstanceName, java.lang.String pDescription, java.lang.Boolean pIsActive, java.lang.String pInstanceCode, java.util.List<PropertyValuePojo> pProperties, java.lang.String pSCMType)
updateSCMInstance
in interface IFlexDeployFunctions
pSCMInstanceId
- - The Id of the instance to be updated.pSCMInstanceName
- - The unique name of the SCM instance.pDescription
- - The description of the SCM instance.pIsActive
- - Whether or not the SCM instance is active.",pInstanceCode
- - The code of the SCM instance.pProperties
- - A list of objects containing the required property values for the specified SCM type. The objects must contain propertyName field as well as either propertyValue if the value is not encrypted or credentialId if the value is encrypted.pSCMType
- - The SCM type of the instance. Must be a valid source control management system. Possible values are SVN, GIT, CVS, TFVC, PERF, PVCS, FILE, or NONE.FlexDeployValidationException
- if an invalid value is passed in pSCMInstancePojo.public java.lang.Long updateSCMInstance(java.lang.Long pSCMInstanceId, SCMInstancePojo pSCMInstancePojo)
updateSCMInstance
in interface IFlexDeployFunctions
pSCMInstanceId
- - The Id of the instance to be updated.pSCMInstancePojo
- - Object containing all of the required data for the SCM instance.FlexDeployValidationException
- if an invalid value is passed in pSCMInstancePojo.public IntegrationInstancePojo getIntegrationInstance(java.lang.Long pIntegrationInstanceId, java.lang.String pType)
getIntegrationInstance
in interface IFlexDeployFunctions
pIntegrationInstanceId
- Integration Instance id.pType
- Type of the integration instance. {SCM, TEST, ITS, CMS, CLOUD, ARTIFACTREPO, CISERVER, SCANTOOL, MESSAGING, OTHERTOOLS}.FlexDeployRowNotFoundException
- if no integration instance found for pIntegrationInstanceId
.public CMSInstancePojo findCMSInstance(java.lang.String pCMSInstanceCode)
findCMSInstance
in interface IFlexDeployFunctions
pCMSInstanceCode
- Code of the instance you wish to retrieve.FlexDeployRowNotFoundException
- if no instance found for pCMSInstanceCode
.public CMSInstancePojo getCMSInstance(java.lang.Long pCMSInstanceId)
getCMSInstance
in interface IFlexDeployFunctions
pCMSInstanceId
- Id of the instance you wish to retrieve.FlexDeployRowNotFoundException
- if no instance found for pCMSInstanceId
.public ChangeManagementSystem getChangeManagementSystemByInstanceCode(java.lang.String pInstanceCode)
getChangeManagementSystemByInstanceCode
in interface IFlexDeployFunctions
pInstanceCode
- Instance code to filter by.FlexDeployRowNotFoundException
- If no CMS instance was found given pCode
.public ChangeManagementSystem getChangeManagementSystemByInstanceName(java.lang.String pInstanceName)
getChangeManagementSystemByInstanceName
in interface IFlexDeployFunctions
pInstanceName
- Instance name to filter by.FlexDeployRowNotFoundException
- If no CMS instance was found givenpName
.public CMSObject createIncidentForWorklowRequest(java.lang.Long pWorkflowRequestId, java.util.Map<java.lang.String,java.io.Serializable> pIncidentFields, java.lang.String pCMSInstanceCode, java.lang.String pCMSInstanceName)
createIncidentForWorklowRequest
in interface IFlexDeployFunctions
pWorkflowRequestId
- Associated workflow request id .pIncidentFields
- Payload fields populated with key value to create an Incident.pCode
- Instance code to filter by.pName
- Instance name to filter by.public CMSObject createIncidentByWorkflowType(java.lang.Long pWorkflowRequestId, java.util.Map<java.lang.String,java.io.Serializable> pIncidentFields)
createIncidentByWorkflowType
in interface IFlexDeployFunctions
pWorkflowRequestId
- Associated workflow request id .pIncidentFields
- Payload fields populated with key value to create an Incident.public ChangeManagementSystem getChangeManagementSystemByInstanceId(java.lang.Long pCMSInstanceId)
getChangeManagementSystemByInstanceId
in interface IFlexDeployFunctions
pCMSInstanceId
- Instance id of the implementation you wish to retrieve.FlexDeployRowNotFoundException
- If no instance found for pCMSInstanceId
.public java.util.List<FDUser> getUsersFromGroupId(java.lang.Long pGroupId)
getUsersFromGroupId
in interface IFlexDeployFunctions
pGroupId
- FlexDeploy Group id to use.public void downloadLogs(java.lang.Long pWorkflowExecutionId, java.lang.String pDestinationPath)
downloadLogs
in interface IFlexDeployFunctions
pWorkflowExecutionId
- Workflow Execution Id to capture logs for.pDestinationPath
- The path where the log files folder will be saved.FlexDeployValidationException
- if pDestinationPath
is not provided.public java.util.Map<java.lang.Long,java.io.InputStream> getPluginLogInputStreams(java.lang.Long pWorkflowExecutionId)
getPluginLogInputStreams
in interface IFlexDeployFunctions
pWorkflowExecutionId
- Workflow Execution Id to capture logs for.public java.util.Map<java.lang.Long,java.io.InputStream> getPluginLogInputStreams(java.lang.Long pWorkflowExecutionId, java.lang.Boolean pOnlyError)
getPluginLogInputStreams
in interface IFlexDeployFunctions
pWorkflowExecutionId
- Workflow Execution Id to capture logs for.pOnlyError
- Return only the failed plugin log input stream, otherwise all plugin logs for the workflow will be returned.FlexCheckedException
public PackageDetailsResponsePojo getPackage(java.lang.Long pProjectId, java.lang.String pPackageName)
getPackage
in interface IFlexDeployFunctions
pProjectId
- Parent project id package is under.pPackageName
- Name of packageFlexDeployRowNotFoundException
- If no project package found for pProjectId
and pPackageName
.public java.util.Collection<PluginLogPojo> getPluginLogs(java.lang.Long pWorkflowExecutionId)
getPluginLogs
in interface IFlexDeployFunctions
pWorkflowExecutionId
- Workflow Execution Id to capture logs for.public java.lang.String getFlexDeployBaseUrl()
getFlexDeployBaseUrl
in interface IFlexDeployFunctions
public java.lang.String getGroovyKey()
getGroovyKey
in class BaseFunctions
public void cleanup()
cleanup
in class BaseFunctions
public java.lang.Long executeUtility(java.lang.Long pProjectId, java.lang.String pEnvironmentCode)
executeUtility
in interface IFlexDeployFunctions
pProjectId
- Project id to execute.pEnvironmentCode
- Environment code to use for the utility request.FlexDeployValidationException
- if pEnvironmentCode
is not provided.public java.lang.Long executeUtility(java.lang.Long pProjectId, java.lang.String pEnvironmentCode, ExecuteOptions pExecuteOptions)
executeUtility
in interface IFlexDeployFunctions
pProjectId
- Project id to execute.pEnvironmentCode
- Environment code to use for the utility request.pInstanceCode
- Instance code to use for the utility request.pExecuteOptions
- Execute options contains list of instances to execute on, with inputs and flexfieldsFlexDeployValidationException
- if pEnvironmentCode
is not provided.public java.lang.Long findFolderId(java.lang.String pFolderName)
findFolderId
in interface IFlexDeployFunctions
pFolderName
- Case sensitive folder name to search byFlexDeployRowNotFoundException
- If folder name is not found in FlexDeploypublic FolderDataObject findFolderWithId(java.lang.Long pFolderId)
findFolderWithId
in interface IFlexDeployFunctions
pFolderId
- public java.util.List<FolderDataObject> findFoldersWithName(java.lang.String pFolderName)
findFoldersWithName
in interface IFlexDeployFunctions
pFolderName
- Case insensitive project name to search bypublic PaginatedResponse<FolderDataObject> searchFolders(FolderDataObject pCriteriaObject, java.lang.Integer pLimit, java.lang.Integer pOffset)
searchFolders
in interface IFlexDeployFunctions
pCriteriaObject
- pLimit
- pOffset
- public PaginatedResponse<ProjectStreamDataObject> searchBranches(ProjectStreamDataObject pCriteriaObject, java.lang.Integer pLimit, java.lang.Integer pOffset)
searchBranches
in interface IFlexDeployFunctions
pCriteriaObject
- pLimit
- pOffset
- public FdUserDataObject getUser(java.lang.String pUsername)
getUser
in interface IFlexDeployFunctions
pUsername
- - Username of the user to retrieve.public java.lang.Long getCurrentlyDeployedVersionId(java.lang.Long pProjectId, java.lang.Long pEnvironmentId, java.lang.Long pInstanceId)
getCurrentlyDeployedVersionId
in interface IFlexDeployFunctions
pProjectId
- Project Id of the project to retrieve.pEnvironmentId
- - Id of the enviornment.pInstanceId
- - Id of the instance.public java.lang.Long getCurrentlyDeployedVersionId(java.lang.Long pProjectId, java.lang.Long pEnvironmentId, java.lang.Long pInstanceId, java.lang.String pPackageName)
getCurrentlyDeployedVersionId
in interface IFlexDeployFunctions
pProjectId
- Project Id of the project to retrieve.pEnvironmentId
- - Id of the enviornment.pInstanceId
- - Id of the instance.pPackageName
- - Name of the package.FlexDeployValidationException
- if pPackageName
is not provided.public java.lang.Long getPreviouslyDeployedVersionId(java.lang.Long pProjectId, java.lang.Long pEnvironmentId, java.lang.Long pInstanceId)
getPreviouslyDeployedVersionId
in interface IFlexDeployFunctions
pProjectId
- Project Id of the project to retrieve.pEnvironmentId
- - Id of the enviornment.pInstanceId
- - Id of the instance.public java.lang.Long getPreviouslyDeployedVersionId(java.lang.Long pProjectId, java.lang.Long pEnvironmentId, java.lang.Long pInstanceId, java.lang.String pPackageName)
getPreviouslyDeployedVersionId
in interface IFlexDeployFunctions
pProjectId
- Project Id of the project to retrieve.pEnvironmentId
- - Id of the enviornment.pInstanceId
- - Id of the instance.pPackageName
- - Name of the package.FlexDeployValidationException
- if pPackageName
is not provided.public java.lang.Long createStream(java.lang.Long pProjectId, ProjectStreamPojo pStream)
createStream
in interface IFlexDeployFunctions
pProjectId
- Project to create the stream on.pStream
- ProjectStreamDataObject object representing the stream to create.public java.lang.Long createStream(java.lang.Long pProjectId, java.lang.String pStreamName)
createStream
in interface IFlexDeployFunctions
pProjectId
- Project to create the stream on.pStreamName
- Stream name to create.FlexCheckedException
public java.lang.Long createStream(java.lang.Long pProjectId, java.lang.String pStreamName, java.lang.String pVersionSyntax)
createStream
in interface IFlexDeployFunctions
pProjectId
- Project to create the stream on.pStreamName
- Stream name to create.pVersionSyntax
- Version Syntax to use for the stream. For example: "1.0.mybranch." + SequenceNumber. Note that this is a groovy script and literal strings should be enclosed in quotes.public java.lang.Long findStreamId(java.lang.Long pProjectId, java.lang.String pStreamName)
findStreamId
in interface IFlexDeployFunctions
pProjectId
- Project id on which the stream belongs.pStreamName
- Name of the stream. e.g. 'feature/JIRA-12', 'master'.FlexDeployRowNotFoundException
- if no row found for pStreamName
for pProjectId
.public void inactivateStream(java.lang.Long pProjectId, java.lang.String pStreamName)
inactivateStream
in interface IFlexDeployFunctions
pProjectId
- pStreamName
- public void activateStream(java.lang.Long pProjectId, java.lang.String pStreamName) throws FlexCheckedException
activateStream
in interface IFlexDeployFunctions
pProjectId
- project id for which the stream belongs.pStreamName
- Stream name to inactivate.FlexCheckedException
public void patchStream(java.lang.Long pProjectId, java.lang.Long pStreamId, ProjectStreamDataObject pStream)
patchStream
in interface IFlexDeployFunctions
pProjectId
- Project to create the stream on.pStreamId
- Id of the stream to update.pStream
- ProjectStreamDataObject object representing the stream to update.FlexDeployRowNotFoundException
- if pStreamId
does not exist for pProjectId
.public void updateStream(java.lang.Long pProjectId, java.lang.Long pStreamId, ProjectStreamPojo pStream)
updateStream
in interface IFlexDeployFunctions
pProjectId
- Project to create the stream on.pStreamId
- Id of the stream to update.pStream
- ProjectStreamPojo object representing the stream to update.FlexDeployRowNotFoundException
- if pStreamId
does not exist for pProjectId
.public void updateScanResult(java.lang.Long pProjectId, java.lang.String pScanId, ScanResultPojo pScanResultPojo, boolean pIsStatusSuccess)
updateScanResult
in interface IFlexDeployFunctions
pProjectId
- Project to update the scan results.pScanId
- Id of the scan result to update.pScanResultPojo
- ScanResultPojo object representing the scanResult to update.pIsStatusSuccess
- is scan status success or not.public ScanResultPojo getScanResultForSonarqube(java.lang.String pBaseUrl, java.lang.String pProjectKey) throws FlexCheckedException
getScanResultForSonarqube
in interface IFlexDeployFunctions
pBaseUrl
- pProjectKey
- FlexCheckedException
public IssueTrackingSystem getIssueTrackingSystemByInstanceCode(java.lang.String pInstanceCode)
getIssueTrackingSystemByInstanceCode
in interface IFlexDeployFunctions
pInstanceCode
- Instance code of the implementation you wish to retrieve.FlexDeployRowNotFoundException
- If no instance found for pInstanceCode
.public IssueTrackingSystem getIssueTrackingSystemByInstanceName(java.lang.String pInstanceName)
getIssueTrackingSystemByInstanceName
in interface IFlexDeployFunctions
pInstanceName
- Instance Name of the implementation you wish to retrieve.FlexDeployRowNotFoundException
- If no instance found for pInstanceName
.public IssueTrackingSystem getIssueTrackingSystemByInstanceId(java.lang.Long pITSInstanceId)
getIssueTrackingSystemByInstanceId
in interface IFlexDeployFunctions
pITSInstanceId
- Instance id of the implementation you wish to retrieve.FlexDeployRowNotFoundException
- If no instance found for pITSInstanceId
.public java.lang.Long getMatchingProjectObjectId(java.lang.Long pProjectId, java.lang.String pFile)
getMatchingProjectObjectId
in interface IFlexDeployFunctions
pProjectId
- pFile
- public PaginatedResponse<ProjectPackageDataObject> searchProjectPackages(ProjectPackageDataObject pCriteriaObject, java.lang.Integer pLimit, java.lang.Integer pOffset)
searchProjectPackages
in interface IFlexDeployFunctions
pCriteriaObject
- pLimit
- pOffset
- public PaginatedResponse<EnvironmentDataObject> searchEnvironments(EnvironmentDataObject pCriteriaObject, java.lang.Integer pLimit, java.lang.Integer pOffset)
searchEnvironments
in interface IFlexDeployFunctions
pCriteriaObject
- pLimit
- pOffset
- public PaginatedResponse<TargetGroupDataObject> searchTargetGroups(TargetGroupDataObject pCriteriaObject, java.lang.Integer pLimit, java.lang.Integer pOffset)
searchTargetGroups
in interface IFlexDeployFunctions
pCriteriaObject
- pLimit
- pOffset
- public EnvironmentDataObject getEnvironmentById(java.lang.Long pEnvironmentId)
getEnvironmentById
in interface IFlexDeployFunctions
pEnvironmentId
- Environment id of the Environment to retriveFlexDeployRowNotFoundException
- If Environment not found for given pEnvironmentIdpublic EnvironmentDataObject getEnvironmentByCode(java.lang.String pEnvironmentCode)
getEnvironmentByCode
in interface IFlexDeployFunctions
pEnvironmentCode
- Environment code of the Environment to retriveFlexDeployRowNotFoundException
- If Environment not found for given pEnvironmentCodepublic EnvironmentDataObject getEnvironmentByName(java.lang.String pEnvironmentName)
getEnvironmentByName
in interface IFlexDeployFunctions
pEnvironmentName
- Environment name of the Environment to retriveFlexDeployRowNotFoundException
- If Environment not found for given pEnvironmentName
public TargetGroupDataObject getTargetGroupById(java.lang.Long pTargetGroupId)
getTargetGroupById
in interface IFlexDeployFunctions
pTargetGroupId
- FlexDeployRowNotFoundException
- If TargetGroup not found for given pTargetGroupIdpublic TargetGroupDataObject getTargetGroupByCode(java.lang.String pTargetGroupCode)
getTargetGroupByCode
in interface IFlexDeployFunctions
pTargetGroupCode
- FlexDeployRowNotFoundException
- If TargetGroup not found for given pTargetGroupCodepublic TargetGroupDataObject getTargetGroupByName(java.lang.String pTargetGroupName)
getTargetGroupByName
in interface IFlexDeployFunctions
pTargetGroupName
- FlexDeployRowNotFoundException
- If TargetGroup not found for given pTargetGroupNamepublic java.util.List<EnvironmentPojo> findEnvironment(java.lang.String pEnvironmentCode)
findEnvironment
in interface IFlexDeployFunctions
pEnvironmentCode
- Code of the enviornment.FlexDeployRowNotFoundException
- If no environment is found for the given enviornment codepublic EnvironmentPojo getEnvironment(java.lang.Long pEnvironmentId)
getEnvironment
in interface IFlexDeployFunctions
pEnvironmentId
- Id of the enviornment.FlexDeployRowNotFoundException
- If no environment is found for the given id.public java.util.List<ScmCommitDataObject> getWorkflowExecutionCommits(java.lang.Long pWorkflowExecutionId)
getWorkflowExecutionCommits
in interface IFlexDeployFunctions
pWorkflowExecutionId
- Workflow Execution Id to retrieve associated commit detailspublic java.util.List<WorkItemDataObject> getWorkflowExecutionWorkItems(java.lang.Long pWorkflowExecutionId)
getWorkflowExecutionWorkItems
in interface IFlexDeployFunctions
pWorkflowExecutionId
- Workflow Execution Id to retrieve associated workitem detailspublic java.util.List<WorkflowExecutionDataObject> getWorkflowExecutionByWorkflowRequestId(java.lang.Long pWorkflowRequestId)
getWorkflowExecutionByWorkflowRequestId
in interface IFlexDeployFunctions
pWorkflowRequestId
- Workflow Request Id to retrieve associated workflow execution details.public WorkflowExecutionDataObject getWorkflowExecutionById(java.lang.Long pWorkflowExecutionId)
getWorkflowExecutionById
in interface IFlexDeployFunctions
pWorkflowExecutionId
- Workflow Execution Id to retrieve associated workflow execution details.FlexDeployRowNotFoundException
- If no workflow execution is found for the given id.public java.util.List<CodeValueInputPOJO> getWorkflowExecutionOutputs(java.lang.Long pWorkflowExecutionId)
getWorkflowExecutionOutputs
in interface IFlexDeployFunctions
pWorkflowExecutionId
- Workflow Execution Id to retrieve associated workflow execution output details.FlexDeployRowNotFoundException
public java.util.List<CodeValueInputPOJO> getWorkflowExecutionInputs(java.lang.Long pWorkflowExecutionId)
getWorkflowExecutionInputs
in interface IFlexDeployFunctions
pWorkflowExecutionId
- Workflow Execution Id to retrieve associated workflow execution input details.FlexDeployRowNotFoundException
public java.util.List<CodeValueInputPOJO> getWorkflowExecutionFlexfields(java.lang.Long pWorkflowExecutionId)
getWorkflowExecutionFlexfields
in interface IFlexDeployFunctions
pWorkflowExecutionId
- Workflow Execution Id to retrieve associated workflow execution flexfields details.FlexDeployRowNotFoundException
public WorkflowExecutionVariables getWorkflowExecutionVariables(java.lang.Long pWorkflowExecutionId)
getWorkflowExecutionVariables
in interface IFlexDeployFunctions
pWorkflowExecutionId
- Workflow Execution Id to retrieve associated workflow execution variables.FlexDeployRowNotFoundException
public java.util.List<FlexFieldMetadataDataObject> getActiveBuildFlexfieldMetadata()
getActiveBuildFlexfieldMetadata
in interface IFlexDeployFunctions
public java.util.List<FlexFieldMetadataDataObject> getActiveDeployUtilityFlexfieldMetadata()
getActiveDeployUtilityFlexfieldMetadata
in interface IFlexDeployFunctions
public ProjectVersionDataObject getProjectVersionById(java.lang.Long pProjectVersionId, java.lang.Long pProjectId)
getProjectVersionById
in interface IFlexDeployFunctions
pProjectVersionId
- Project version Id to get the project version data object.pProjectId
- Project Id to get the project version data object.FlexDeployRowNotFoundException
- If no project version is found for the given project version id and project id.public PaginatedResponse<ProjectVersionDataObject> searchProjectVersions(ProjectVersionDataObject pParameters, java.lang.Integer pLimit, java.lang.Integer pOffset)
searchProjectVersions
in interface IFlexDeployFunctions
pParameters
- Parameters for the search criteria.pLimit
- Limit for the number of rows to be returned.pOffset
- offset number from which the limit starts.pass 0 to start at begining of query result.public java.util.List<TasksQueryResultPojo> getPipelineStageGateTasks(java.lang.Long pPipelineStageExecId)
getPipelineStageGateTasks
in interface IFlexDeployFunctions
pPipelineStageExecId
- pipeline stage execution id to get the Tasks details.public java.util.List<TasksQueryResultPojo> getApprovedPipelineStageGateTasks(java.lang.Long pPipelineStageExecId)
getApprovedPipelineStageGateTasks
in interface IFlexDeployFunctions
pPipelineStageExecId
- pipeline stage execution id to get the Tasks details.public java.util.List<TasksQueryResultPojo> getWorkflowRequestTasks(java.lang.Long pWorkflowRequestId)
getWorkflowRequestTasks
in interface IFlexDeployFunctions
pWorkflowRequestId
- Workflow Request id to get the Tasks details.public ProjectTriggerDataObject createProjectTrigger(ProjectTriggerDataObject pPojo)
createProjectTrigger
in interface IFlexDeployFunctions
pPojo
- Object containing Project trigger details to create the project trigger.public ProjectTriggerDataObject getProjectTriggerById(java.lang.Long pProjectTriggerId) throws FlexDeployRowNotFoundException
getProjectTriggerById
in interface IFlexDeployFunctions
pProjectTriggerId
- Project Trigger Id to retrieve the project trigger details.FlexDeployRowNotFoundException
- If no project trigger is found for the given project trigger idpublic PaginatedResponse<ProjectTriggerDataObject> searchProjectTriggers(ProjectTriggerDataObject pCriteriaObject, java.lang.Integer pLimit, java.lang.Integer pOffset)
searchProjectTriggers
in interface IFlexDeployFunctions
pCriteriaObject
- ProjectTriggerDataObject filled with criteria values.pLimit
- Limit for the number of rows to be returned.pOffset
- offset number from which the limit starts.pass 0 to start at begining of query result.public ProjectTriggerDataObject updateProjectTrigger(ProjectTriggerDataObject pPojo)
updateProjectTrigger
in interface IFlexDeployFunctions
pPojo
- Object containing project trigger details to update the project trigger.FlexDeployRowNotFoundException
- If no project trigger is found for the given project trigger details.public ProjectTriggerDataObject patchProjectTrigger(ProjectTriggerDataObject pPojo)
patchProjectTrigger
in interface IFlexDeployFunctions
pPojo
- Object containing Project trigger details to update the project trigger.FlexDeployRowNotFoundException
- If no project trigger is found for the given project trigger details.public void deleteProjectTrigger(java.lang.Long pProjectTriggerId)
deleteProjectTrigger
in interface IFlexDeployFunctions
pProjectTriggerId
- Project trigger Id to delete the respective project trigger.public FlxWorkItemDataObject createWorkItem(FlxWorkItemDataObject pPojo)
createWorkItem
in interface IFlexDeployFunctions
pPojo
- Object containing work item details to create the work item.public FlxWorkItemDataObject updateWorkItem(FlxWorkItemDataObject pPojo)
updateWorkItem
in interface IFlexDeployFunctions
pPojo
- Object containing work item details to update the work item.public FlxWorkItemDataObject patchWorkItem(FlxWorkItemDataObject pPojo)
patchWorkItem
in interface IFlexDeployFunctions
pPojo
- Object containing work item details to update the work item.public FlxWorkItemDataObject findWorkItemByNumber(java.lang.String pWorkItemNumber)
findWorkItemByNumber
in interface IFlexDeployFunctions
pWorkItemNumber
- work item number to get the work item details.FlexDeployRowNotFoundException
- If no flex work item is found for the given work item number.public FlxWorkItemDataObject updateWorkItemStatus(java.lang.String pWorkItemNumber, java.lang.String pStatusName)
updateWorkItemStatus
in interface IFlexDeployFunctions
pWorkItemNumber
- work item number.pStatusId
- work item status id.public FlxWorkItemDataObject updateWorkItemType(java.lang.String pWorkItemNumber, java.lang.String pTypeCode)
updateWorkItemType
in interface IFlexDeployFunctions
pWorkItemNumber
- work item number.pTypeCode
- work item type codepublic FlxWorkItemDataObject updateWorkItemAssignee(java.lang.String pWorkItemNumber, java.lang.String pUserName)
updateWorkItemAssignee
in interface IFlexDeployFunctions
pWorkItemNumber
- work item number.pUserName
- user name.public java.util.List<FlxWorkItemTypeDataObject> getWorkItemTypes()
getWorkItemTypes
in interface IFlexDeployFunctions
public java.util.List<FlxWorkItemStatusDataObject> getWorkItemStatuses()
getWorkItemStatuses
in interface IFlexDeployFunctions
public FlxWorkItemCommentDataObject addWorkItemComment(java.lang.String pWorkItemNumber, java.lang.String pComment)
addWorkItemComment
in interface IFlexDeployFunctions
pWorkItemNumber
- work item number.pComment
- comment.public java.util.List<WorkItemDataObject> getWorkItemsForSuccessfulExecutions(java.lang.Long pSnapshotId, java.lang.Long pEnvironmentId)
getWorkItemsForSuccessfulExecutions
in interface IFlexDeployFunctions
pSnapshotId
- Id of the snapshort.pEnvironmentId
- Id of the enviornment.public java.util.List<WorkItemDataObject> getWorkItemsForAllExecutions(java.lang.Long pSnapshotId, java.lang.Long pEnvironmentId)
getWorkItemsForAllExecutions
in interface IFlexDeployFunctions
pSnapshotId
- Id of the snapshort.pEnvironmentId
- Id of the enviornment.public java.util.List<WorkItemDataObject> getWorkItemsForFailedExecutions(java.lang.Long pSnapshotId, java.lang.Long pEnvironmentId)
getWorkItemsForFailedExecutions
in interface IFlexDeployFunctions
pSnapshotId
- Id of the snapshort.pEnvironmentId
- Id of the enviornment.public java.util.List<WorkItemDataObject> getWorkItemsForSnapshotVersions(java.lang.Long pSnapshotId)
getWorkItemsForSnapshotVersions
in interface IFlexDeployFunctions
pSnapshotId
- Id of the snapshort.public java.util.List<FlxWorkItemFieldDataDataObject> saveWorkItemFieldData(java.lang.String pWorkItemNumber, java.lang.String pFieldName, java.io.Serializable pValue)
saveWorkItemFieldData
in interface IFlexDeployFunctions
pWorkItemNumber
- work item number.pFieldName
- field name.pValue
- field value.public java.util.List<FlxWorkItemFieldDataDataObject> getWorkItemFieldData(java.lang.String pWorkItemNumber)
getWorkItemFieldData
in interface IFlexDeployFunctions
pFlxWorkItemId
- public java.lang.String parseWorkItemRichText(java.lang.String pWorkItemRichText)
parseWorkItemRichText
in interface IFlexDeployFunctions
pWorkItemText
- public java.util.List<FDUser> getUsersFromGroupName(java.lang.String pGroupName)
getUsersFromGroupName
in interface IFlexDeployFunctions
pGroupName
- FlexDeploy Group name to use.public java.util.List<WorkflowExecutionReportDataObject> getReportsByWorkflowExecutionId(java.lang.Long pWorkflowExecutionId)
getReportsByWorkflowExecutionId
in interface IFlexDeployFunctions
pWorkflowExecutionId
- Workflow Execution IDpublic java.io.InputStream getReportDataByWorkflowExecutionReportId(java.lang.Long pWorkflowExecutionReportId)
getReportDataByWorkflowExecutionReportId
in interface IFlexDeployFunctions
pWorkflowExecutionReportId
- Workflow Execution Report IDpublic ProjectStreamDataObject getProjectBranchById(java.lang.Long pBranchId, java.lang.Long pProjectId) throws FlexDeployRowNotFoundException
getProjectBranchById
in interface IFlexDeployFunctions
pBranchId
- pProjectId
- FlexDeployRowNotFoundException
- If no project branch is found for given branchId and projectIdpublic EndpointDataObject getEndpointById(java.lang.Long pEndpointId)
getEndpointById
in interface IFlexDeployFunctions
pEndpointId
- - Endpoint id of the Endpoint to retrive.FlexDeployRowNotFoundException
- If Endpoint not found for given pEndpointId.public EndpointDataObject getEndpointByName(java.lang.String pEndpointName)
getEndpointByName
in interface IFlexDeployFunctions
pEndpointName
- - Endpoint name of the Endpoint to retrive.FlexDeployRowNotFoundException
- If Endpoint not found for given pEndpointName.public EndpointDataObject createEndpoint(EndpointDataObject pEndpointDataObject)
createEndpoint
in interface IFlexDeployFunctions
pEndpointDataObject
- - Object containing the Endpoint details to create the Endpoint.public EndpointDataObject updateEndpoint(EndpointDataObject pEndpointDataObject)
updateEndpoint
in interface IFlexDeployFunctions
pEndpointDataObject
- - Object containing the Endpoint details to update the Endpoint.FlexDeployRowNotFoundException
- If no Endpoint is found for the given Endpoint details.public EndpointDataObject patchEndpoint(EndpointDataObject pEndpointDataObject)
patchEndpoint
in interface IFlexDeployFunctions
pEndpointDataObject
- - Object containing the Endpoint details to update the Endpoint.FlexDeployRowNotFoundException
- If no Endpoint is found for the given Endpoint details.public PaginatedResponse<EndpointDataObject> searchEndpoints(EndpointDataObject pCriteriaObject, java.lang.Integer pLimit, java.lang.Integer pOffset)
searchEndpoints
in interface IFlexDeployFunctions
pCriteriaObject
- - EndpointDataObject filled with criteria values.pLimit
- - Limit for the number of rows to be returned.pOffset
- - offset number from which the limit starts. Pass 0 to start at begining of query result.public FdGroupDataObject getGroupById(java.lang.Long pGroupId)
getGroupById
in interface IFlexDeployFunctions
pGroupId
- - Group id of the Group to retrive.FlexDeployRowNotFoundException
- If Group not found for given pGroupId.public FdGroupDataObject getGroupByName(java.lang.String pGroupName)
getGroupByName
in interface IFlexDeployFunctions
pGroupName
- - Group name of the Group to retrive.FlexDeployRowNotFoundException
- If Group not found for given pGroupName.public FdGroupDataObject createGroup(FdGroupDataObject pGroupDataObject)
createGroup
in interface IFlexDeployFunctions
pGroupDataObject
- - Object containing the Group details to create the Group.public FdGroupDataObject patchGroup(FdGroupDataObject pGroupDataObject)
patchGroup
in interface IFlexDeployFunctions
pGroupDataObject
- - Object containing the Group details to update the Group.FlexDeployRowNotFoundException
- If no Group is found for the given Group details.public FdGroupDataObject updateGroup(FdGroupDataObject pGroupDataObject)
updateGroup
in interface IFlexDeployFunctions
pGroupDataObject
- - Object containing the Group details to update the Group.FlexDeployRowNotFoundException
- If no Group is found for the given Group details.public PaginatedResponse<FdGroupDataObject> searchGroups(FdGroupDataObject pGroupObject, java.lang.Integer pLimit, java.lang.Integer pOffset)
searchGroups
in interface IFlexDeployFunctions
pGroupObject
- - FdGroupDataObject filled with criteria values.pLimit
- - Limit for the number of rows to be returned.pOffset
- - offset number from which the limit starts. Pass 0 to start at begining of query result.public RelSnapshotDataObject getSnapshotDetails(java.lang.Long pSnapshotId)
getSnapshotDetails
in interface IFlexDeployFunctions
pSnapshotId
- Id of the snapshot.public boolean isBotUsername(java.lang.String pUsername)
isBotUsername
in interface IFlexDeployFunctions
pUsername
- public FdUserDataObject getUserById(java.lang.Long pUserId)
getUserById
in interface IFlexDeployFunctions
pUserId
- - User id of the User to retrive.FlexDeployRowNotFoundException
- If User not found for given pUserId.public FdUserDataObject createUser(FdUserDataObject pUserDataObj)
createUser
in interface IFlexDeployFunctions
pUserDataObj
- - Object containing the User details to create the User.public FdUserDataObject patchUser(FdUserDataObject pUserDataObject)
patchUser
in interface IFlexDeployFunctions
pUserDataObject
- - Object containing the User details to update the User.FlexDeployRowNotFoundException
- If no User is found for the given User details.public FdUserDataObject updateUser(FdUserDataObject pUserDataObject)
updateUser
in interface IFlexDeployFunctions
pUserDataObject
- - Object containing the User details to update the User.FlexDeployRowNotFoundException
- If no User is found for the given User details.public PaginatedResponse<FdUserDataObject> searchUsers(FdUserDataObject pUserObject, java.lang.Integer pLimit, java.lang.Integer pOffset)
searchUsers
in interface IFlexDeployFunctions
pUserObject
- - FdUserDataObject filled with criteria values.pLimit
- - Limit for the number of rows to be returned.pOffset
- - Offset number from which the limit starts. Pass 0 to start at begining of query result.public void deleteFlxWorkItem(java.lang.Long pFlexWorkItemId)
deleteFlxWorkItem
in interface IFlexDeployFunctions
pFlexWorkItemId
- - the id of the Flex Work Itempublic PaginatedResponse<FlxWorkItemDataObject> searchFlxWorkItems(FlxWorkItemDataObject pCriteriaObject, java.lang.Integer pLimit, java.lang.Integer pOffset)
searchFlxWorkItems
in interface IFlexDeployFunctions
pCriteriaObject
- - The FlxWorkItemDataObject filled with criteria valuespLimit
- - number of rows to returnpOffset
- - pass 0 to start at beginning of query resultpublic FlxWorkItemStatusDataObject getFlxWorkItemStatusWithId(java.lang.Long pFlexWorkItemStatusId)
getFlxWorkItemStatusWithId
in interface IFlexDeployFunctions
pFlexWorkItemStatusId
- - Id of Flex Work Item Status to find.FlexDeployRowNotFoundException
- if no row found for pFlexWorkItemStatusId
.public PaginatedResponse<FlxWorkItemStatusDataObject> searchFlxWorkItemStatuses(FlxWorkItemStatusDataObject pCriteriaObject, java.lang.Integer pLimit, java.lang.Integer pOffset)
searchFlxWorkItemStatuses
in interface IFlexDeployFunctions
pCriteriaObject
- - FlxWorkItemStatusDataObject filled with criteria valuespLimit
- - number of rows to returnpOffset
- - pass 0 to start at beginning of query resultpublic FlxWorkItemTypeDataObject getFlxWorkItemTypeWithCode(java.lang.String pFlexWorkItemTypeCode)
getFlxWorkItemTypeWithCode
in interface IFlexDeployFunctions
pFlexWorkItemTypeCode
- - Code of Flex Work Item Type to find.FlexDeployRowNotFoundException
- if no row found for pFlexWorkItemTypeCode
.public PaginatedResponse<FlxWorkItemTypeDataObject> searchFlxWorkItemTypes(FlxWorkItemTypeDataObject pCriteriaObject, java.lang.Integer pLimit, java.lang.Integer pOffset)
searchFlxWorkItemTypes
in interface IFlexDeployFunctions
pCriteriaObject
- - FlexWorkItemTypeDataObject filled with criteria valuespLimit
- - number of rows to returnpOffset
- - pass 0 to start at the beginning of query resultpublic FlxWorkItemFieldDataObject getFlxWorkItemFieldWithId(java.lang.Long pFlexWorkItemFieldId)
getFlxWorkItemFieldWithId
in interface IFlexDeployFunctions
pFlexWorkItemfieldId
- - Id of Flex Work Item Field to find.FlexDeployRowNotFoundException
- if no row found for pFlexWorkItemFieldId
.public PaginatedResponse<FlxWorkItemFieldDataObject> searchFlxWorkItemFields(FlxWorkItemFieldDataObject pCriteriaObject, java.lang.Integer pLimit, java.lang.Integer pOffset)
searchFlxWorkItemFields
in interface IFlexDeployFunctions
pCriteriaObject
- - FlexWorkItemFieldDataObject filled with criteria valuespLimit
- - number of rows to returnpOffset
- - pass 0 to start at the beginning of query resultpublic java.util.List<FlxWorkItemFieldDataObject> saveFlxWorkItemFields(java.util.List<FlxWorkItemFieldDataObject> pPojos, java.lang.String pGroupCode)
saveFlxWorkItemFields
in interface IFlexDeployFunctions
pPojos
- - The Flex Work Item Fields to be savedpGroupCode
- - The code of the group that is being saved topublic FlxWorkItemFieldDataObject patchFlxWorkItemField(FlxWorkItemFieldDataObject pPojo)
patchFlxWorkItemField
in interface IFlexDeployFunctions
pPojo
- Object containing Flex Work Item Field details to update the Flex Work Item Field.public PropertyKeyGroupDataObject getFlxWorkItemFieldGroupWithCode(java.lang.String pFlexWorkItemFieldGroupCode)
getFlxWorkItemFieldGroupWithCode
in interface IFlexDeployFunctions
pFlexWorkItemFieldCode
- - Code of Flex Work Item Field Group to find.FlexDeployRowNotFoundException
- if no row found for pFlexWorkItemFieldGroupCode
.public PaginatedResponse<PropertyKeyGroupDataObject> searchFlxWorkItemFieldGroups(PropertyKeyGroupDataObject pCriteriaObject, java.lang.Integer pLimit, java.lang.Integer pOffset)
searchFlxWorkItemFieldGroups
in interface IFlexDeployFunctions
pCriteriaObject
- - PropertyKeyGroupDataObject that is filled with criteria valuespLimit
- - number of rows to returnpOffset
- - pass 0 to start at the beginning of query resultpublic PropertyKeyGroupDataObject createFlxWorkItemFieldGroup(PropertyKeyGroupDataObject pDobj)
createFlxWorkItemFieldGroup
in interface IFlexDeployFunctions
pDobj
- - the PropertyKeyDefinitionDataObject with the data to be added to the field grouppublic PropertyKeyGroupDataObject updateFlxWorkItemFieldGroup(PropertyKeyGroupDataObject pDobj)
updateFlxWorkItemFieldGroup
in interface IFlexDeployFunctions
pDobj
- Object containing Flex Work Item Field Group details to update the Flex Work Item Field Group.public PropertyKeyGroupDataObject patchFlxWorkItemFieldGroup(PropertyKeyGroupDataObject pDobj)
patchFlxWorkItemFieldGroup
in interface IFlexDeployFunctions
pDobj
- - the data to use to patch the Flex Work Item Field Group withpublic void deleteFlxWorkItemFieldGroup(java.lang.String pFlexWorkItemFieldGroupCode)
deleteFlxWorkItemFieldGroup
in interface IFlexDeployFunctions
pFlexWorkItemFieldGroupCode
- - the code of the Flex Work Item Field Grouppublic FlxWorkItemFieldDataObject createFlxWorkItemField(FlxWorkItemFieldDataObject pDobj)
createFlxWorkItemField
in interface IFlexDeployFunctions
pDobj
- - an object containing the Flex Work Item Field informationpublic FlxWorkItemFieldDataObject updateFlxWorkItemField(FlxWorkItemFieldDataObject pDobj)
updateFlxWorkItemField
in interface IFlexDeployFunctions
pDobj
- Object containing Flex Work Item Field details to update the Flex Work Item Field.public void deleteFlxWorkItemField(java.lang.Long pFlexWorkItemFieldId)
deleteFlxWorkItemField
in interface IFlexDeployFunctions
pFlexWorkItemFieldId
- - The id of the Flex Work Item Field to deletepublic PropertyKeyDefinitionDataObject createPropertyKeyDefinition(PropertyKeyDefinitionDataObject pPojo)
createPropertyKeyDefinition
in interface IFlexDeployFunctions
pPojo
- - Object containing property key definition information.public PropertyKeyDefinitionDataObject updatePropertyKeyDefinition(PropertyKeyDefinitionDataObject pPojo)
updatePropertyKeyDefinition
in interface IFlexDeployFunctions
pPojo
- - Object containing property key definition information.FlexDeployRowNotFoundException
- If no property key is found for the given details.public PropertyKeyDefinitionDataObject patchPropertyKeyDefinition(PropertyKeyDefinitionDataObject pPojo)
patchPropertyKeyDefinition
in interface IFlexDeployFunctions
Object
- containing property key definition information.FlexDeployRowNotFoundException
- If no property key is found for the given details.public PropertyKeyDefinitionDataObject getPropertyKeyDefinition(java.lang.Long pPropertyKeyDefinitionId)
getPropertyKeyDefinition
in interface IFlexDeployFunctions
pPropertyKeyDefinitionId
- - ID of the property key definition to retrieve.FlexDeployRowNotFoundException
- If propkey not found for given pPropertyKeyDefinitionIdpublic PaginatedResponse<PropertyKeyDefinitionDataObject> searchPropertyKeyDefinitions(PropertyKeyDefinitionDataObject pSearchParams, java.lang.Integer pLimit, java.lang.Integer pOffset)
searchPropertyKeyDefinitions
in interface IFlexDeployFunctions
pSearchParams
- - Object containing the search parameters for property key definitions.pLimit
- Limit for the number of rows to be returned.pOffset
- offset number from which the limit starts.pass 0 to start at begining of query result.public PropertyKeyDefinitionDataObject getPropertyKeyDefinition(java.lang.String pKeyName)
getPropertyKeyDefinition
in interface IFlexDeployFunctions
pKeyName
- - Name of the property key definition to retrieve.FlexDeployRowNotFoundException
- If propkey not found for the given pKeyName.public PropertySetDataObject updateWorkflowPropertySet(PropertySetDataObject pPropertySet)
updateWorkflowPropertySet
in interface IFlexDeployFunctions
pPropertySet
- - Object containing property set information.FlexDeployRowNotFoundException
- If no property set is found for the given details.public PaginatedResponse<PropertySetDataObject> searchPropertySets(PropertySetDataObject pSearchParams, java.lang.Integer pLimit, java.lang.Integer pOffset)
searchPropertySets
in interface IFlexDeployFunctions
pSearchParams
- - Object containing the search parameters for property sets.pLimit
- Limit for the number of rows to be returned.pOffset
- offset number from which the limit starts.pass 0 to start at begining of query result.public PropertySetDataObject getPropertySet(java.lang.Long pPropertySetId)
getPropertySet
in interface IFlexDeployFunctions
pPropertySetId
- - ID of the property set to retrieve.FlexDeployRowNotFoundException
- If propSet not found for given pPropertySetIdpublic CredentialDataObject getCredentialById(java.lang.Long pCredentialId)
getCredentialById
in interface IFlexDeployFunctions
pCredentialId
- - Credential id of the Credential to retrive.FlexDeployRowNotFoundException
- If Credential not found for given pCredentialId.public CredentialDataObject createCredential(CredentialDataObject pCredentialDataObject)
createCredential
in interface IFlexDeployFunctions
pCredentialDataObject
- - Object containing the Credential details to create the Credential.public CredentialDataObject patchCredential(CredentialDataObject pCredentialDataObject)
patchCredential
in interface IFlexDeployFunctions
pCredentialDataObject
- - Object containing the Credential details to update the Credential.FlexDeployRowNotFoundException
- If no Credential is found for the given Credential details.public CredentialDataObject updateCredential(CredentialDataObject pCredentialDataObject)
updateCredential
in interface IFlexDeployFunctions
pCredentialDataObject
- - Object containing the Credential details to update the Credential.FlexDeployRowNotFoundException
- If no Credential is found for the given Credential details.public PaginatedResponse<CredentialDataObject> searchCredentials(CredentialDataObject pCriteriaObject, java.lang.Integer pLimit, java.lang.Integer pOffset)
searchCredentials
in interface IFlexDeployFunctions
pCriteriaObject
- - CredentialDataObject filled with criteria values.pLimit
- - Limit for the number of rows to be returned.pOffset
- - offset number from which the limit starts. Pass 0 to start at begining of query result.public CredentialDataObject getCredentialByName(java.lang.String pCredentialName)
getCredentialByName
in interface IFlexDeployFunctions
pCredentialName
- - Credential id of the Credential to retrive.FlexDeployRowNotFoundException
- If Credential not found for given pCredentialName.public EnvironmentDataObject createEnvironment(EnvironmentDataObject pEnvDataObject)
createEnvironment
in interface IFlexDeployFunctions
pEnvDataObject
- - Object containing the Environment details to create the Environment.public EnvironmentDataObject patchEnvironment(EnvironmentDataObject pEnvDataObject)
patchEnvironment
in interface IFlexDeployFunctions
pEnvDataObject
- - Object containing the Environment details to update the Environment.FlexDeployRowNotFoundException
- If no Environment is found for the given Environment details.public EnvironmentDataObject updateEnvironment(EnvironmentDataObject pEnvDataObject)
updateEnvironment
in interface IFlexDeployFunctions
pEnvDataObject
- - Object containing the Environment details to update the Environment.FlexDeployRowNotFoundException
- If no Environment is found for the given Environment details.public void deleteEnvironment(java.lang.Long pEnvironmentId)
deleteEnvironment
in interface IFlexDeployFunctions
pEnvironmentId
- - the id of the Environment.public void deleteEndpoint(java.lang.Long pEndpointId)
deleteEndpoint
in interface IFlexDeployFunctions
pEndpointId
- - the id of the Endpoint.public void deleteCredential(java.lang.Long pCredentialId)
deleteCredential
in interface IFlexDeployFunctions
pCredentialId
- - the id of the Credential.public TargetGroupDataObject createTargetGroup(TargetGroupDataObject pTargetGroupDataObj)
createTargetGroup
in interface IFlexDeployFunctions
pTargetGroupDataObj
- - Object containing the TargetGroup details to create the TargetGroup.public TargetGroupDataObject patchTargetGroup(TargetGroupDataObject pTargetGroupDataObj)
patchTargetGroup
in interface IFlexDeployFunctions
pTargetGroupDataObj
- - Object containing the TargetGroup details to update the TargetGroup.FlexDeployRowNotFoundException
- If no TargetGroup is found for the given TargetGroup details.public TargetGroupDataObject updateTargetGroup(TargetGroupDataObject pTargetGroupDataObj)
updateTargetGroup
in interface IFlexDeployFunctions
pTargetGroupDataObj
- - Object containing the TargetGroup details to update the TargetGroup.FlexDeployRowNotFoundException
- If no TargetGroup is found for the given TargetGroup details.public void deleteTargetGroup(java.lang.Long pTargetGroupId)
deleteTargetGroup
in interface IFlexDeployFunctions
pTargetGroupId
- - the id of the TargetGroup.public void assignGroupToUser(java.lang.Long pGroupId, java.lang.Long pUserId) throws FlexDeployRowNotFoundException
assignGroupToUser
in interface IFlexDeployFunctions
pGroupId
- - Id of the Group that has to be assigned to the user.pUserId
- - Id of the User to which Group has be assigned.FlexDeployRowNotFoundException
- If no Group or User is found for the given details.public void unassignGroupFromUser(java.lang.Long pGroupId, java.lang.Long pUserId) throws FlexDeployRowNotFoundException
unassignGroupFromUser
in interface IFlexDeployFunctions
pGroupId
- - Id of the Group that has to be unassigned from the user.pUserId
- - Id of the User from which Group has be unassigned.FlexDeployRowNotFoundException
- If no Group or User is found for the given details.public void assignGroupToUser(java.lang.String pGroupName, java.lang.String pUserName) throws FlexDeployValidationException
assignGroupToUser
in interface IFlexDeployFunctions
pGroupName
- - Name of the Group that has to be assigned to the user.pUserName
- - Name of the User to which Group has be assigned.FlexDeployValidationException
- If no Group or User is found for the given details.public void unassignGroupFromUser(java.lang.String pGroupName, java.lang.String pUserName) throws FlexDeployValidationException
unassignGroupFromUser
in interface IFlexDeployFunctions
pGroupName
- - Name of the Group that has to be unassigned from the user.pUserName
- - Name of the User from which Group has be unassigned.FlexDeployValidationException
- If no Group or User is found for the given details.public FolderDataObject createFolder(FolderDataObject pFolderDataObject)
createFolder
in interface IFlexDeployFunctions
pFolderDataObject
- - Object containing the Folder details to create the Folder.public FolderDataObject patchFolder(FolderDataObject pFolderDataObject)
patchFolder
in interface IFlexDeployFunctions
pFolderDataObject
- - Object containing the Folder details to update the Folder.FlexDeployRowNotFoundException
- If no Folder is found for the given Folder details.public FolderDataObject updateFolder(FolderDataObject pFolderDataObject)
updateFolder
in interface IFlexDeployFunctions
pFolderDataObject
- - Object containing the Folder details to update the Folder.FlexDeployRowNotFoundException
- If no Folder is found for the given Folder details.public void deleteFolder(java.lang.Long pFolderId)
deleteFolder
in interface IFlexDeployFunctions
pFolderId
- - the id of the Folder.public FlxWorkItemCommentDataObject patchWorkItemComment(java.lang.String pWorkItemCommentId, java.lang.String pComment)
patchWorkItemComment
in interface IFlexDeployFunctions
pWorkItemCommentId
- - work item comment id.pComment
- - work item comment.public java.lang.String getWorkItemStatus(WorkItemDataObject pWorkItem)
getWorkItemStatus
in interface IFlexDeployFunctions
Work
- Item Object.