Class FlexDeploy2Functions
java.lang.Object
flexagon.fd.services.groovy.functions.BaseFunctions
flexagon.fd.services.groovy.functions.FlexDeploy2Functions
- All Implemented Interfaces:
IFlexDeployFunctions
Functions to perform actions in FlexDeploy, like building a project or starting a release.
- Since:
- 5.3
-
Field Summary
Fields inherited from class flexagon.fd.services.groovy.functions.BaseFunctions
mFLOG -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidactivateBranch(Long pProjectId, String pBranchName) Activate a FlexDeploy Branch on a project.activateProjectVersion(Long pProjectVersionId) Activates an inactive project version.voidactivateStream(Long pProjectId, String pbranchName) Deprecated.voidaddFilesToPackage(Long pProjectId, String pPackageName, List<String> pFiles) Adds files to a given package.voidaddProjectsToRelease(String pReleaseName, List<ReleaseProjectsPojo> pReleaseProjects) Add FlexDeploy projects to a given release.addWorkItemComment(String pWorkItemNumber, String pComment) Adds a WorkItem comment with the provided data.voidaddWorkItemsToRelease(Long pReleaseId, Long pInstanceId, List<String> pWorkItemNumbers) Add WorkItems to an existing Release.voidaddWorkItemToProjectVersion(Long pProjectVersionId, Long pWorkItemId) Adds a work item to a project version.voidapproveTask(String pUsername, String pTaskIdentifier, String pNotes) Approve a FlexDeploy Task.voidapproveTaskById(Long pTaskId, String pNotes) Approves a FlexDeploy Approval or Scheduled Window task.voidassignGroupToUser(Long pGroupId, Long pUserId) Assigns Group to User with the provided data.voidassignGroupToUser(String pGroupName, String pUserName) Assigns Group to User with the provided data.assignTag(FlexDeploySecurityConstants.SecurityObjectType pObjectType, Long pObjectId, String pTagName) Assigns tag to the object with the provided data.buildPackage(Long pBranchId, ProjectPackagePojo projectPackage) Builds a FlexDeploy Package.buildPackage(Long pBranchId, ProjectPackagePojo projectPackage, PollingResult pPollingResult) Builds a FlexDeploy Package using a PollingResult.buildPackage(Long pBranchId, ProjectPackagePojo projectPackage, PollingResult pPollingResult, BuildOptions pBuildOptions) Builds a FlexDeploy Package using a PollingResult.buildPackage(Long pBranchId, ProjectPackagePojo projectPackage, BuildOptions pBuildOptions) Builds a FlexDeploy Package.buildProject(Long pBranchId, Long pProjectId) Builds a FlexDeploy Project.buildProject(Long pBranchId, Long pProjectId, PollingResult pPollingResult) Builds a FlexDeploy Project using a PollingResult.buildProject(Long pBranchId, Long pProjectId, PollingResult pPollingResult, BuildOptions pBuildOptions) Builds a FlexDeploy Project using a PollingResult.buildProject(Long pBranchId, Long pProjectId, BuildOptions pBuildOptions) Builds a FlexDeploy Project.voidcleanup()voidcompleteManualStepBySnapshotId(String pUsername, Long pSnapshotId) Approve a manual step Human task.voidcompleteManualStepByTaskId(String pUsername, Long pTaskId) Approve a manual step Human task.copyRelease(CopyReleaseInput pCopyReleaseInput) Create a Release from the source release based on the provided data.createBranch(Long pProjectId, ProjectStreamPojo pBranch) Create a FlexDeploy Branch on a given project.createBranch(Long pProjectId, String pBranchName) Create a FlexDeploy Branch on a given project.createBranch(Long pProjectId, String pBranchName, String pVersionSyntax) Create a FlexDeploy Branch on a given project.createCmsTicket(CmsTicketDataObject pCmsTicketDataObject) Create CMS Ticket with the provided data.createComment(FdCommentDataObject pCommentDataObj) Create Comment with the provided data.CredentialDataObjectcreateCredential(CredentialDataObject pCredentialDataObject) Create Credential with the provided data.createDynamicPackage(Long pProjectId, String pPackageName, String pDescription, String pIncludePath, String pExcludePath) Creates a dynamic package for given include and exclude path.createEndpoint(EndpointDataObject pEndpointDataObject) Create Endpoint with the provided data.createEnvironment(EnvironmentDataObject pEnvDataObject) Create Environment with the provided data.Creates a FlexWorkItem with the provided data.Returns the WorkItem details after creation.Creates a FlexWorkItem Field with the provided data.Creates a FlexWorkItem Field Group with the provided data.createFolder(FolderDataObject pFolderDataObject) Create Folder with the provided data.createGroup(FlxGroupDataObject pGroupDataObject) Create Group with the provided data.createIncidentByWorkflowType(Long pWorkflowRequestId, Map<String, Serializable> pIncidentFields) Returns a CMSObject with incident details.createIncidentForWorkflowRequest(Long pWorkflowRequestId, Map<String, Serializable> pIncidentFields, String pCMSInstanceCode, String pCMSInstanceName) Returns a CMSObject with incident details for a particular CMS Instance by searching with Instance Name and Instance Code.createIncidentForWorklowRequest(Long pWorkflowRequestId, Map<String, Serializable> pIncidentFields, String pCMSInstanceCode, String pCMSInstanceName) Deprecated.Creates and configures the properties of an Integration instance using the provided data object.createOrUpdatePackage(Long pProjectId, String pPackageName, String pDescription, Long pBranchId, PollingResult pPollingResult) Creates a new package for the specified project and branch, if it doesn't already exist, Or updates the existing one.createPackage(Long pProjectId, String pPackageName, String pDescription, Long pBranchId, PollingResult pPollingResult) Creates a package for a given project relative to a PollingResult.Creates a package for a given project and list of files.createProject(ProjectPojo pProjectPojo) Creates and configures a project with the provided data.createProjectPackage(ProjectPackageDataObject pPackagePojo, Boolean pSortFiles) Creates the package for a project using the provided data object and returns the created project package details.Creates a project trigger with the provided data.Returns the project trigger details after creation.Creates a property key definition with the provided data.createRelease(Long pFolderId, String pReleaseName, String pPipelineName, String pDescription, String pCronSchedule) Create an empty scheduled FlexDeploy Release that defaults to 'STARTED' status.createRelease(String pReleaseName, String pPipelineName, String pDescription) Create an empty FlexDeploy Release that defaults to 'STARTED' status.createRelease(String pReleaseName, String pPipelineName, String pDescription, String pCronSchedule) Create an empty scheduled FlexDeploy Release that defaults to 'STARTED' status.Create Release Project with the provided data.createReleaseProjects(Long pReleaseId, List<RelProjectDataObject> pPojos) Create Release Project with the provided data.createSCMInstance(SCMInstancePojo pSCMInstancePojo) Creates and configures an SCM instance with the given data.createSCMInstance(String pSCMInstanceName, String pDescription, Boolean pIsActive, String pInstanceCode, List<PropertyValuePojo> pProperties, String pSCMType) Creates and configures an SCM Instance with the provided data.createSnapshot(Long pReleaseId) Create a Snapshot for a given Release.createSnapshot(Long pReleaseId, List<SnapshotVersionInputPojo> pVersions, List<CodeValueInputPOJO> pInputs) Create a Snapshot for a given Release, Versions, Inputs.createStandaloneRelease(Long pProjectId, Long pBranchId, String pReleaseName, Long pBuildEnvironmentId, Long pPipelineId) Creates a Standalone Release for standard project that defaults to 'STARTED' status.createStandaloneRelease(Long pProjectId, Long pBranchId, String pPackageName, String pReleaseName, Long pBuildEnvironmentId, Long pPipelineId) Creates a Standalone Release for partial project that defaults to 'STARTED' status.createStream(Long pProjectId, ProjectStreamPojo pBranch) Deprecated.createStream(Long pProjectId, String pbranchName) Deprecated.createStream(Long pProjectId, String pbranchName, String pVersionSyntax) Deprecated.createTargetGroup(TargetGroupDataObject pTargetGroupDataObj) Create TargetGroup with the provided data.createUser(FlxUserDataObject pUserDataObj) Create User with the provided data.voiddeleteCmsTicket(Long pCmsTicketId) Deletes a CMS Ticket.voiddeleteComment(Long pCommentId) Deletes a Comment.voiddeleteCredential(Long pCredentialId) Deletes a Credential.voiddeleteEndpoint(Long pEndpointId) Deletes an Endpoint.voiddeleteEnvironment(Long pEnvironmentId) Deletes an Environment.voiddeleteFlxWorkItem(Long pFlexWorkItemId) Deletes a FlexWorkItemvoiddeleteFlxWorkItemField(Long pFlexWorkItemFieldId) Deletes a FlexWorkItem FieldvoiddeleteFlxWorkItemFieldGroup(String pFlexWorkItemFieldGroupCode) Deletes a FlexWorkItem Field GroupvoiddeleteFolder(Long pFolderId) Deletes a Folder.voiddeletePackage(Long pProjectId, String pPackageName) Deletes a project packagevoiddeleteProjectTrigger(Long pProjectTriggerId) Deletes the project trigger based on the project Trigger id.voiddeleteReleaseProject(Long pRelProjectId) Delete Release project from release.voiddeleteReleaseProjects(List<Long> pRelProjectIds) Delete Release projects from release.voiddeleteTargetGroup(Long pTargetGroupId) Deletes a TargetGroup.deployPackage(Long pProjectId, String pPackageName, String pEnvironmentCode, DeployOptions pDeployOptions) Deploys a FlexDeploy Package.deployProject(Long pProjectId, String pEnvironmentCode, DeployOptions pDeployOptions) Deploys a FlexDeploy Project.discoverFiles(Long pProjectId, Long pBranchId) Discover package-based deployment files for a given project.discoverFiles(Long pProjectId, Long pBranchId, boolean pInactivateMissingFiles) discoverFilesFromBackend(Long pProjectId, Long pEnvironmentId) Discover package-based deployment files from a backend system for a given project.discoverFilesFromBackend(Long pProjectId, Long pEnvironmentId, boolean pInactivateMissingFiles) voiddiscoverFilesFromBackendAsync(Long pProjectId, Long pEnvironmentId) Discover package-based deployment files from a backend system asynchronously for a given project.voiddiscoverFilesFromBackendAsync(Long pProjectId, Long pEnvironmentId, boolean pInactivateMissingFiles) voiddiscoverFilesFromSCMAsync(Long pProjectId, Long pBranchId) Discover package-based deployment files asynchronously for a given project.voiddiscoverFilesFromSCMAsync(Long pProjectId, Long pBranchId, boolean pInactivateMissingFiles) voiddownloadLogs(Long pWorkflowExecutionId, String pDestinationPath) Downloads the plugin logs from the workflow execution based on Id.voiddownloadSnapshotCommitDetails(Long pSnapshotId, String pDestinationPath) Gets the commit details of a snapshot and downloads a csv file to the destination path.voidendRelease(Long pReleaseId) End a FlexDeploy Release.voidendRelease(String pReleaseName) End a FlexDeploy Release.ensureWorkItems(Long pProjectId, List<String> pWorkItemNumbers) Creates work items for a specified project by verifying their existence within the project's configured Issue Tracking System instances.executeUtility(Long pProjectId, String pEnvironmentCode) Executes a FlexDeploy Utility Project for a single environment on all instances configured in Project Configuration.executeUtility(Long pProjectId, String pEnvironmentCode, ExecuteOptions pExecuteOptions) Executes a FlexDeploy Utility Project for a single environment with specified ExecuteOptions.exportBuild(Long pWorkflowExecutionId) Export build archive as zip file.Export configurations as zip file.exportSnapshot(Long pSnapshotId) Export snapshot archive as zip file.findBranchId(Long pProjectId, String pBranchName) Finds a FlexDeploy branch id from the Branch name.findCMSInstance(String pCMSInstanceCode) Gets a CMSInstance based on the CMS Instance Code passed.findEnvironment(String pEnvironmentCode) Gets the environment with the specified environment code.findFlxWorkItemByNumber(String pWorkItemNumber) Gets FlexWorkItem based on WorkItem number.findFolderId(String pFolderName) Finds the FlexDeploy Folder id for any given name.findFoldersWithName(String pFolderName) Finds FlexDeploy Folders for any given namefindFolderWithId(Long pFolderId) Finds Folder using Id.findIntegrationInstance(String pIntegrationInstanceCode, String pType) Gets an integration instance based on the code.findLocalChangeLogs(String pUrl, String pBranch, String pCurrentRevision, String pFromRevision) Finds change logs for a local ssh enabled git repository.findLocalChangeLogs(String pUrl, String pBranch, String pCurrentRevision, String pFromRevision, boolean pIgnoreTargetBranchMerge) Finds change logs for a local ssh enabled git repository.findLocalChangeLogs(String pUrl, String pBranch, String pCurrentRevision, String pFromRevision, String pUser, String pPassword) Finds change logs for a git repository.findLocalChangeLogs(String pUrl, String pBranch, String pCurrentRevision, String pFromRevision, String pUser, String pPassword, boolean pIgnoreTargetBranchMerge) Finds change logs for a git repository.findPackagesForChange(String pRepositoryName, String pbranchName, PollingResult pPollingResult) Finds relevant FlexDeploy Packages for any given PollingResult.findPackagesForChange(String pRepositoryName, String pBranchName, List<String> pChangedFiles) Finds relevant FlexDeploy Packages for a list of changed files.findPackagesForChange(String pRepositoryName, String pBranchName, List<String> pChangedFiles, PackageSearchOptions pPackageSearchOptions) Finds relevant FlexDeploy Packages for a list of changed files.findProjectId(String pProjectName) Finds the FlexDeploy Project id for any given name.findProjectPackagesByProjectId(Long pProjectId, PackageSearchOptions pPackageSearchOptions) Finds relevant FlexDeploy Packages for a projectId and with an optional package search options.findProjectPackagesByProjectType(String pProjectType, PackageSearchOptions pPackageSearchOptions) Finds relevant FlexDeploy Packages for a project type and with an optional package search options.findProjectPackagesForFilesByProjectId(Long pProjectId, List<String> pFiles, PackageSearchOptions pPackageSearchOptions) Finds relevant FlexDeploy Packages for a list of files and with an optional package search options.findProjectPackagesForFilesByProjectType(String pProjectType, List<String> pFiles, PackageSearchOptions pPackageSearchOptions) Finds relevant FlexDeploy Packages for a list of files and project type with an optional package search options.findProjectsForChange(String pRepositoryName, String pbranchName, PollingResult pPollingResult) Finds relevant FlexDeploy Projects for any given PollingResult and branch.findProjectsForChange(String pRepositoryName, String pbranchName, List<String> pChangedFiles) Finds relevant FlexDeploy Projects for a list of changed files.findProjectsForNewBranch(String pRepositoryName) Finds relevant FlexDeploy Projects for a new branch event.findProjectsForNewBranch(String pRepositoryName, PollingResult pPollingResult) Finds relevant FlexDeploy Projects for a new branch event.findProjectsWithName(String pProjectName) Finds FlexDeploy Projects for any given namefindProjectWithId(Long pProjectId) Finds Project using Id.findReleases(String pName) Finds Releases matching the specified name.findReleases(String pName, Integer pLimit, Integer pOffset) Finds Releases matching the specified name.findStreamId(Long pProjectId, String pbranchName) Deprecated.voidforceEndRelease(Long pReleaseId) Force a FlexDeploy Release to end.voidforceEndRelease(String pReleaseName) Force a FlexDeploy Release to end.Gets active build flexfields metadata.Gets active deploy or utility flexfields metadata.getAllUsersFromRoleId(Long pRoleId) Gets a list of all the users that are part of Assigned Users as well as all the active users belongs to the Assigned Groups for the pipeline role with the specified pipeline role id.getAllUsersFromRoleId(Long pRoleId, Long pRelDefId) Gets a list of all the users that are part of Assigned Users as well as all the active users belongs to the Assigned Groups for the pipeline role with the specified pipeline role id and release definition id to get Users overridden at the release.getApprovedPipelineStageGateTasks(Long pPipelineStageExecId) Gets Task details based on pipeline stage execution id.<any>getBuildWorkflowExecutionFiles(Long pWorkflowExecutionId, Integer pLimit, Integer pOffset) Retrieves the files associated with the specified package build workflow execution Id.getBuildWorkflowExecutionsFromProjectVersionIds(List<Long> pProjectVersionIds) Get the build workflow execution details for given project version id(s)getChangeManagementSystemByInstanceCode(String pCMSInstanceCode) Returns a CMS System for a particular CMS Instance by searching with Instance Code.getChangeManagementSystemByInstanceId(Long pCMSInstanceId) Returns a CMS System for a particular CMS Instance Id.getChangeManagementSystemByInstanceName(String pcmsInstanceName) Returns a CMS System for a particular CMS Instance by searching with Instance Name.getCMSInstance(Long pCMSInstanceId) Gets a CMSInstance based on the CMS Instance Id passed.getCmsTicketById(Long pCmsTicketId) Returns CMS Ticket information for a given CMS Ticket Id.getCmsTicketsByNumber(String pCmsTicketNumber) Returns a list of CMS Ticket information for a given CMS Ticket Number.CredentialDataObjectgetCredentialById(Long pCredentialId) Returns Credential information for a given Credential Id.CredentialDataObjectgetCredentialByName(String pCredentialName) Returns Credential information for a given Credential name.getCredentialSecretTextById(Long pCredentialId) Returns the secret text value for a given Credential name.getCredentialSecretTextByName(String pCredentialName) Returns the secret text value for a given Credential name.CredentialValuePojogetCredentialValueById(Long pCredentialId) Returns the plaintext value for a given Credential id.CredentialValuePojogetCredentialValueByName(String pCredentialName) Returns the plaintext value for a given Credential id.getCurrentlyDeployedVersionId(Long pProjectId, Long pEnvironmentId, Long pTargetGroupId) Returns currently deployed project version Id of the full deployment project.getCurrentlyDeployedVersionId(Long pProjectId, Long pEnvironmentId, Long pTargetGroupId, String pPackageName) Returns currently deployed project version Id of the partial deployment project.<any>getDeployWorkflowExecutionFiles(Long pWorkflowExecutionId, Integer pLimit, Integer pOffset) Retrieves the files associated with the specified package deploy workflow execution Id.getEmailAddressesFromRoleId(Long pRoleId) Gets a list of email addresses that are members of the pipeline role with the specified role Id.getEmailAddressesFromRoleId(Long pRoleId, Long pRelDefId) Gets a list of email addresses that are members of the pipeline role with the specified role id and release definition id to get emails overridden at the release.getEndpointById(Long pEndpointId) Returns Endpoint information for a given endpoint Id.getEndpointByName(String pEndpointName) Returns Endpoint information for a given Endpoint Name.getEnvironment(Long pEnvironmentId) Gets the environment with the specified Id.getEnvironmentByCode(String pEnvironmentCode) Returns Environment information for a given environment code.getEnvironmentById(Long pEnvironmentId) Returns Environment information for a given environment Id.getEnvironmentByName(String pEnvironmentName) Returns Environment information for a given environmentNameReturns the FlexDeploy Server base url configured in System Settings.Returns the FlexDeploy Server host name.getFlxWorkItemFieldData(String pWorkItemNumber) Returns List of WorkItem field details for FlexWorkItem number.getFlxWorkItemFieldGroupWithCode(String pFlexWorkItemFieldGroupCode) Finds a FlexWorkItem Field Group using Code.getFlxWorkItemFieldWithId(Long pFlexWorkItemFieldId) Finds FlexWorkItem Field using Id.Gets the FlexWorkItem statuses.getFlxWorkItemStatusWithId(Long pFlexWorkItemStatusId) Finds FlexWorkItem Status using Id.Gets the FlexWorkItem types.getFlxWorkItemTypeWithCode(String pFlexWorkItemTypeCode) Finds FlexWorkItem Type using Code.getGroupById(Long pGroupId) Returns Group information for a given group Id.getGroupByName(String pGroupName) Returns Group information for a given group name.getGroupsFromRoleId(Long pRoleId) Gets a list of the Groups that are members of the pipeline role with the specified role Id.getGroupsFromRoleId(Long pRoleId, Long pRelDefId) Gets a list of the Groups that are members of the pipeline role with the specified role id and release definition id to get Groups overridden at the release.getIntegrationInstance(Long pIntegrationInstanceId, String pType) Gets an integration instance based on the id.getIssueTrackingSystemByInstanceCode(String pITSInstanceCode) Returns an ITS System for a particular ITS Instance Code.getIssueTrackingSystemByInstanceId(Long pITSInstanceId) Returns an ITS System for a particular ITS Instance Id.getIssueTrackingSystemByInstanceName(String pITSInstanceName) Returns an ITS System for a particular ITS Instance Name.getMatchingProjectObjectId(Long pProjectId, String pFile) Returns internal id for file in a project.getOrCreateBranchId(Long pProjectId, String pBranchName) Retrieves the Id of a branch in a FlexDeploy project.protected LonggetOrCreateBranchId(Long pProjectId, String pBranchName, Boolean pCreateBranch) getPackage(Long pProjectId, String pPackageName) Returns a PackageDetailsResponsePojo given a Project Id and Package NamegetPendingOrApprovedCommits(Long pStageExecId) Commits in the snapshot that will deploy or have already deployed in this stage.getPendingOrApprovedContent(Long pStageExecId) Snapshot content that will deploy or has already deployed in this stage, excluding utility projects.getPendingOrApprovedWorkItems(Long pStageExecId) Work items in the snapshot that will deploy or have already deployed in this stage.getPendingTasksByChangeTicket(String pChangeTicket) Find Pending Tasks for given change ticket.getPipelineById(Long pPipelineId) Finds Pipeline by using its unique ID.getPipelineProjectGroups(Long pPipelineDefinitionId) Returns a List of Project groups in a Pipeline.getPipelineStageExecutionInfo(Long pStageExecId) Gets pipeline stage execution info based on the stage exec Id given.getPipelineStageGateTasks(Long pPipelineStageExecId) Gets Task details based on pipeline stage execution id.getPipelineStepProjectsExecution(Long pStageExecId, Long pStepId) Get the project request and execution statuses for a given pipeline step executiongetPipelineStepProjectsExecution(Long pStageExecId, String pStepName) Get the project request and execution statuses for a given pipeline step executiongetPluginLogInputStreams(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.getPluginLogInputStreams(Long pWorkflowExecutionId, 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.getPluginLogs(Long pWorkflowExecutionId) Gets the plugin logs from the workflow execution based on Id.getPreviouslyDeployedVersionId(Long pProjectId, Long pEnvironmentId, Long pTargetGroup) Returns previously deployed project version Id of the full deployment project.getPreviouslyDeployedVersionId(Long pProjectId, Long pEnvironmentId, Long pTargetGroupId, String pPackageName) Returns previously deployed project version Id of partial deployment project.getProject(Long pProjectId) Returns project information for a given projectId.getProjectBranchById(Long pBranchId, Long pProjectId) Returns the project branch details for given branchId and projectIdgetProjectPackageById(Long pProjectPackageId) Gets a project package by package id and returns the project package details.getProjectPackageByName(Long pProjectId, String pPackageName) Gets a project package by project id and package name.getProjectProperties(Long pProjectId) Get the list of project properties for a given project id.getProjectPropertyValue(Long pProjectId, String pPropertyKeyCode) Get the project property value for a given project id and property key code.getProjectTriggerById(Long pProjectTriggerId) Returns the project trigger information based on the project Trigger id.getProjectVersionById(Long pProjectVersionId, Long pProjectId) Gets project version data object by project version id and project Id.getPropertyKeyDefinition(Long pPropertyKeyDefinitionId) Retrieves a property key definition by its ID.getPropertyKeyDefinition(String pKeyName) Retrieves a property key definition by its key name.getPropertySet(Long pPropertySetId) Retrieves a property set by its ID.getRelease(Long pId) Gets a release by a specific id.getReleaseById(Long pRelDefinitionId) Returns Release information for a given release definition Id.getReleaseByName(String pRelDefinitionName) Returns Release information for a given release name.getReleaseProjectInfo(Long pReleaseDefId) Deprecated.getReleaseProjects(Long pRelDefinitionId) getReleaseProperties(Long pReleaseDefinitionId) Get the list of Release properties details for a given Release definition id.getReleaseProperty(Long pRelDefId, String pPropertyKeyCode) Get the Release property detail for a given Release definition id and Property key code.getReleaseWorkItems(Long pReleaseId) Get WorkItems associated with Release Id.getReportDataByWorkflowExecutionReportId(Long pWorkflowExecutionReportId) Get a report by Workflow Execution Report ID.getReportsByWorkflowExecutionId(Long pWorkflowExecutionId) Gets a list of WorkflowExecutionReportDataObject objects that are associated with a workflow executiongetScanResultForSonarqube(String pBaseUrl, String pProjectKey) get Scan result for SonarQubegetSnapshotCommitDetailInputStreams(Long pSnapshotId) Gets the commit details of a snapshot and returns an input stream of the data.getSnapshotCommitDetails(Long pSnapshotId) Gets the commit details of a snapshot and returns an object with the data.getSnapshotDetails(Long pSnapshotId) RETURN a release snapshot data object by id.getTargetGroupByCode(String pTargetGroupCode) Get the TargetGroup based on TargetGroup code passed.getTargetGroupById(Long pTargetGroupId) Get the TargetGroup based on TargetGroup id passed.getTargetGroupByName(String pTargetGroupName) Get the TargetGroup based on TargetGroup name passed.getTargetProperties(Long pTargetId) Get the list of Target properties for a given target id.TasksQueryExtResultRowgetTaskById(Long pTaskId) Gets the task details based on the task id passed.Returns user information for a given username.getUserById(Long pUserId) Returns User information along with the user attributes and group detail for a given user Id.getUsersFromGroupId(Long pGroupId) Gets a list of FDUser objects that are members of the group with the given group Id.getUsersFromGroupName(String pGroupName) Gets a list of FDUser objects that are members of the group with the given group name.getUsersFromRoleId(Long pRoleId) Gets a list of the users that are members of the pipeline role with the specified role Id.getUsersFromRoleId(Long pRoleId, Long pRelDefId) Gets a list of the users that are members of the pipeline role with the specified role id and release definition id to get Users overridden at the release.getWorkflowExecutionById(Long pWorkflowExecutionId) Gets workflow execution details for workflow execution id.getWorkflowExecutionByWorkflowRequestId(Long pWorkflowRequestId) Gets workflow execution details by workflow request id.getWorkflowExecutionCommits(Long pWorkflowExecutionId) Gets Commit details associated with workflow execution.getWorkflowExecutionFlexfields(Long pWorkflowExecutionId) Gets workflow execution flexfields details for workflow execution id.getWorkflowExecutionInputs(Long pWorkflowExecutionId) Gets workflow execution inputs details for workflow execution id.getWorkflowExecutionOutputs(Long pWorkflowExecutionId) Gets workflow execution output details for workflow execution id.getWorkflowExecutionVariables(Long pWorkflowExecutionId) Gets workflow execution variables for workflow execution id.getWorkflowExecutionWorkItems(Long pWorkflowExecutionId) Gets WorkItem details associated with workflow execution.getWorkflowRequestTasks(Long pWorkflowRequestId) Gets Task details based on workflow request id.getWorkItemById(Long pWorkItemId) Gets the WorkItem details based on WorkItem id.getWorkItemFieldData(String pWorkItemNumber) getWorkItemsByNumber(String pWorkItemNumber) Gets a list of WorkItems based on WorkItem number.getWorkItemsForAllExecutions(Long pSnapshotId, Long pEnvironmentId) Gets WorkItem details associated with all execution for given snapshot and environment.getWorkItemsForFailedExecutions(Long pSnapshotId, Long pEnvironmentId) Gets WorkItem details associated with failed execution for given snapshot and environment.getWorkItemsForSnapshotVersions(Long pSnapshotId) Gets WorkItem details associated with snapshot versions.getWorkItemsForSuccessfulExecutions(Long pSnapshotId, Long pEnvironmentId) Gets WorkItem details associated with successful execution for given snapshot and environment.getWorkItemStatus(WorkItemDataObject pWorkItem) Gets WorkItem Status.voidinactivateBranch(Long pProjectId, String pBranchName) Inactive a FlexDeploy Branch on a project.inactivateProjectVersion(Long pProjectVersionId, String pInactivationReason) Inactivates an active project version.voidinactivateStream(Long pProjectId, String pbranchName) Deprecated.voidinitializeOrRefreshCredentialValuesInCache(int pBatchSize, int pDelayBetweenBatchesMillis) Loads or refreshes the elements of the credential cache in batches.booleanisBotUsername(String pUsername) Return whether a username (case-insensitive) is a FlexDeploy bot username and not a FlexDeploy user.parseWorkItemRichText(String pWorkItemRichText) Parse Rich Text to retrieve raw text.voidpatchBranch(Long pProjectId, Long pBranchId, ProjectStreamDataObject pBranch) Patches a FlexDeploy Branch on a given project.patchCmsTicket(CmsTicketDataObject pCmsTicketDataObject) Update CMS Ticket with the provided data.patchComment(FdCommentDataObject pCommentDataObj) Update Comment with the provided data.CredentialDataObjectpatchCredential(CredentialDataObject pCredentialDataObject) Update Credential with the provided data.patchEndpoint(EndpointDataObject pEndpointDataObject) Update Endpoint with the provided data.patchEnvironment(EnvironmentDataObject pEnvDataObject) Update Environment with the provided data.Patches a FlexWorkItem with the provided data.Patches a FlexWorkItem Field with the provided data.Patches a FlexWorkItem Field Group with the provided data.patchFolder(FolderDataObject pFolderDataObject) Update Folder with the provided data.patchGroup(FlxGroupDataObject pGroupDataObject) Update Group with the provided data.Updates an Integration instance and its properties with the provided data.patchProject(Long pProjectId, ProjectPojo pProjectPojo) Updates a project with the provided data.patchProjectPackage(ProjectPackageDataObject pPackagePojo, Boolean pSortFiles) Updates a package with the provided data.patchProjectProperties(Long pProjectId, List<PropertyValuePojo> pPropertyPojos) Updates a project's properties with the provided data.Updates a project trigger with the provided data.updates a property key definition with the provided data.patchRelease(RelDefinitionDataObject pReleasePojo) Updates a release with the provided data.patchReleaseProject(RelProjectDataObject pRelProjectDataObj) Updates a release with the provided data.voidpatchStream(Long pProjectId, Long pBranchId, ProjectStreamDataObject pStream) Deprecated.patchTargetGroup(TargetGroupDataObject pTargetGroupDataObj) Update TargetGroup with the provided data.patchTargetProperties(Long pTargetId, List<PropertyKeyDataObject> pPropertiesToUpdate) Updates a Target's properties with the provided data.patchUser(FlxUserDataObject pUserDataObject) Update User with the provided data.patchWorkItem(WorkItemDataObject pPojo) Patches a WorkItem with the provided data.patchWorkItemComment(String pCommentId, String pComment) Update a WorkItem comment with the provided data.voidpauseRelease(Long pReleaseId) Pause a FlexDeploy Release.voidpauseRelease(String pReleaseName) Pause a FlexDeploy Release.populateFiles(Long pProjectId, Long pBranchId) Deprecated.prepareRollBackWorkflowRequest(Long pWorkflowExecutionId) voidrejectManualStepBySnapshotId(String pUsername, Long pSnapshotId) Reject a manual step Human task.voidrejectManualStepByTaskId(String pUsername, Long pTaskId) Reject a manual step Human task.voidrejectTask(String pUsername, String pTaskIdentifier, String pNotes) Reject a FlexDeploy Task.voidrejectTaskById(Long pTaskId, String pNotes) Rejects a FlexDeploy Approval or Scheduled Window task.voidremoveProjectsFromRelease(String pReleaseName, List<ReleaseProjectsPojo> pReleaseProjects) Remove FlexDeploy projects from a given release.voidremoveWorkItemFromProjectVersion(Long pProjectVersionId, Long pWorkItemId) Removes a work item from a project version.voidremoveWorkItemsFromRelease(Long pReleaseId, Long pInstanceId, List<String> pWorkItemNumbers, boolean pRemoveAssociatedProjects) Remove WorkItems and associated Projects from given Release.rollBack(RollbackWorkflowRequestInput pRollbackWorkflowRequestInput) Submits a rollback workflow request.saveFlxWorkItemFieldData(String pWorkItemNumber, String pFieldName, Serializable pValue) Saves FlexWorkItem field data on given WorkItem number, field name and value.saveFlxWorkItemFields(List<FlxWorkItemFieldDataObject> pPojos, String pGroupCode) Updates all FlexWorkItem Fields within a group.saveWorkItemFieldData(String pWorkItemNumber, String pFieldName, Serializable pValue) <any>searchBranches(ProjectStreamDataObject pCriteriaObject, Integer pLimit, Integer pOffset) Find Branches based provided search parameters and pagination input.<any>searchByTag(String pTagName, Boolean pShowInactive, Integer pLimit, Integer pOffset) <any>searchByTag(String pTagName, Boolean pShowInactive, List<FlexDeploySecurityConstants.SecurityObjectType> pSearchEntities, Integer pLimit, Integer pOffset) <any>searchCmsTickets(CmsTicketDataObject pCriteriaObject, Integer pLimit, Integer pOffset) Find CMS Ticket based on provided search parameters and pagination input.<any>searchCredentials(CredentialDataObject pCriteriaObject, Integer pLimit, Integer pOffset) Find Credentials based provided search parameters and pagination input.<any>searchEndpoints(EndpointDataObject pCriteriaObject, Integer pLimit, Integer pOffset) Find Endpoints based provided search parameters and pagination input.<any>searchEnvironments(EnvironmentDataObject pCriteriaObject, Integer pLimit, Integer pOffset) Find Environments based provided search parameters and pagination input.<any>searchFlxWorkItemFieldGroups(PropertyKeyGroupDataObject pCriteriaObject, Integer pLimit, Integer pOffset) Find FlexWorkItem Field Groups based provided search parameters and pagination input.<any>searchFlxWorkItemFields(FlxWorkItemFieldDataObject pCriteriaObject, Integer pLimit, Integer pOffset) Find FlexWorkItem Fields based provided search parameters and pagination input.<any>searchFlxWorkItems(FlxWorkItemDataObject pCriteriaObject, Integer pLimit, Integer pOffset) Find FlexWorkItems based provided search parameters and pagination input.<any>searchFlxWorkItemStatuses(FlxWorkItemStatusDataObject pCriteriaObject, Integer pLimit, Integer pOffset) Find FlexWorkItem Statuses based provided search parameters and pagination input.<any>searchFlxWorkItemTypes(FlxWorkItemTypeDataObject pCriteriaObject, Integer pLimit, Integer pOffset) Find FlexWorkItem Types based provided search parameters and pagination input.<any>searchFolders(FolderDataObject pCriteriaObject, Integer pLimit, Integer pOffset) Find Folders based provided search parameters and pagination input.<any>searchGroups(FlxGroupDataObject pGroupObject, Integer pLimit, Integer pOffset) Find Groups based provided search parameters and pagination input.<any>searchPipelines(PipelineDefinitionDataObject pCriteriaObject, Integer pLimit, Integer pOffset) Finds pipelines based on the provided search criteria and pagination input.<any>searchProjectPackages(ProjectPackageDataObject pCriteriaObject, Integer pLimit, Integer pOffset) Find Packages based provided search parameters and pagination input.<any>searchProjects(ProjectDataObject pCriteriaObject, Integer pLimit, Integer pOffset) Find Projects based provided search parameters and pagination input.<any>searchProjectTriggers(ProjectTriggerDataObject pCriteriaObject, Integer pLimit, Integer pOffset) Find Project Triggers based provided search parameters and pagination input.<any>searchProjectVersions(ProjectVersionDataObject pParameters, Integer pLimit, Integer pOffset) Find Project Versions based provided search parameters and pagination input.<any>searchPropertyKeyDefinitions(PropertyKeyDefinitionDataObject pSearchParams, Integer pLimit, Integer pOffset) Find property key definitions based provided search parameters and pagination input.<any>searchPropertySets(PropertySetDataObject pSearchParams, Integer pLimit, Integer pOffset) Find property sets based provided search parameters and pagination input.<any>searchReleaseProjects(RelProjectDataObject pPojo, Integer pLimit, Integer pOffset) Find Release Projects based on provided search parameters and pagination input.<any>searchReleases(RelDefinitionDataObject pPojo, Integer pLimit, Integer pOffset) Find Releases based on provided search parameters and pagination input.<any>searchTargetGroups(TargetGroupDataObject pCriteriaObject, Integer pLimit, Integer pOffset) Find TargetGroups based provided search parameters and pagination input.<any>searchTasks(TasksQueryResultPojo pPojo, Integer pLimit, Integer pOffset) Find Tasks based provided search parameters and pagination input.<any>searchUsers(FlxUserDataObject pUserObject, Integer pLimit, Integer pOffset) Find Users based provided search parameters and pagination input.<any>searchWorkflows(WorkflowDataObject pCriteriaObject, Integer pLimit, Integer pOffset) <any>searchWorkItems(WorkItemDataObject pCriteriaObject, Integer pLimit, Integer pOffset) Find WorkItems based on provided search parameters and pagination input.voidstartRelease(Long pReleaseId) Start a FlexDeploy Release.voidstartRelease(String pReleaseName) Start a FlexDeploy Release.voidunassignGroupFromUser(Long pGroupId, Long pUserId) Unassigns Group from User with the provided data.voidunassignGroupFromUser(String pGroupName, String pUserName) Unassigns Group from User with the provided data.voidunassignTag(FlexDeploySecurityConstants.SecurityObjectType pObjectType, Long pObjectId, String pTagName) Unassigns tag from the object with the provided data.voidupdateBranch(Long pProjectId, Long pBranchId, ProjectStreamPojo pBranch) Updates a FlexDeploy Branch on a given project.updateCmsTicket(CmsTicketDataObject pCmsTicketDataObject) Update CMS Ticket based on the CMS Ticket details.CredentialDataObjectupdateCredential(CredentialDataObject pCredentialDataObject) Update Credential with the provided data.updateEndpoint(EndpointDataObject pEndpointDataObject) Update Endpoint based on the Endpoint details.updateEnvironment(EnvironmentDataObject pEnvDataObject) Update Environment based on the Environment details.Updates FlexWorkItem based on the provided details.updateFlxWorkItemAssignee(String pWorkItemNumber, String pUserName) Updates a FlexWorkItem Assignee.Updates FlexWorkItem field based on the FlexWorkItem field details.Updates FlexWorkItem field group based on the FlexWorkItem field group details.updateFlxWorkItemStatus(String pWorkItemNumber, String pStatusName) Updates a FlexWorkItem status.updateFlxWorkItemType(String pWorkItemNumber, String pTypeCode) Updates a FlexWorkItem Type.updateFolder(FolderDataObject pFolderDataObject) Update Folder based on the Folder details.updateGroup(FlxGroupDataObject pGroupDataObject) Update Group based on the Group details.Updates an existing Integration instance and its associated properties with the provided data.voidupdatePackage(Long pProjectId, String pPackageName, Long pBranchId, PollingResult pPollingResult) Updates a given package relative to a PollingResult.voidupdatePackage(Long pProjectId, String pPackageName, Long pBranchId, PollingResult pPollingResult, boolean pSortFiles) Updates a given package relative to a PollingResult.voidupdatePackageStatus(Long pProjectId, String pPackageName, String pPackageStatus) Updates a given package status.updateProject(Long pProjectId, ProjectPojo pProjectPojo) Updates a project with the provided data.updateProjectPackage(ProjectPackageDataObject pPackagePojo) Updates an existing project package using the provided data object and returns the updated project package details.updateProjectProperties(Long pProjectId, List<PropertyValuePojo> pPropertyPojos) Updates a project's properties with the provided data.voidupdateProjectProperty(Long pProjectId, String pPropertyKeyCode, Serializable pNewValue) Update a project property with the provided property key code and project id.Updates Project Trigger based on the project trigger details.Updates a property key definition with the provided data.updateRelease(RelDefinitionDataObject pReleasePojo) Updates a Release with the provided data.updateReleaseProject(RelProjectDataObject pRelProjectDataObj) Updates a Release with the provided data.updateReleaseProperties(Long pReleaseDefinitionId, List<RelPropertyDataObject> pInputs) Updates a Release properties with the provided data.voidupdateReleaseProperty(Long pReleaseDefId, String pPropertyKeyCode, Serializable pNewValue) Updates a release's property with the provided property key code.voidupdateScanResult(Long pProjectId, String pScanId, ScanResultPojo pScanResultPojo, boolean pIsStatusSuccess) Updates a FlexDeploy ScanResult on a given project.updateSCMInstance(Long pSCMInstanceId, SCMInstancePojo pSCMInstancePojo) Updates an SCM instance with the given data.updateSCMInstance(Long pSCMInstanceId, String pSCMInstanceName, String pDescription, Boolean pIsActive, String pInstanceCode, List<PropertyValuePojo> pProperties, String pSCMType) Updates an SCM instance with the given data.updateSnapshotVariable(Long pSnapshotId, String pVariableCode, Serializable pNewValue) Updates a snapshot's variable with the provided variable code.voidupdateStream(Long pProjectId, Long pBranchId, ProjectStreamPojo pStream) Deprecated.updateTargetGroup(TargetGroupDataObject pTargetGroupDataObj) Update TargetGroup based on the TargetGroup details.updateTargetProperties(Long pTargetId, List<PropertyKeyDataObject> pPropertiesToUpdate) Updates a Target's properties with the provided data.updateUser(FlxUserDataObject pUserDataObject) Update User based on the User details.updateWorkflowPropertySet(PropertySetDataObject pPropertySet) Updates a property set with the provided data.updateWorkItem(WorkItemDataObject pPojo) Updates a WorkItem based on the provided details.updateWorkItemAssignee(String pWorkItemNumber, String pUserName) updateWorkItemStatus(String pWorkItemNumber, String pStatusName) updateWorkItemType(String pWorkItemNumber, String pTypeCode) voiduploadAttachmentsToIncident(String pCMSInstanceCode, String pIncidentNumber, Map<String, InputStream> pAttachments) Uploads attachments to an existing Jira or ServiceNow CMS Incident.voiduploadAttachmentsToTicket(String pCMSInstanceCode, String pTicketNumber, Map<String, InputStream> pAttachments) Uploads attachments to an existing Jira or ServiceNow CMS Ticket.Methods inherited from class flexagon.fd.services.groovy.functions.BaseFunctions
captureSecureValues, captureSecureValuesForLogFunction, decryptIntegrationInstance, doSimpleGet, findIntegrationInstanceByCode, getBinding, getLogFunctions, getServerBaseUrl, setBinding
-
Constructor Details
-
FlexDeploy2Functions
public FlexDeploy2Functions() -
FlexDeploy2Functions
-
-
Method Details
-
findLocalChangeLogs
public PollingResult findLocalChangeLogs(String pUrl, String pBranch, String pCurrentRevision, String pFromRevision) throws FlexCheckedException Finds change logs for a local ssh enabled git repository. This can be used as a replacement for the getChangeLogs functions if your git provider doesn't have a specific function. If fromRevision is null it will return an empty PollingResult object. You must set up authentication using SSH Keys on FlexDeploy server. If your repository is not ssh enabled seefindLocalChangeLogs- Specified by:
findLocalChangeLogsin interfaceIFlexDeployFunctions- Parameters:
pUrl- Url of the git repository to find logs againstpBranch- Branch to find logs againstpCurrentRevision- Current revision after the pushpFromRevision- Previous revision before the push- Returns:
- PollingResult object containing the change logs found.
- Throws:
FlexValidationException- if an invalid revision is passed.FlexCheckedException- Since:
- 5.3.0.1
-
findLocalChangeLogs
public PollingResult findLocalChangeLogs(String pUrl, String pBranch, String pCurrentRevision, String pFromRevision, boolean pIgnoreTargetBranchMerge) throws FlexCheckedException Finds change logs for a local ssh enabled git repository. This can be used as a replacement for the getChangeLogs functions if your git provider doesn't have a specific function. If fromRevision is null it will return an empty PollingResult object. You must set up authentication using SSH Keys on FlexDeploy server. If your repository is not ssh enabled seefindLocalChangeLogs- Specified by:
findLocalChangeLogsin interfaceIFlexDeployFunctions- Parameters:
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 true- Returns:
- PollingResult object containing the change logs found.
- Throws:
FlexValidationException- if an invalid revision is passed.FlexCheckedException- Since:
- 5.3.0.3
-
findLocalChangeLogs
public PollingResult findLocalChangeLogs(String pUrl, String pBranch, String pCurrentRevision, String pFromRevision, String pUser, String pPassword) throws FlexCheckedException Finds change logs for a git repository. This can be used as a replacement for the getChangeLogs functions if your git provider doesn't have a specific function. If fromRevision is null, it will return an empty PollingResult object. Git repository will be cloned to get change logs.- Specified by:
findLocalChangeLogsin interfaceIFlexDeployFunctions- Parameters:
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 user- Returns:
- PollingResult object containing the change logs found.
- Throws:
FlexValidationException- if an invalid revision is passed.FlexCheckedException- Since:
- 5.3.0.1
-
findLocalChangeLogs
public PollingResult findLocalChangeLogs(String pUrl, String pBranch, String pCurrentRevision, String pFromRevision, String pUser, String pPassword, boolean pIgnoreTargetBranchMerge) throws FlexCheckedException Finds change logs for a git repository. This can be used as a replacement for the getChangeLogs functions if your git provider doesn't have a specific function. If fromRevision is null it will return an empty PollingResult object. Git repository will be cloned to get change logs.- Specified by:
findLocalChangeLogsin interfaceIFlexDeployFunctions- Parameters:
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 true- Returns:
- PollingResult object containing the change logs found.
- Throws:
FlexValidationException- if an invalid revision is passed.FlexCheckedException- Since:
- 5.3.0.3
-
getProject
Returns project information for a given projectId.- Specified by:
getProjectin interfaceIFlexDeployFunctions- Parameters:
pProjectId- Project Id of the project to retrieve- Returns:
- Object containing metadata about the given project
- Throws:
FlexRowNotFoundException- if no project is found for givenpProjectId- Since:
- 5.3.0.1
-
createProject
Creates and configures a project with the provided data. Returns the Id of the project after creation.- Specified by:
createProjectin interfaceIFlexDeployFunctions- Parameters:
pProjectPojo- - Object containing project configuration information.- Returns:
- Id of the created project
- Since:
- 5.4.0.1
-
updateProject
Updates a project with the provided data.- Specified by:
updateProjectin interfaceIFlexDeployFunctions- Parameters:
pProjectId- - Id of the project that is to be updated.pProjectPojo- - Object containing project configuration information.- Returns:
- Id of the updated project.
- Throws:
FlexRowNotFoundException- ifpProjectIddoes not exist.- Since:
- 5.4.0.1
-
patchProject
Updates a project with the provided data. This will only update fields that are passed in the pojo. Returns the Id of the project after updating.- Specified by:
patchProjectin interfaceIFlexDeployFunctions- Parameters:
pProjectId- - Id of the project that is to be updated.pProjectPojo- - Object containing project configuration information.- Returns:
- Id of the updated project.
- Throws:
FlexRowNotFoundException- ifpProjectIddoes not exist.- Since:
- 5.4.0.1
-
updateProjectProperties
Updates a project's properties with the provided data. This will only update properties that are passed in the list. Returns the Id of the project after updating.- Specified by:
updateProjectPropertiesin interfaceIFlexDeployFunctions- Parameters:
pProjectId- - Id of the project that is to be updated.pPropertyPojos- - List of property values to be updated on the project.- Returns:
- Id of the updated project.
- Since:
- 5.4.0.1
-
patchProjectProperties
Updates a project's properties with the provided data. This will only update properties that are passed in the list.- Specified by:
patchProjectPropertiesin interfaceIFlexDeployFunctions- Parameters:
pProjectId- - Id of the project that is to be updated.pPropertyPojos- - List of property values to be updated on the project.- Returns:
- Id of the updated project.
- Since:
- 5.4.0.1
-
addFilesToPackage
Adds files to a given package. The files should match the filepath found in the File Catalog on the project.- Specified by:
addFilesToPackagein interfaceIFlexDeployFunctions- Parameters:
pProjectId- Parent project id of the packagepPackageName- Name of the packagepFiles- Filepaths to add to the package.- Throws:
FlexRowNotFoundException- ifpPackageNamedoes not exist on the projectpProjectId.
-
populateFiles
Deprecated.- Specified by:
populateFilesin interfaceIFlexDeployFunctions
-
discoverFilesFromSCMAsync
Discover package-based deployment files asynchronously for a given project. This will automatically save discover changes, so it should only be used after commands and attributes have been validated. This method only supports discovering from SCM.- Specified by:
discoverFilesFromSCMAsyncin interfaceIFlexDeployFunctions- Parameters:
pProjectId- Project id to discover files for. This should be a project using package-based deployment.pBranchId- Branch id to use when discovering.- Throws:
FlexAPIException- if it is a message wrapper error.- See Also:
-
discoverFilesFromSCMAsync
public void discoverFilesFromSCMAsync(Long pProjectId, Long pBranchId, boolean pInactivateMissingFiles) - Specified by:
discoverFilesFromSCMAsyncin interfaceIFlexDeployFunctions
-
discoverFiles
Discover package-based deployment files for a given project. This will automatically save discover changes, so it should only be used after commands and attributes have been validated. This method only supports discovering from SCM.- Specified by:
discoverFilesin interfaceIFlexDeployFunctions- Parameters:
pProjectId- Project id to populate files for. This should be a project using partial deployment.pBranchId- Branch id to use when populating.- Returns:
- The number of new files found during populate.
- Throws:
FlexAPIException- if it is a message wrapper error.- See Also:
-
discoverFiles
- Specified by:
discoverFilesin interfaceIFlexDeployFunctions
-
discoverFilesFromBackendAsync
Discover package-based deployment files from a backend system asynchronously for a given project. This will automatically save discover changes, so it should only be used after commands and attributes have been validated.- Specified by:
discoverFilesFromBackendAsyncin interfaceIFlexDeployFunctions- Parameters:
pProjectId- Project id to discover files for. This should be a project using package-based deployment.pEnvironmentId- Environment id to use when discovering.- Throws:
FlexAPIException- if it is message wrapper error.- See Also:
-
discoverFilesFromBackendAsync
public void discoverFilesFromBackendAsync(Long pProjectId, Long pEnvironmentId, boolean pInactivateMissingFiles) - Specified by:
discoverFilesFromBackendAsyncin interfaceIFlexDeployFunctions
-
discoverFilesFromBackend
Discover package-based deployment files from a backend system for a given project. This will automatically save discover changes, so it should only be used after commands and attributes have been validated.- Specified by:
discoverFilesFromBackendin interfaceIFlexDeployFunctions- Parameters:
pProjectId- Project id to discover files for. This should be a project using package-based deployments.pEnvironmentId- Environment id to use when discovering.- Returns:
- The number of new files found during discovery.
- Throws:
FlexAPIException- if it is a message wrapper error.- See Also:
-
discoverFilesFromBackend
public Integer discoverFilesFromBackend(Long pProjectId, Long pEnvironmentId, boolean pInactivateMissingFiles) - Specified by:
discoverFilesFromBackendin interfaceIFlexDeployFunctions
-
updatePackageStatus
Updates a given package status.- Specified by:
updatePackageStatusin interfaceIFlexDeployFunctions- Parameters:
pProjectId- Parent project id of the packagepPackageName- Name of the packagepPackageStatus- } The updated package status [ACTIVE, COMPLETED, or INACTIVE]- Throws:
FlexRowNotFoundException- ifpProjectIdis not found orpPackageNamedoes not exist on the projectFlexValidationException- ifpPackageStatusis invalid
-
updatePackage
public void updatePackage(Long pProjectId, String pPackageName, Long pBranchId, PollingResult pPollingResult) Updates a given package relative to a PollingResult. For manually adding files to a package use theaddFilesToPackagemethod. 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.- Specified by:
updatePackagein interfaceIFlexDeployFunctions- Parameters:
pProjectId- Parent project id of the packagepPackageName- Name of the packagepBranchId- Branch to use when populating files if new files are foundpPollingResult- PollingResult object to use for finding differences- Throws:
FlexRowNotFoundException- ifpProjectIdis not found orpPackageNamedoes not exist on the projectFlexValidationException- if project other than SCM Type GIT is invalid.- See Also:
-
updatePackage
public void updatePackage(Long pProjectId, String pPackageName, Long pBranchId, PollingResult pPollingResult, boolean pSortFiles) Updates a given package relative to a PollingResult. For manually adding files to a package use theaddFilesToPackagemethod. 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.- Specified by:
updatePackagein interfaceIFlexDeployFunctions- Parameters:
pProjectId- Parent project id of the packagepPackageName- Name of the packagepBranchId- Branch to use when populating files if new files are foundpPollingResult- PollingResult object to use for finding differencespSortFiles- Sort package files after update- Throws:
FlexRowNotFoundException- ifpProjectIdis not found orpPackageNamedoes not exist on the projectFlexValidationException- if project other than SCM Type GIT is invalid.- See Also:
-
createPackage
public Long createPackage(Long pProjectId, String pPackageName, String pDescription, List<String> pFiles) Creates a package for a given project and list of files.- Specified by:
createPackagein interfaceIFlexDeployFunctions- Parameters:
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.- Returns:
- Package id
-
createDynamicPackage
public Long createDynamicPackage(Long pProjectId, String pPackageName, String pDescription, String pIncludePath, String pExcludePath) Creates a dynamic package for given include and exclude path.- Specified by:
createDynamicPackagein interfaceIFlexDeployFunctions- Parameters:
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.- Returns:
- Package id
-
createPackage
public Long createPackage(Long pProjectId, String pPackageName, String pDescription, Long pBranchId, PollingResult pPollingResult) Creates a package for a given project relative to a PollingResult.- Specified by:
createPackagein interfaceIFlexDeployFunctions- Parameters:
pProjectId- Parent project id of the packagepPackageName- Name of the packagepDescription- Description to give the package.pPollingResult- PollingResult object to use for finding differences- Throws:
FlexRowNotFoundException- ifpProjectIdis not found orpPackageNamedoes not exist on the projectFlexValidationException- if projectpProjectIdis invalid,- Since:
- 5.5.0.3
- See Also:
-
createProjectPackage
public ProjectPackageDataObject createProjectPackage(ProjectPackageDataObject pPackagePojo, Boolean pSortFiles) Creates the package for a project using the provided data object and returns the created project package details.- Specified by:
createProjectPackagein interfaceIFlexDeployFunctions- Parameters:
pPackagePojo- Object containing data for the project package.pSortFiles- Sort package files after update.- Returns:
- ProjectPackageDataObject representing the created package.
- Throws:
FlexRowNotFoundException- ifpPackagePojo.projectIdis not found orpPackagePojo.packageNamedoes not exist on the project.FlexValidationException- if the projectpPackagePojo.projectIdis invalid or the package data fails validation.
-
updateProjectPackage
Updates an existing project package using the provided data object and returns the updated project package details.- Specified by:
updateProjectPackagein interfaceIFlexDeployFunctions- Parameters:
pPackagePojo- Object containing project package data to update.- Returns:
- ProjectPackageDataObject representing the updated package.
- Throws:
FlexRowNotFoundException- ifpPackagePojo.projectIdis not found orpPackagePojo.packageNamedoes not exist on the project.FlexValidationException- if the projectpPackagePojo.projectIdis invalid or the package data fails validation.
-
patchProjectPackage
public ProjectPackageDataObject patchProjectPackage(ProjectPackageDataObject pPackagePojo, Boolean pSortFiles) Updates a package with the provided data. This will only update fields that are passed in the pojo and returns the updated project package details.- Specified by:
patchProjectPackagein interfaceIFlexDeployFunctions- Parameters:
pPackagePojo- Object containing project package data for the update.pSortFiles- Sort package files after update.- Returns:
- ProjectPackageDataObject representing the patched package.
- Throws:
FlexRowNotFoundException- ifpPackagePojo.projectIdis not found orpPackagePojo.packageNamedoes not exist on the project.FlexValidationException- if the projectpPackagePojo.projectIdis invalid or the package data fails validation.
-
getProjectPackageByName
Gets a project package by project id and package name. Returns the project package details.- Specified by:
getProjectPackageByNamein interfaceIFlexDeployFunctions- Parameters:
pProjectId- Parent project id of the package.pPackageName- Name of the package.- Returns:
- ProjectPackageDataObject representing the requested package.
- Throws:
FlexRowNotFoundException- ifpProjectIdis not found orpPackageNamedoes not exist on the project.FlexValidationException- if the projectpProjectIdis invalid or the package name is null or empty.
-
getProjectPackageById
Gets a project package by package id and returns the project package details.- Specified by:
getProjectPackageByIdin interfaceIFlexDeployFunctions- Parameters:
pProjectPackageId- Id of the package project.- Returns:
- ProjectPackageDataObject representing the requested package.
- Throws:
FlexRowNotFoundException- ifpProjectPackageIddoes not exist.FlexValidationException- if the providedpProjectPackageIdis invalid.
-
deletePackage
Deletes a project package- Specified by:
deletePackagein interfaceIFlexDeployFunctions- Parameters:
pProjectId- Parent project id package is under.pPackageName- Name of package to delete.
-
buildPackage
Builds a FlexDeploy Package. This function will gather change logs and committer information from scm. If you have this information already you can improve performance by usingPollingResult variant- Specified by:
buildPackagein interfaceIFlexDeployFunctions- Parameters:
pBranchId- Branch to use when building package. SeefindBranchId.projectPackage- Wrapper object containing project id and package name to build.- Returns:
- WorkflowRequest id
- Throws:
FlexRowNotFoundException- ifpBranchIdnot found in project. if no row found for project. if default build environment not foundFlexValidationException- if the requested project is a utility project. if the requested project is not active. if no build workflow or target group mapped for the project.
-
buildPackage
public Long buildPackage(Long pBranchId, ProjectPackagePojo projectPackage, BuildOptions pBuildOptions) Builds a FlexDeploy Package. This function will gather change logs and committer information from scm. If you have this information already you can improve performance by usingPollingResult variant- Specified by:
buildPackagein interfaceIFlexDeployFunctions- Parameters:
pBranchId- Branch to use when building package. SeefindBranchId.projectPackage- Wrapper object containing project id and package name to build.pBuildOptions- Additional build object where optional options can be set.- Returns:
- WorkflowRequest id
- Throws:
FlexRowNotFoundException- ifpBranchIdnot found in project. if no row found for project. if default build environment not foundFlexValidationException- if the requested project is a utility project. if the requested project is not active. if no build workflow or target group mapped for the project.
-
buildPackage
public Long buildPackage(Long pBranchId, ProjectPackagePojo projectPackage, PollingResult pPollingResult) Builds a FlexDeploy Package using a PollingResult.- Specified by:
buildPackagein interfaceIFlexDeployFunctions- Parameters:
pBranchId- Branch to use when building package. SeefindBranchId.projectPackage- Wrapper object containing project id and package name to build.pPollingResult- PollingResult object containing change logs and committer information.- Returns:
- WorkflowRequest id
- Throws:
FlexRowNotFoundException- ifpBranchIdnot found in project. if no row found for project. if default build environment not foundFlexValidationException- if the requested project is a utility project. if the requested project is not active. if no build workflow or target group mapped for the project.- See Also:
-
buildPackage
public Long buildPackage(Long pBranchId, ProjectPackagePojo projectPackage, PollingResult pPollingResult, BuildOptions pBuildOptions) Builds a FlexDeploy Package using a PollingResult.- Specified by:
buildPackagein interfaceIFlexDeployFunctions- Parameters:
pBranchId- Branch to use when building package. SeefindBranchId.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.- Returns:
- WorkflowRequest id
- Throws:
FlexRowNotFoundException- ifpBranchIdnot found in project. if no row found for project. if default build environment not foundFlexValidationException- if the requested project is a utility project. if the requested project is not active. if no build workflow or target group mapped for the project.- See Also:
-
buildProject
Builds a FlexDeploy Project. This function will gather change logs and committer information from scm. If you have this information already you can improve performance by usingPollingResult variant- Specified by:
buildProjectin interfaceIFlexDeployFunctions- Parameters:
pBranchId- Branch to use when building project. SeefindBranchId.pProjectId- Project id to build.- Returns:
- WorkflowRequest id
- Throws:
FlexRowNotFoundException- ifpBranchIdnot found in project. if no row found for project. if default build environment not foundFlexValidationException- if the requested project is a utility project. if the requested project is not active. if no build workflow or target group mapped for the project.
-
buildProject
Builds a FlexDeploy Project. This function will gather change logs and committer information from scm. If you have this information already you can improve performance by usingPollingResult variant- Specified by:
buildProjectin interfaceIFlexDeployFunctions- Parameters:
pBranchId- Branch to use when building project. SeefindBranchId.pProjectId- Project id to build.pBuildOptions- Additional build object where optional options can be set.- Returns:
- WorkflowRequest id
- Throws:
FlexRowNotFoundException- ifpBranchIdnot found in project. if no row found for project. if default build environment not foundFlexValidationException- if the requested project is a utility project. if the requested project is not active. if no build workflow or target group mapped for the project.
-
buildProject
Builds a FlexDeploy Project using a PollingResult.- Specified by:
buildProjectin interfaceIFlexDeployFunctions- Parameters:
pBranchId- Branch to use when building project. SeefindBranchId.pProjectId- Project id to build.pPollingResult- PollingResult object containing change logs and committer information.- Returns:
- WorkflowRequest id
- Throws:
FlexRowNotFoundException- ifpBranchIdnot found in project. if no row found for project. if default build environment not foundFlexValidationException- if the requested project is a utility project. if the requested project is not active. if no build workflow or target group mapped for the project.- See Also:
-
buildProject
public Long buildProject(Long pBranchId, Long pProjectId, PollingResult pPollingResult, BuildOptions pBuildOptions) Builds a FlexDeploy Project using a PollingResult.- Specified by:
buildProjectin interfaceIFlexDeployFunctions- Parameters:
pBranchId- Branch to use when building project. SeefindBranchId.pProjectId- Project id to build.pPollingResult- PollingResult object containing change logs and committer information.pBuildOptions- Additional build object where optional options can be set.- Returns:
LongWorkflowRequest id- Throws:
FlexRowNotFoundException- ifpBranchIdnot found in project. if no row found for project. if default build environment not foundFlexValidationException- if the requested project is a utility project. if the requested project is not active. if no build workflow or target group mapped for the project.- See Also:
-
deployPackage
public Long deployPackage(Long pProjectId, String pPackageName, String pEnvironmentCode, DeployOptions pDeployOptions) Deploys a FlexDeploy Package.- Specified by:
deployPackagein interfaceIFlexDeployFunctions- Parameters:
pProjectId- Project id to deploy.pPackageName- Name of packagepEnvironmentCode- Code of the environment.pDeployOptions- Additional deploy object where optional options can be set.- Returns:
- WorkflowRequest id
- Throws:
FlexRowNotFoundException- if no row found forpProjectId. if no row found forpEnvironmentCode. if no row found forpPackageName.FlexValidationException- ifpEnvironmentCodeis missing. if the requested project is a utility project. if the requested project is not active. if no deploy workflow or target group mapped for the project. if package name given for standard project.
-
deployProject
Deploys a FlexDeploy Project.- Specified by:
deployProjectin interfaceIFlexDeployFunctions- Parameters:
pProjectId- Project id to deploy.pEnvironmentCode- Code of the environment.pDeployOptions- Additional deploy object where optional options can be set.- Returns:
- WorkflowRequest id
- Throws:
FlexRowNotFoundException- if no row found forpProjectId. if no row found forpEnvironmentCode.FlexValidationException- ifpEnvironmentCodeis missing. if the requested project is a utility project. if the requested project is not active. if no deploy workflow or target group mapped for the project.
-
findProjectsForNewBranch
Finds relevant FlexDeploy Projects for a new branch event. All webhook enabled projects using this repository will be returned. This function currently only compares against Git repositories and is not compatible with other scm types.- Specified by:
findProjectsForNewBranchin interfaceIFlexDeployFunctions- Parameters:
pRepositoryName- Git repository name with the change. Name is of the form (username/repo). e.g. toddmotto/public-apis- Returns:
- Set of Project ids
- Since:
- 5.3.0.1
-
findProjectsForNewBranch
Finds relevant FlexDeploy Projects for a new branch event. Only projects whose sources use the files found in the polling result will be returned. If you want to return ALL projects regardless of changed files then usefindProjectsForNewBranch. This function currently only compares against Git repositories and is not compatible with other scm types.- Specified by:
findProjectsForNewBranchin interfaceIFlexDeployFunctions- Parameters:
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.- Returns:
- Set of Project ids
- Since:
- 5.3.0.1
- See Also:
-
findProjectsForChange
public Set<Long> findProjectsForChange(String pRepositoryName, String pbranchName, PollingResult pPollingResult) Finds relevant FlexDeploy Projects for any given PollingResult and branch. A project must have a webhook trigger configured for this branch on the CI tab in order to be found by this function. This function currently only compares against Git repositories and is not compatible with other scm types.- Specified by:
findProjectsForChangein interfaceIFlexDeployFunctions- Parameters:
pRepositoryName- Git repository name with the change. Name is of the form (username/repo). e.g. toddmotto/public-apispbranchName- Branch name for which the change occurred. e.g. 'master'pPollingResult- PollingResult object for determining relevant projects.- Returns:
- Set of Project ids
- See Also:
-
findProjectsForChange
public Set<Long> findProjectsForChange(String pRepositoryName, String pbranchName, List<String> pChangedFiles) Finds relevant FlexDeploy Projects for a list of changed files. A project must have a webhook trigger configured for this branch on the CI tab in order to be found by this function. This function currently only compares against Git repositories and is not compatible with other scm types.- Specified by:
findProjectsForChangein interfaceIFlexDeployFunctions- Parameters:
pRepositoryName- Git repository name with the change. Name is of the form (username/repo). e.g. toddmotto/public-apispbranchName- 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.- Returns:
- Set of Project ids
- See Also:
-
findPackagesForChange
public Set<ProjectPackagePojo> findPackagesForChange(String pRepositoryName, String pbranchName, PollingResult pPollingResult) Finds relevant FlexDeploy Packages for any given PollingResult. A package must have a webhook trigger configured with this branch on the CI tab in order to be found by this function. This function currently only compares against Git repositories and is not compatible with other scm types.- Specified by:
findPackagesForChangein interfaceIFlexDeployFunctions- Parameters:
pRepositoryName- Git repository name with the change. Name is of the form (username/repo). e.g. toddmotto/public-apispbranchName- Branch name for which the change occurred. e.g. 'master'pPollingResult- PollingResult object for determining relevant packages.- Returns:
- Set of ProjectPackages
- See Also:
-
findPackagesForChange
public Set<ProjectPackagePojo> findPackagesForChange(String pRepositoryName, String pBranchName, List<String> pChangedFiles) Finds relevant FlexDeploy Packages for a list of changed files. A package must have a webhook trigger configured with this stream on the CI tab in order to be found by this function. This function currently only compares against Git repositories and is not compatible with other scm types.- Specified by:
findPackagesForChangein interfaceIFlexDeployFunctions- Parameters:
pRepositoryName- Git repository name with the change. Name is of the form (username/repo). e.g. toddmotto/public-apispBranchName- 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.- Returns:
- Set of ProjectPackages
- See Also:
-
findPackagesForChange
public Set<ProjectPackagePojo> findPackagesForChange(String pRepositoryName, String pBranchName, List<String> pChangedFiles, PackageSearchOptions pPackageSearchOptions) Finds relevant FlexDeploy Packages for a list of changed files. A package must have a webhook trigger configured with this stream on the CI tab in order to be found by this function. This function currently only compares against Git repositories and is not compatible with other scm types.- Specified by:
findPackagesForChangein interfaceIFlexDeployFunctions- Parameters:
pRepositoryName- Git repository name with the change. Name is of the form (username/repo). e.g. toddmotto/public-apispBranchName- 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.pPackageSearchOptions- Package options to find the packages based on the values- Returns:
- Set of ProjectPackages
- See Also:
-
findProjectId
Finds the FlexDeploy Project id for any given name. This will only work properly if all project names are unique.- Specified by:
findProjectIdin interfaceIFlexDeployFunctions- Parameters:
pProjectName- Case sensitive project name to search by- Returns:
- Project id
- Throws:
FlexRowNotFoundException- if no row found forpProjectName.
-
findProjectWithId
Finds Project using Id.- Specified by:
findProjectWithIdin interfaceIFlexDeployFunctions- Parameters:
pProjectId- - Id of Project to find.- Throws:
FlexRowNotFoundException- if no row found forpProjectId.
-
findProjectsWithName
Finds FlexDeploy Projects for any given name- Specified by:
findProjectsWithNamein interfaceIFlexDeployFunctions- Parameters:
pProjectName- Case-insensitive project name to search by
-
searchProjects
Find Projects based provided search parameters and pagination input. Returns a PaginatedResponse containing list of Projects matching search parameters.- Specified by:
searchProjectsin interfaceIFlexDeployFunctions- Parameters:
pCriteriaObject- - ProjectDataObject 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 beginning of the query result.- Returns:
- PaginatedResponse containing the list of Projects matching the search criteria.
-
findBranchId
Finds a FlexDeploy branch id from the Branch name.- Specified by:
findBranchIdin interfaceIFlexDeployFunctions- Parameters:
pProjectId- Project id on which the branch belongs.pBranchName- Name of the branch. e.g. 'feature/JIRA-12', 'master'.- Returns:
- Branch id
- Throws:
FlexRowNotFoundException- if no row found forpBranchNameforpProjectId.
-
createBranch
Create a FlexDeploy Branch on a given project. Allows custom setting of the version syntax. Useful for when a branch is created in source control.- Specified by:
createBranchin interfaceIFlexDeployFunctions- Parameters:
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.- Returns:
- branch id
- Since:
- 5.3.0.1
-
createBranch
Create a FlexDeploy Branch on a given project. Useful for when a branch is created in source control.- Specified by:
createBranchin interfaceIFlexDeployFunctions- Parameters:
pProjectId- Project to create the branch on.pBranch- ProjectStreamDataObject object representing the branch to create.- Returns:
- branch id
- Since:
- 5.4.0.2
-
createBranch
Create a FlexDeploy Branch on a given project. The branch version syntax will default to 1.0.x.n where x is the branch name and n is the incrementing version. Useful for when a branch is created in source control.- Specified by:
createBranchin interfaceIFlexDeployFunctions- Parameters:
pProjectId- Project to create the branch on.pBranchName- Branch name to create.- Returns:
- Branch id
-
updateBranch
Updates a FlexDeploy Branch on a given project.- Specified by:
updateBranchin interfaceIFlexDeployFunctions- Parameters:
pProjectId- Project to create the branch on.pBranchId- Id of the branch to update.pBranch- ProjectStreamPojo object representing the branch to update.- Throws:
FlexRowNotFoundException- ifpBranchIddoes not exist forpProjectId.- Since:
- 5.4.0.2
-
patchBranch
Patches a FlexDeploy Branch on a given project. This will apply in a patch format. Only the fields passed will be updated.- Specified by:
patchBranchin interfaceIFlexDeployFunctions- Parameters:
pProjectId- Project to create the branch on.pBranchId- Id of the branch to update.pBranch- ProjectStreamDataObject object representing the branch to update.- Throws:
FlexRowNotFoundException- ifpBranchIddoes not exist forpProjectId.- Since:
- 5.4.0.2
-
inactivateBranch
Inactive a FlexDeploy Branch on a project. Useful for when a branch is deleted from source control.- Specified by:
inactivateBranchin interfaceIFlexDeployFunctions- Parameters:
pProjectId- Project id for which the branch belongs.pBranchName- Branch name to inactivate.
-
activateBranch
Activate a FlexDeploy Branch on a project.- Specified by:
activateBranchin interfaceIFlexDeployFunctions- Parameters:
pProjectId- project id for which the branch belongs.pBranchName- Branch name to inactivate.
-
findIntegrationInstance
public IntegrationInstancePojo findIntegrationInstance(String pIntegrationInstanceCode, String pType) throws FlexNotFoundException Gets an integration instance based on the code. If the code does not correspond to an integration instance it will not be returned.- Specified by:
findIntegrationInstancein interfaceIFlexDeployFunctions- Parameters:
pIntegrationInstanceCode- Code for the integration instance.pType- Type of the integration instance. {SCM, TEST, ITS, CMS, CLOUD, ARTIFACTREPO, CISERVER, SCANTOOL, MESSAGING, OTHERTOOLS}.- Returns:
- Simple pojo of the Integration Instance.
- Throws:
FlexNotFoundException- if no integration instance found for passed code.- Since:
- 5.4
-
createSCMInstance
public Long createSCMInstance(String pSCMInstanceName, String pDescription, Boolean pIsActive, String pInstanceCode, List<PropertyValuePojo> pProperties, String pSCMType) Creates and configures an SCM Instance with the provided data.- Specified by:
createSCMInstancein interfaceIFlexDeployFunctions- Parameters:
pSCMInstanceName- - The unique name of the SCM instance.pDescription- - The description of the SCM instance.pIsActive- - Whether 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.- Returns:
- Id of the created SCM instance.
- Throws:
FlexValidationException- if an invalid value is passed in pSCMInstancePojo.- Since:
- 5.4.0.1
-
createSCMInstance
Creates and configures an SCM instance with the given data.- Specified by:
createSCMInstancein interfaceIFlexDeployFunctions- Parameters:
pSCMInstancePojo- - The object containing all of the required data for the SCM instance.- Returns:
- The Id of the created SCM instance.
- Throws:
FlexValidationException- if an invalid value is passed in pSCMInstancePojo.- Since:
- 5.4.0.1
-
updateSCMInstance
public Long updateSCMInstance(Long pSCMInstanceId, String pSCMInstanceName, String pDescription, Boolean pIsActive, String pInstanceCode, List<PropertyValuePojo> pProperties, String pSCMType) Updates an SCM instance with the given data. Returns the Id of the SCM instance after updating. If a value is left null the attribute will not be updated.- Specified by:
updateSCMInstancein interfaceIFlexDeployFunctions- Parameters:
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 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.- Returns:
- The Id of the updated SCM Instance
- Throws:
FlexValidationException- if an invalid value is passed in pSCMInstancePojo.- Since:
- 5.4.0.1
-
updateSCMInstance
Updates an SCM instance with the given data. Returns the Id of the SCM instance after updating. If a value is left null the attribute will not be updated.- Specified by:
updateSCMInstancein interfaceIFlexDeployFunctions- Parameters:
pSCMInstanceId- - The Id of the instance to be updated.pSCMInstancePojo- - Object containing all of the required data for the SCM instance.- Returns:
- The Id of the updated SCM instance.
- Throws:
FlexValidationException- if an invalid value is passed in pSCMInstancePojo.- Since:
- 5.4.0.1
-
getIntegrationInstance
Gets an integration instance based on the id. If the id does not correspond to an integration instance it will not be returned.- Specified by:
getIntegrationInstancein interfaceIFlexDeployFunctions- Parameters:
pIntegrationInstanceId- Integration Instance id.pType- Type of the integration instance. {SCM, TEST, ITS, CMS, CLOUD, ARTIFACTREPO, CISERVER, SCANTOOL, MESSAGING, OTHERTOOLS}.- Returns:
- Simple pojo of the Integration Instance.
- Throws:
FlexRowNotFoundException- if no integration instance found forpIntegrationInstanceId.- Since:
- 5.4
-
findCMSInstance
Gets a CMSInstance based on the CMS Instance Code passed. This method returns a simple object containing the metadata of the cms instance.- Specified by:
findCMSInstancein interfaceIFlexDeployFunctions- Parameters:
pCMSInstanceCode- Code of the instance you wish to retrieve.- Returns:
- Simple pojo of the CMS Instance.
- Throws:
FlexRowNotFoundException- if no instance found forpCMSInstanceCode.- Since:
- 5.4
-
getCMSInstance
Gets a CMSInstance based on the CMS Instance Id passed. This method returns a simple object containing the metadata of the cms instance.- Specified by:
getCMSInstancein interfaceIFlexDeployFunctions- Parameters:
pCMSInstanceId- Id of the instance you wish to retrieve.- Returns:
- Simple pojo of the CMS Instance.
- Throws:
FlexRowNotFoundException- if no instance found forpCMSInstanceId.- Since:
- 5.4
-
getChangeManagementSystemByInstanceCode
Returns a CMS System for a particular CMS Instance by searching with Instance Code.- Specified by:
getChangeManagementSystemByInstanceCodein interfaceIFlexDeployFunctions- Parameters:
pCMSInstanceCode- Instance code to filter by.- Returns:
- ChangeManagementSystem implementation.
- Throws:
FlexRowNotFoundException- If no CMS instance was found givenpCode.
-
getChangeManagementSystemByInstanceName
Returns a CMS System for a particular CMS Instance by searching with Instance Name.- Specified by:
getChangeManagementSystemByInstanceNamein interfaceIFlexDeployFunctions- Parameters:
pcmsInstanceName- Instance name to filter by.- Returns:
- ChangeManagementSystem implementation.
- Throws:
FlexRowNotFoundException- If no CMS instance was found givenpName.
-
createIncidentForWorklowRequest
@Deprecated public CMSObject createIncidentForWorklowRequest(Long pWorkflowRequestId, Map<String, Serializable> pIncidentFields, String pCMSInstanceCode, String pCMSInstanceName) Deprecated.- Specified by:
createIncidentForWorklowRequestin interfaceIFlexDeployFunctions
-
createIncidentForWorkflowRequest
public CMSObject createIncidentForWorkflowRequest(Long pWorkflowRequestId, Map<String, Serializable> pIncidentFields, String pCMSInstanceCode, String pCMSInstanceName) Returns a CMSObject with incident details for a particular CMS Instance by searching with Instance Name and Instance Code. Null can be passed for code or name if you do not wish to filter by that argument. You can execute all available functions used internally such as createRequest and createIncident.- Specified by:
createIncidentForWorkflowRequestin interfaceIFlexDeployFunctions- Parameters:
pWorkflowRequestId- Associated workflow request id .pIncidentFields- Payload fields populated with key value to create an Incident.pCMSInstanceCode- Instance code to filter by.pCMSInstanceName- Instance name to filter by.- Returns:
- CMSObject Incident details.
-
createIncidentByWorkflowType
public CMSObject createIncidentByWorkflowType(Long pWorkflowRequestId, Map<String, Serializable> pIncidentFields) Returns a CMSObject with incident details. This method creates incident if project's folder has an external approval configured for the workflow type and environment.- Specified by:
createIncidentByWorkflowTypein interfaceIFlexDeployFunctions- Parameters:
pWorkflowRequestId- Associated workflow request id .pIncidentFields- Payload fields populated with key value to create an Incident.- Returns:
- CMSObject Incident details.
-
getChangeManagementSystemByInstanceId
Returns a CMS System for a particular CMS Instance Id. The instance allows direct integration with the change management system and includes functions such as createTicket and createIncident.- Specified by:
getChangeManagementSystemByInstanceIdin interfaceIFlexDeployFunctions- Parameters:
pCMSInstanceId- Instance id of the implementation you wish to retrieve.- Returns:
- ChangeManagementSystem implementation
- Throws:
FlexRowNotFoundException- If no instance found forpCMSInstanceId.
-
getUsersFromGroupId
Gets a list of FDUser objects that are members of the group with the given group Id.- Specified by:
getUsersFromGroupIdin interfaceIFlexDeployFunctions- Parameters:
pGroupId- FlexDeploy Group id to use.- Returns:
- List of FDUser objects.
- Since:
- 5.4
-
downloadLogs
Downloads the plugin logs from the workflow execution based on Id. The logs will be saved in order of execution to the specified path in a folder named after the workflow execution Id.- Specified by:
downloadLogsin interfaceIFlexDeployFunctions- Parameters:
pWorkflowExecutionId- Workflow Execution Id to capture logs for.pDestinationPath- The path where the log files folder will be saved.- Throws:
FlexValidationException- ifpDestinationPathis not provided.- Since:
- 5.4
-
getPluginLogInputStreams
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.- Specified by:
getPluginLogInputStreamsin interfaceIFlexDeployFunctions- Parameters:
pWorkflowExecutionId- Workflow Execution Id to capture logs for.- Since:
- 5.4
-
getPluginLogInputStreams
public Map<Long,InputStream> getPluginLogInputStreams(Long pWorkflowExecutionId, 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.- Specified by:
getPluginLogInputStreamsin interfaceIFlexDeployFunctions- Parameters:
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.- Since:
- 5.4
-
getPackage
Returns a PackageDetailsResponsePojo given a Project Id and Package Name- Specified by:
getPackagein interfaceIFlexDeployFunctions- Parameters:
pProjectId- Parent project id package is under.pPackageName- Name of package- Returns:
- PackageDetailsResponsePojo
- Throws:
FlexRowNotFoundException- If no project package found forpProjectIdandpPackageName.- Since:
- 5.5.0.3
-
getPluginLogs
Gets the plugin logs from the workflow execution based on Id.- Specified by:
getPluginLogsin interfaceIFlexDeployFunctions- Parameters:
pWorkflowExecutionId- Workflow Execution Id to capture logs for.- Returns:
- A collection, one per plugin execution, of PluginLogPojos.
- Since:
- 5.4
-
getFlexDeployBaseUrl
Returns the FlexDeploy Server base url configured in System Settings.- Specified by:
getFlexDeployBaseUrlin interfaceIFlexDeployFunctions- Returns:
- The base url of the current FlexDeploy service.
- Since:
- 5.4
-
getFlexDeployHostname
Returns the FlexDeploy Server host name. This relies on the Server base url being configured in System Settings.- Specified by:
getFlexDeployHostnamein interfaceIFlexDeployFunctions- Returns:
- The hostname of the current FlexDeploy service.
- Since:
- 9.0.0.3
-
getGroovyKey
- Specified by:
getGroovyKeyin classBaseFunctions
-
cleanup
public void cleanup()- Specified by:
cleanupin classBaseFunctions
-
executeUtility
Executes a FlexDeploy Utility Project for a single environment on all instances configured in Project Configuration.- Specified by:
executeUtilityin interfaceIFlexDeployFunctions- Parameters:
pProjectId- Project id to execute.pEnvironmentCode- Environment code to use for the utility request.- Returns:
- WorkflowRequest id
- Throws:
FlexValidationException- ifpEnvironmentCodeis not provided.
-
executeUtility
public Long executeUtility(Long pProjectId, String pEnvironmentCode, ExecuteOptions pExecuteOptions) Executes a FlexDeploy Utility Project for a single environment with specified ExecuteOptions. If instance codes are not passed in the ExecuteOptions, then the project will get executed on all instances associated to the passed environment.- Specified by:
executeUtilityin interfaceIFlexDeployFunctions- Parameters:
pProjectId- Project id to execute.pEnvironmentCode- Environment code to use for the utility request.pExecuteOptions- Execute options contains list of instances to execute on, with inputs and flexfields- Returns:
- WorkflowRequest id
- Throws:
FlexValidationException- ifpEnvironmentCodeis not provided.
-
findFolderId
Finds the FlexDeploy Folder id for any given name. This will only work properly if all Folder Names are unique.- Specified by:
findFolderIdin interfaceIFlexDeployFunctions- Parameters:
pFolderName- Case-sensitive folder name to search by- Returns:
- Folder id
- Throws:
FlexRowNotFoundException- If folder name is not found in FlexDeploy
-
findFolderWithId
Finds Folder using Id.- Specified by:
findFolderWithIdin interfaceIFlexDeployFunctions- Parameters:
pFolderId-- Returns:
-
findFoldersWithName
Finds FlexDeploy Folders for any given name- Specified by:
findFoldersWithNamein interfaceIFlexDeployFunctions- Parameters:
pFolderName- Case-insensitive project name to search by- Returns:
-
searchFolders
Find Folders based provided search parameters and pagination input. Returns a PaginatedResponse containing list of Folders matching search parameters.- Specified by:
searchFoldersin interfaceIFlexDeployFunctions- Parameters:
pCriteriaObject- - FolderDataObject 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 the beginning of the query result.- Returns:
- PaginatedResponse containing the list of Folders matching the search criteria.
-
searchBranches
public <any> searchBranches(ProjectStreamDataObject pCriteriaObject, Integer pLimit, Integer pOffset) Find Branches based provided search parameters and pagination input. Returns a PaginatedResponse containing list of Branches matching search parameters.- Specified by:
searchBranchesin interfaceIFlexDeployFunctions- Parameters:
pCriteriaObject- - ProjectStreamDataObject 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 beginning of the query result.- Returns:
- PaginatedResponse containing the list of Branches matching the search criteria.
-
getUser
Returns user information for a given username.- Specified by:
getUserin interfaceIFlexDeployFunctions- Parameters:
pUsername- - Username of the user to retrieve.- Returns:
- Object containing basic information for the given user if the user exists.
- Since:
- 5.7.0.2
-
getCurrentlyDeployedVersionId
public Long getCurrentlyDeployedVersionId(Long pProjectId, Long pEnvironmentId, Long pTargetGroupId) Returns currently deployed project version Id of the full deployment project.- Specified by:
getCurrentlyDeployedVersionIdin interfaceIFlexDeployFunctions- Parameters:
pProjectId- Project Id of the project to retrieve.pEnvironmentId- - Id of the environment.pTargetGroupId- - Id of the instance.- Returns:
- currently deployed project version Id.
-
getCurrentlyDeployedVersionId
public Long getCurrentlyDeployedVersionId(Long pProjectId, Long pEnvironmentId, Long pTargetGroupId, String pPackageName) Returns currently deployed project version Id of the partial deployment project.- Specified by:
getCurrentlyDeployedVersionIdin interfaceIFlexDeployFunctions- Parameters:
pProjectId- Project Id of the project to retrieve.pEnvironmentId- - Id of the environment.pTargetGroupId- - Id of the instance.pPackageName- - Name of the package.- Returns:
- currently deployed project version Id.
- Throws:
FlexValidationException- ifpPackageNameis not provided.
-
getPreviouslyDeployedVersionId
Returns previously deployed project version Id of the full deployment project.- Specified by:
getPreviouslyDeployedVersionIdin interfaceIFlexDeployFunctions- Parameters:
pProjectId- Project Id of the project to retrieve.pEnvironmentId- - Id of the environment.pTargetGroup- - Id of the target group.- Returns:
- previously deployed project version Id.
-
getPreviouslyDeployedVersionId
public Long getPreviouslyDeployedVersionId(Long pProjectId, Long pEnvironmentId, Long pTargetGroupId, String pPackageName) Returns previously deployed project version Id of partial deployment project.- Specified by:
getPreviouslyDeployedVersionIdin interfaceIFlexDeployFunctions- Parameters:
pProjectId- Project Id of the project to retrieve.pEnvironmentId- - Id of the environment.pTargetGroupId- - Id of the instance.pPackageName- - Name of the package.- Returns:
- previously deployed project version Id.
- Throws:
FlexValidationException- ifpPackageNameis not provided.
-
createStream
Deprecated.- Specified by:
createStreamin interfaceIFlexDeployFunctions
-
createStream
Deprecated.- Specified by:
createStreamin interfaceIFlexDeployFunctions
-
createStream
Deprecated.- Specified by:
createStreamin interfaceIFlexDeployFunctions
-
findStreamId
Deprecated.- Specified by:
findStreamIdin interfaceIFlexDeployFunctions
-
inactivateStream
Deprecated.- Specified by:
inactivateStreamin interfaceIFlexDeployFunctions
-
activateStream
Deprecated.- Specified by:
activateStreamin interfaceIFlexDeployFunctions
-
patchStream
@Deprecated public void patchStream(Long pProjectId, Long pBranchId, ProjectStreamDataObject pStream) Deprecated.- Specified by:
patchStreamin interfaceIFlexDeployFunctions
-
updateStream
Deprecated.- Specified by:
updateStreamin interfaceIFlexDeployFunctions
-
updateScanResult
public void updateScanResult(Long pProjectId, String pScanId, ScanResultPojo pScanResultPojo, boolean pIsStatusSuccess) Updates a FlexDeploy ScanResult on a given project.- Specified by:
updateScanResultin interfaceIFlexDeployFunctions- Parameters:
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.- Since:
- 6.0
-
getScanResultForSonarqube
public ScanResultPojo getScanResultForSonarqube(String pBaseUrl, String pProjectKey) throws FlexCheckedException get Scan result for SonarQube- Specified by:
getScanResultForSonarqubein interfaceIFlexDeployFunctions- Parameters:
pBaseUrl-pProjectKey-- Returns:
- ScanResultPojo
- Throws:
FlexCheckedException- Since:
- 6.0
-
getIssueTrackingSystemByInstanceCode
Returns an ITS System for a particular ITS Instance Code. The instance allows direct integration with the issue tracking system and includes functions such as getTicketStatus, getTicketURL.- Specified by:
getIssueTrackingSystemByInstanceCodein interfaceIFlexDeployFunctions- Parameters:
pITSInstanceCode- Instance code of the implementation you wish to retrieve.- Returns:
- IssueTrackingSystem implementation
- Throws:
FlexRowNotFoundException- If no instance found forpInstanceCode.
-
getIssueTrackingSystemByInstanceName
Returns an ITS System for a particular ITS Instance Name. The instance allows direct integration with the issue tracking system and includes functions such as getTicketStatus, getTicketURL.- Specified by:
getIssueTrackingSystemByInstanceNamein interfaceIFlexDeployFunctions- Parameters:
pITSInstanceName- Instance Name of the implementation you wish to retrieve.- Returns:
- IssueTrackingSystem implementation
- Throws:
FlexRowNotFoundException- If no instance found forpInstanceName.
-
getIssueTrackingSystemByInstanceId
Returns an ITS System for a particular ITS Instance Id. The instance allows direct integration with the issue tracking system and includes functions such as getTicketStatus, getTicketURL.- Specified by:
getIssueTrackingSystemByInstanceIdin interfaceIFlexDeployFunctions- Parameters:
pITSInstanceId- Instance id of the implementation you wish to retrieve.- Returns:
- IssueTrackingSystem implementation
- Throws:
FlexRowNotFoundException- If no instance found forpITSInstanceId.
-
getMatchingProjectObjectId
Returns internal id for file in a project. File is path represented on File Catalog.- Specified by:
getMatchingProjectObjectIdin interfaceIFlexDeployFunctions- Parameters:
pProjectId-pFile-- Returns:
-
searchProjectPackages
public <any> searchProjectPackages(ProjectPackageDataObject pCriteriaObject, Integer pLimit, Integer pOffset) Find Packages based provided search parameters and pagination input. Returns a PaginatedResponse containing list of Packages matching search parameters.- Specified by:
searchProjectPackagesin interfaceIFlexDeployFunctions- Parameters:
pCriteriaObject- - ProjectPackageDataObject 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 beginning of the query result.- Returns:
- PaginatedResponse containing the list of Packages matching the search criteria.
-
searchEnvironments
public <any> searchEnvironments(EnvironmentDataObject pCriteriaObject, Integer pLimit, Integer pOffset) Find Environments based provided search parameters and pagination input. Returns a PaginatedResponse containing list of Environments matching search parameters.- Specified by:
searchEnvironmentsin interfaceIFlexDeployFunctions- Parameters:
pCriteriaObject- - EnvironmentDataObject 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 beginning of the query result.- Returns:
- PaginatedResponse containing the list of Environments matching the search criteria.
-
searchTargetGroups
public <any> searchTargetGroups(TargetGroupDataObject pCriteriaObject, Integer pLimit, Integer pOffset) Find TargetGroups based provided search parameters and pagination input. Returns a PaginatedResponse containing list of TargetGroups matching search parameters.- Specified by:
searchTargetGroupsin interfaceIFlexDeployFunctions- Parameters:
pCriteriaObject- - TargetGroupDataObject 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 the beginning of the query result.- Returns:
- PaginatedResponse containing the list of TargetGroups matching the search criteria.
-
getEnvironmentById
Returns Environment information for a given environment Id.- Specified by:
getEnvironmentByIdin interfaceIFlexDeployFunctions- Parameters:
pEnvironmentId- Environment id of the Environment to retrieve- Returns:
- Object containing metadata about the given Environment
- Throws:
FlexRowNotFoundException- If Environment not found for given pEnvironmentId
-
getEnvironmentByCode
Returns Environment information for a given environment code.- Specified by:
getEnvironmentByCodein interfaceIFlexDeployFunctions- Parameters:
pEnvironmentCode- Environment code of the Environment to retrieve- Returns:
- Object containing metadata about the given Environment
- Throws:
FlexRowNotFoundException- If Environment not found for given pEnvironmentCode
-
getEnvironmentByName
Returns Environment information for a given environmentName- Specified by:
getEnvironmentByNamein interfaceIFlexDeployFunctions- Parameters:
pEnvironmentName- Environment name of the Environment to retrieve- Returns:
- Object containing metadata about the given Environment
- Throws:
FlexRowNotFoundException- If Environment not found for givenpEnvironmentName
-
getTargetGroupById
Get the TargetGroup based on TargetGroup id passed.- Specified by:
getTargetGroupByIdin interfaceIFlexDeployFunctions- Parameters:
pTargetGroupId-- Returns:
- TargetGroupDataObject
- Throws:
FlexRowNotFoundException- If TargetGroup not found for given pTargetGroupId
-
getTargetGroupByCode
Get the TargetGroup based on TargetGroup code passed.- Specified by:
getTargetGroupByCodein interfaceIFlexDeployFunctions- Parameters:
pTargetGroupCode- TargetGroup code of the TargetGroup to retrieve- Returns:
- TargetGroupDataObject
- Throws:
FlexRowNotFoundException- If TargetGroup not found for given pTargetGroupCode
-
getTargetGroupByName
Get the TargetGroup based on TargetGroup name passed.- Specified by:
getTargetGroupByNamein interfaceIFlexDeployFunctions- Parameters:
pTargetGroupName-- Returns:
- TargetGroupDataObject
- Throws:
FlexRowNotFoundException- If TargetGroup not found for given pTargetGroupName
-
findEnvironment
Gets the environment with the specified environment code.- Specified by:
findEnvironmentin interfaceIFlexDeployFunctions- Parameters:
pEnvironmentCode- Code of the environment.- Returns:
- A List of pojo of the environment.
- Throws:
FlexRowNotFoundException- If no environment is found for the given environment code- Since:
- 5.4
-
getEnvironment
Gets the environment with the specified Id.- Specified by:
getEnvironmentin interfaceIFlexDeployFunctions- Parameters:
pEnvironmentId- Id of the environment.- Returns:
- A simple pojo of the environment.
- Throws:
FlexRowNotFoundException- If no environment is found for the given id.- Since:
- 5.4
-
getWorkflowExecutionCommits
Gets Commit details associated with workflow execution. Commits associated may be different for same Project Version deployed to two different environments, depending on what was previously deployed to those environments. This method indicates which commits were built or deployed as part of specific workflow execution.- Specified by:
getWorkflowExecutionCommitsin interfaceIFlexDeployFunctions- Parameters:
pWorkflowExecutionId- Workflow Execution Id to retrieve associated commit details- Returns:
- A simple pojoList of the commit details
- Since:
- 6.5
-
getWorkflowExecutionWorkItems
Gets WorkItem details associated with workflow execution. WorkItems associated may be different for same Project Version deployed to two different environments, depending on what was previously deployed to those environments. This method indicates which WorkItems were built or deployed as part of specific workflow execution.- Specified by:
getWorkflowExecutionWorkItemsin interfaceIFlexDeployFunctions- Parameters:
pWorkflowExecutionId- Workflow Execution Id to retrieve associated workitem details- Returns:
- A simple pojoList of the workitem details
- Since:
- 6.5
-
getWorkflowExecutionByWorkflowRequestId
public List<WorkflowExecutionDataObject> getWorkflowExecutionByWorkflowRequestId(Long pWorkflowRequestId) Gets workflow execution details by workflow request id.- Specified by:
getWorkflowExecutionByWorkflowRequestIdin interfaceIFlexDeployFunctions- Parameters:
pWorkflowRequestId- Workflow Request Id to retrieve associated workflow execution details.- Returns:
- A simple pojoList of the workflow execution details.
- Since:
- 6.5
-
getWorkflowExecutionById
Gets workflow execution details for workflow execution id.- Specified by:
getWorkflowExecutionByIdin interfaceIFlexDeployFunctions- Parameters:
pWorkflowExecutionId- Workflow Execution Id to retrieve associated workflow execution details.- Returns:
- A simple pojoList of the workflow execution details.
- Throws:
FlexRowNotFoundException- If no workflow execution is found for the given id.- Since:
- 6.5
-
getWorkflowExecutionOutputs
Gets workflow execution output details for workflow execution id.- Specified by:
getWorkflowExecutionOutputsin interfaceIFlexDeployFunctions- Parameters:
pWorkflowExecutionId- Workflow Execution Id to retrieve associated workflow execution output details.- Returns:
- A simple pojoList of the workflow execution output details.
- Throws:
FlexRowNotFoundException- Since:
- 6.5
-
getWorkflowExecutionInputs
Gets workflow execution inputs details for workflow execution id.- Specified by:
getWorkflowExecutionInputsin interfaceIFlexDeployFunctions- Parameters:
pWorkflowExecutionId- Workflow Execution Id to retrieve associated workflow execution input details.- Returns:
- A simple pojoList of the workflow execution input details.
- Throws:
FlexRowNotFoundException- Since:
- 6.5.0.5
-
getWorkflowExecutionFlexfields
Gets workflow execution flexfields details for workflow execution id.- Specified by:
getWorkflowExecutionFlexfieldsin interfaceIFlexDeployFunctions- Parameters:
pWorkflowExecutionId- Workflow Execution Id to retrieve associated workflow execution flexfields details.- Returns:
- A simple pojoList of the workflow execution flexfields details.
- Throws:
FlexRowNotFoundException- Since:
- 6.5.0.5
-
getWorkflowExecutionVariables
Gets workflow execution variables for workflow execution id. Return object contains inputs, outputs, flexfields, properties, etc...- Specified by:
getWorkflowExecutionVariablesin interfaceIFlexDeployFunctions- Parameters:
pWorkflowExecutionId- Workflow Execution Id to retrieve associated workflow execution variables.- Returns:
- A simple pojo of the workflow execution variables.
- Throws:
FlexRowNotFoundException- Since:
- 6.5.0.5
-
getActiveBuildFlexfieldMetadata
Gets active build flexfields metadata.- Specified by:
getActiveBuildFlexfieldMetadatain interfaceIFlexDeployFunctions- Returns:
- A simple pojoList of the active build flexfield metadata details.
- Since:
- 6.5.0.5
-
getActiveDeployUtilityFlexfieldMetadata
Gets active deploy or utility flexfields metadata.- Specified by:
getActiveDeployUtilityFlexfieldMetadatain interfaceIFlexDeployFunctions- Returns:
- A simple pojoList of the active deploy or utility flexfield metadata details.
- Since:
- 6.5.0.5
-
getProjectVersionById
Gets project version data object by project version id and project Id.- Specified by:
getProjectVersionByIdin interfaceIFlexDeployFunctions- Parameters:
pProjectVersionId- Project version Id to get the project version data object.pProjectId- Project Id to get the project version data object.- Returns:
- A simple pojoList of the project version details.
- Throws:
FlexRowNotFoundException- If no project version is found for the given project version id and project id.- Since:
- 6.5
-
searchProjectVersions
public <any> searchProjectVersions(ProjectVersionDataObject pParameters, Integer pLimit, Integer pOffset) Find Project Versions based provided search parameters and pagination input. Returns a PaginatedResponse containing list of Project Versions matching search parameters.- Specified by:
searchProjectVersionsin interfaceIFlexDeployFunctions- Parameters:
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 beginning of query result.- Returns:
- PaginatedResponse containing the list of Project Versions matching the search criteria.
- Since:
- 6.5
-
getPipelineStageGateTasks
Gets Task details based on pipeline stage execution id.- Specified by:
getPipelineStageGateTasksin interfaceIFlexDeployFunctions- Parameters:
pPipelineStageExecId- pipeline stage execution id to get the Tasks details.- Returns:
- A simple pojo list of task details.
- Since:
- 6.5
-
getApprovedPipelineStageGateTasks
Gets Task details based on pipeline stage execution id.- Specified by:
getApprovedPipelineStageGateTasksin interfaceIFlexDeployFunctions- Parameters:
pPipelineStageExecId- pipeline stage execution id to get the Tasks details.- Returns:
- A simple pojo list of task details.
- Since:
- 6.5
-
getWorkflowRequestTasks
Gets Task details based on workflow request id.- Specified by:
getWorkflowRequestTasksin interfaceIFlexDeployFunctions- Parameters:
pWorkflowRequestId- Workflow Request id to get the Tasks details.- Returns:
- A simple pojo list of task details.
- Since:
- 6.5
-
createProjectTrigger
Creates a project trigger with the provided data.Returns the project trigger details after creation.- Specified by:
createProjectTriggerin interfaceIFlexDeployFunctions- Parameters:
pPojo- Object containing Project trigger details to create the project trigger.- Returns:
- A simple pojo of the project trigger details.
- Since:
- 6.5
-
getPipelineProjectGroups
Returns a List of Project groups in a Pipeline.- Specified by:
getPipelineProjectGroupsin interfaceIFlexDeployFunctions- Parameters:
pPipelineDefinitionId- The id of the Pipeline for which you want to fetch the Project Groups.
-
getProjectTriggerById
public ProjectTriggerDataObject getProjectTriggerById(Long pProjectTriggerId) throws FlexRowNotFoundException Returns the project trigger information based on the project Trigger id.- Specified by:
getProjectTriggerByIdin interfaceIFlexDeployFunctions- Parameters:
pProjectTriggerId- Project Trigger Id to retrieve the project trigger details.- Returns:
- A simple pojo of project trigger details.
- Throws:
FlexRowNotFoundException- If no project trigger is found for the given project trigger id- Since:
- 6.5
-
searchProjectTriggers
public <any> searchProjectTriggers(ProjectTriggerDataObject pCriteriaObject, Integer pLimit, Integer pOffset) Find Project Triggers based provided search parameters and pagination input. Returns a PaginatedResponse containing list of Project Triggers matching search parameters.- Specified by:
searchProjectTriggersin interfaceIFlexDeployFunctions- Parameters:
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 beginning of query result.- Returns:
- PaginatedResponse containing the list of Project Triggers matching the search criteria.
- Since:
- 6.5
-
updateProjectTrigger
Updates Project Trigger based on the project trigger details.- Specified by:
updateProjectTriggerin interfaceIFlexDeployFunctions- Parameters:
pPojo- Object containing project trigger details to update the project trigger.- Returns:
- A simple pojo of project trigger details.
- Throws:
FlexRowNotFoundException- If no project trigger is found for the given project trigger details.- Since:
- 6.5
-
patchProjectTrigger
Updates a project trigger with the provided data. This will only update fields that are passed in the pojo.- Specified by:
patchProjectTriggerin interfaceIFlexDeployFunctions- Parameters:
pPojo- Object containing Project trigger details to update the project trigger.- Returns:
- A simple pojo of project trigger details.
- Throws:
FlexRowNotFoundException- If no project trigger is found for the given project trigger details.- Since:
- 6.5
-
deleteProjectTrigger
Deletes the project trigger based on the project Trigger id.- Specified by:
deleteProjectTriggerin interfaceIFlexDeployFunctions- Parameters:
pProjectTriggerId- Project trigger Id to delete the respective project trigger.- Since:
- 6.5
-
createFlxWorkItem
Creates a FlexWorkItem with the provided data.Returns the WorkItem details after creation.- Specified by:
createFlxWorkItemin interfaceIFlexDeployFunctions- Parameters:
pPojo- Object containing WorkItem details to create the WorkItem.- Returns:
- A simple pojo of WorkItem details.
- Since:
- 7.0.0.0
-
updateFlxWorkItem
Updates FlexWorkItem based on the provided details. This will updates like type, status, title, description, assignee and custom fields.- Specified by:
updateFlxWorkItemin interfaceIFlexDeployFunctions- Parameters:
pPojo- Object containing WorkItem details to update the WorkItem.- Returns:
- A simple pojo of WorkItem details.
- Since:
- 7.0.0.0
-
patchFlxWorkItem
Patches a FlexWorkItem with the provided data. This will only update fields that are passed in the pojo. This will patches like type, status, title, description and assignee.- Specified by:
patchFlxWorkItemin interfaceIFlexDeployFunctions- Parameters:
pPojo- Object containing WorkItem details to update the WorkItem.- Returns:
- A simple pojo of WorkItem details.
- Since:
- 7.0.0.0
-
findFlxWorkItemByNumber
Gets FlexWorkItem based on WorkItem number.- Specified by:
findFlxWorkItemByNumberin interfaceIFlexDeployFunctions- Parameters:
pWorkItemNumber- WorkItem number to get the WorkItem details.- Returns:
- A simple pojo of WorkItem details.
- Throws:
FlexRowNotFoundException- If no FlexWorkItem is found for the given WorkItem number.- Since:
- 7.0.0.0
-
updateFlxWorkItemStatus
Updates a FlexWorkItem status.- Specified by:
updateFlxWorkItemStatusin interfaceIFlexDeployFunctions- Parameters:
pWorkItemNumber- WorkItem number.pStatusName- WorkItem status Name.- Returns:
- A simple pojo of WorkItem details.
- Since:
- 7.0.0.0
-
updateFlxWorkItemType
Updates a FlexWorkItem Type.- Specified by:
updateFlxWorkItemTypein interfaceIFlexDeployFunctions- Parameters:
pWorkItemNumber- WorkItem number.pTypeCode- WorkItem type code- Returns:
- A simple pojo of WorkItem details.
- Since:
- 7.0.0.0
-
updateFlxWorkItemAssignee
Updates a FlexWorkItem Assignee.- Specified by:
updateFlxWorkItemAssigneein interfaceIFlexDeployFunctions- Parameters:
pWorkItemNumber- WorkItem number.pUserName- user name.- Returns:
- A simple pojo of WorkItem details.
- Since:
- 7.0.0.0
-
getFlxWorkItemTypes
Gets the FlexWorkItem types.- Specified by:
getFlxWorkItemTypesin interfaceIFlexDeployFunctions- Returns:
- List of FlxWorkItemTypeDataObject objects
- Since:
- 7.0.0.0
-
getFlxWorkItemStatuses
Gets the FlexWorkItem statuses.- Specified by:
getFlxWorkItemStatusesin interfaceIFlexDeployFunctions- Returns:
- List of FlxWorkItemStatusDataObject objects
- Since:
- 7.0.0.0
-
addWorkItemComment
Adds a WorkItem comment with the provided data.- Specified by:
addWorkItemCommentin interfaceIFlexDeployFunctions- Parameters:
pWorkItemNumber- WorkItem number.pComment- comment.- Returns:
- A simple pojo of FlexWorkItem comment details.
- Since:
- 7.0.0.0
-
getWorkItemsForSuccessfulExecutions
public List<WorkItemDataObject> getWorkItemsForSuccessfulExecutions(Long pSnapshotId, Long pEnvironmentId) Gets WorkItem details associated with successful execution for given snapshot and environment.- Specified by:
getWorkItemsForSuccessfulExecutionsin interfaceIFlexDeployFunctions- Parameters:
pSnapshotId- Id of the snapshot.pEnvironmentId- Id of the environment.- Returns:
- A simple pojoList of the WorkItem details.
- Since:
- 7.0.0.0
-
getWorkItemsForAllExecutions
Gets WorkItem details associated with all execution for given snapshot and environment.- Specified by:
getWorkItemsForAllExecutionsin interfaceIFlexDeployFunctions- Parameters:
pSnapshotId- Id of the snapshot.pEnvironmentId- Id of the environment.- Returns:
- A simple pojoList of the WorkItem details.
- Since:
- 7.0.0.0
-
getWorkItemsForFailedExecutions
public List<WorkItemDataObject> getWorkItemsForFailedExecutions(Long pSnapshotId, Long pEnvironmentId) Gets WorkItem details associated with failed execution for given snapshot and environment.- Specified by:
getWorkItemsForFailedExecutionsin interfaceIFlexDeployFunctions- Parameters:
pSnapshotId- Id of the snapshot.pEnvironmentId- Id of the environment.- Returns:
- A simple pojoList of the WorkItem details.
- Since:
- 7.0.0.0
-
getWorkItemsForSnapshotVersions
Gets WorkItem details associated with snapshot versions.- Specified by:
getWorkItemsForSnapshotVersionsin interfaceIFlexDeployFunctions- Parameters:
pSnapshotId- Id of the snapshot.- Returns:
- A simple pojoList of the WorkItem details.
- Since:
- 7.0.0.0
-
saveFlxWorkItemFieldData
public List<FlxWorkItemFieldDataDataObject> saveFlxWorkItemFieldData(String pWorkItemNumber, String pFieldName, Serializable pValue) Saves FlexWorkItem field data on given WorkItem number, field name and value.- Specified by:
saveFlxWorkItemFieldDatain interfaceIFlexDeployFunctions- Parameters:
pWorkItemNumber- WorkItem number.pFieldName- field name.pValue- field value.- Returns:
- List of WorkItem field details.
- Since:
- 7.0.0.0
-
getFlxWorkItemFieldData
Returns List of WorkItem field details for FlexWorkItem number.- Specified by:
getFlxWorkItemFieldDatain interfaceIFlexDeployFunctions- Parameters:
pWorkItemNumber-- Returns:
- List of WorkItem field details.
- Since:
- 7.0.0.0
-
parseWorkItemRichText
Parse Rich Text to retrieve raw text.- Specified by:
parseWorkItemRichTextin interfaceIFlexDeployFunctions- Parameters:
pWorkItemRichText-- Returns:
- Raw text.
- Since:
- 7.0.0.0
-
getUsersFromGroupName
Gets a list of FDUser objects that are members of the group with the given group name.- Specified by:
getUsersFromGroupNamein interfaceIFlexDeployFunctions- Parameters:
pGroupName- FlexDeploy Group name to use.- Returns:
- List of FDUser objects.
- Since:
- 7.0.0.0
-
getReportsByWorkflowExecutionId
public List<WorkflowExecutionReportDataObject> getReportsByWorkflowExecutionId(Long pWorkflowExecutionId) Gets a list of WorkflowExecutionReportDataObject objects that are associated with a workflow execution- Specified by:
getReportsByWorkflowExecutionIdin interfaceIFlexDeployFunctions- Parameters:
pWorkflowExecutionId- Workflow Execution ID- Returns:
- List of WorkflowExecutionReportDataObject objects.
- Since:
- 6.5.0.4
-
getReportDataByWorkflowExecutionReportId
Get a report by Workflow Execution Report ID. To find the workflow execution report ID use getReportsByWorkflowExecutionId- Specified by:
getReportDataByWorkflowExecutionReportIdin interfaceIFlexDeployFunctions- Parameters:
pWorkflowExecutionReportId- Workflow Execution Report ID- Returns:
- Input stream of the file
- Since:
- 6.5.0.4
-
getProjectBranchById
public ProjectStreamDataObject getProjectBranchById(Long pBranchId, Long pProjectId) throws FlexRowNotFoundException Returns the project branch details for given branchId and projectId- Specified by:
getProjectBranchByIdin interfaceIFlexDeployFunctions- Parameters:
pBranchId-pProjectId-- Returns:
- A pojo with Project branch details
- Throws:
FlexRowNotFoundException- If no project branch is found for given branchId and projectId- Since:
- 6.5.0.5
-
getEndpointById
Returns Endpoint information for a given endpoint Id.- Specified by:
getEndpointByIdin interfaceIFlexDeployFunctions- Parameters:
pEndpointId- - Endpoint id of the Endpoint to retrieve.- Returns:
- Object containing metadata about the given Endpoint.
- Throws:
FlexRowNotFoundException- If Endpoint not found for given pEndpointId.- Since:
- 6.5.0.5
-
getEndpointByName
Returns Endpoint information for a given Endpoint Name.- Specified by:
getEndpointByNamein interfaceIFlexDeployFunctions- Parameters:
pEndpointName- - Endpoint name of the Endpoint to retrieve.- Returns:
- Object containing metadata about the given Endpoint.
- Throws:
FlexRowNotFoundException- If Endpoint not found for given pEndpointName.- Since:
- 6.5.0.5
-
createEndpoint
Create Endpoint with the provided data. Returns the Endpoint details after creation.- Specified by:
createEndpointin interfaceIFlexDeployFunctions- Parameters:
pEndpointDataObject- - Object containing the Endpoint details to create the Endpoint.- Returns:
- A data object of the Endpoint details.
- Since:
- 6.5.0.5
-
updateEndpoint
Update Endpoint based on the Endpoint details.- Specified by:
updateEndpointin interfaceIFlexDeployFunctions- Parameters:
pEndpointDataObject- - Object containing the Endpoint details to update the Endpoint.- Returns:
- A data object of Endpoint details.
- Throws:
FlexRowNotFoundException- If no Endpoint is found for the given Endpoint details.- Since:
- 6.5.0.5
-
patchEndpoint
Update Endpoint with the provided data. This will only update fields that are passed in the dataObject.- Specified by:
patchEndpointin interfaceIFlexDeployFunctions- Parameters:
pEndpointDataObject- - Object containing the Endpoint details to update the Endpoint.- Returns:
- A data object of Endpoint details.
- Throws:
FlexRowNotFoundException- If no Endpoint is found for the given Endpoint details.- Since:
- 6.5.0.5
-
searchEndpoints
Find Endpoints based provided search parameters and pagination input. Returns a PaginatedResponse containing list of Endpoints matching search parameters.- Specified by:
searchEndpointsin interfaceIFlexDeployFunctions- Parameters:
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 beginning of the query result.- Returns:
- PaginatedResponse containing the list of Endpoints matching the search criteria.
- Since:
- 6.5.0.5
-
getGroupById
Returns Group information for a given group Id.- Specified by:
getGroupByIdin interfaceIFlexDeployFunctions- Parameters:
pGroupId- - Group id of the Group to retrieve.- Returns:
- Object containing metadata about the given Group.
- Throws:
FlexRowNotFoundException- If Group not found for given pGroupId.- Since:
- 6.5.0.5
-
getGroupByName
Returns Group information for a given group name.- Specified by:
getGroupByNamein interfaceIFlexDeployFunctions- Parameters:
pGroupName- - Group name of the Group to retrieve.- Returns:
- Object containing metadata about the given Group.
- Throws:
FlexRowNotFoundException- If Group not found for given pGroupName.- Since:
- 6.5.0.5
-
createGroup
Create Group with the provided data. Returns the Group details after creation.- Specified by:
createGroupin interfaceIFlexDeployFunctions- Parameters:
pGroupDataObject- - Object containing the Group details to create the Group.- Returns:
- A data object of the Group details.
- Since:
- 6.5.0.5
-
patchGroup
Update Group with the provided data. This will only update fields that are passed in the dataObject.- Specified by:
patchGroupin interfaceIFlexDeployFunctions- Parameters:
pGroupDataObject- - Object containing the Group details to update the Group.- Returns:
- A data object of the Group details.
- Throws:
FlexRowNotFoundException- If no Group is found for the given Group details.- Since:
- 6.5.0.5
-
updateGroup
Update Group based on the Group details.- Specified by:
updateGroupin interfaceIFlexDeployFunctions- Parameters:
pGroupDataObject- - Object containing the Group details to update the Group.- Returns:
- A data object of the Group details.
- Throws:
FlexRowNotFoundException- If no Group is found for the given Group details.- Since:
- 6.5.0.5
-
searchGroups
Find Groups based provided search parameters and pagination input. Returns a PaginatedResponse containing list of Groups matching search parameters.- Specified by:
searchGroupsin interfaceIFlexDeployFunctions- Parameters:
pGroupObject- - FlxGroupDataObject 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 beginning of query result.- Returns:
- PaginatedResponse containing the list of Groups matching the search criteria.
- Since:
- 6.5.0.5
-
getSnapshotDetails
RETURN a release snapshot data object by id.- Specified by:
getSnapshotDetailsin interfaceIFlexDeployFunctions- Parameters:
pSnapshotId- Id of the snapshot.- Returns:
- A pojo contain the release snapshot data object and child data.
- Since:
- 6.5.0.5
-
isBotUsername
Return whether a username (case-insensitive) is a FlexDeploy bot username and not a FlexDeploy user.- Specified by:
isBotUsernamein interfaceIFlexDeployFunctions- Parameters:
pUsername-- Returns:
- true if a FlexDeploy bot username
- Since:
- 6.5.0.5
-
getUserById
Returns User information along with the user attributes and group detail for a given user Id.- Specified by:
getUserByIdin interfaceIFlexDeployFunctions- Parameters:
pUserId- - User id of the User to retrieve.- Returns:
- Object containing metadata about the given User.
- Throws:
FlexRowNotFoundException- If User not found for given pUserId.- Since:
- 6.5.0.5
-
createUser
Create User with the provided data. Returns the User details along with the user attributes and group detail after creation.- Specified by:
createUserin interfaceIFlexDeployFunctions- Parameters:
pUserDataObj- - Object containing the User details to create the User.- Returns:
- A data object of the User details.
- Since:
- 6.5.0.5
-
patchUser
Update User with the provided data. This will only update fields that are passed in the dataObject. Along with user detail user attributes and group can be updated.- Specified by:
patchUserin interfaceIFlexDeployFunctions- Parameters:
pUserDataObject- - Object containing the User details to update the User.- Returns:
- A data object of the Group details.
- Throws:
FlexRowNotFoundException- If no User is found for the given User details.- Since:
- 6.5.0.5
-
updateUser
Update User based on the User details. Along with user detail user attributes and group can be updated.- Specified by:
updateUserin interfaceIFlexDeployFunctions- Parameters:
pUserDataObject- - Object containing the User details to update the User.- Returns:
- A data object of the User details.
- Throws:
FlexRowNotFoundException- If no User is found for the given User details.- Since:
- 6.5.0.5
-
searchUsers
Find Users based provided search parameters and pagination input. Returns a PaginatedResponse containing list of Tasks matching search parameters.- Specified by:
searchUsersin interfaceIFlexDeployFunctions- Parameters:
pUserObject- - FlxUserDataObject 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 beginning of query result.- Returns:
- PaginatedResponse containing the list of Users matching the search criteria.
- Since:
- 6.5.0.5
-
deleteFlxWorkItem
Deletes a FlexWorkItem- Specified by:
deleteFlxWorkItemin interfaceIFlexDeployFunctions- Parameters:
pFlexWorkItemId- - the id of the FlexWorkItem- Since:
- 6.5.0.5
-
searchFlxWorkItems
public <any> searchFlxWorkItems(FlxWorkItemDataObject pCriteriaObject, Integer pLimit, Integer pOffset) Find FlexWorkItems based provided search parameters and pagination input. Returns a PaginatedResponse containing list of FlexWorkItems matching search parameters.- Specified by:
searchFlxWorkItemsin interfaceIFlexDeployFunctions- Parameters:
pCriteriaObject- - The FlxWorkItemDataObject 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 beginning of the query result.- Returns:
- PaginatedResponse containing the list of FlexWorkItems matching the search criteria.
- Since:
- 6.5.0.5
-
getFlxWorkItemStatusWithId
Finds FlexWorkItem Status using Id.- Specified by:
getFlxWorkItemStatusWithIdin interfaceIFlexDeployFunctions- Parameters:
pFlexWorkItemStatusId- - Id of FlexWorkItem Status to find.- Returns:
- The FlexWorkItemStatus that was found
- Throws:
FlexRowNotFoundException- if no row found forpFlexWorkItemStatusId.
-
searchFlxWorkItemStatuses
public <any> searchFlxWorkItemStatuses(FlxWorkItemStatusDataObject pCriteriaObject, Integer pLimit, Integer pOffset) Find FlexWorkItem Statuses based provided search parameters and pagination input. Returns a PaginatedResponse containing list of FlexWorkItem Statuses matching search parameters.- Specified by:
searchFlxWorkItemStatusesin interfaceIFlexDeployFunctions- Parameters:
pCriteriaObject- - FlxWorkItemStatusDataObject 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 beginning of the query result.- Returns:
- PaginatedResponse containing the list of FlexWorkItem Statuses matching the search criteria.
- Since:
- 6.5.0.5
-
getFlxWorkItemTypeWithCode
Finds FlexWorkItem Type using Code.- Specified by:
getFlxWorkItemTypeWithCodein interfaceIFlexDeployFunctions- Parameters:
pFlexWorkItemTypeCode- - Code of FlexWorkItem Type to find.- Returns:
- the FlexWorkItem Type that was found
- Throws:
FlexRowNotFoundException- if no row found forpFlexWorkItemTypeCode.
-
searchFlxWorkItemTypes
public <any> searchFlxWorkItemTypes(FlxWorkItemTypeDataObject pCriteriaObject, Integer pLimit, Integer pOffset) Find FlexWorkItem Types based provided search parameters and pagination input. Returns a PaginatedResponse containing list of FlexWorkItem Types matching search parameters.- Specified by:
searchFlxWorkItemTypesin interfaceIFlexDeployFunctions- Parameters:
pCriteriaObject- - FlexWorkItemTypeDataObject 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 beginning of the query result.- Returns:
- PaginatedResponse containing the list of FlexWorkItem Types matching the search criteria.
- Since:
- 6.5.0.5
-
getFlxWorkItemFieldWithId
Finds FlexWorkItem Field using Id.- Specified by:
getFlxWorkItemFieldWithIdin interfaceIFlexDeployFunctions- Parameters:
pFlexWorkItemFieldId- - Id of FlexWorkItem Field to find.- Returns:
- the FlexWorkItem Field that was found
- Throws:
FlexRowNotFoundException- if no row found forpFlexWorkItemFieldId.
-
searchFlxWorkItemFields
public <any> searchFlxWorkItemFields(FlxWorkItemFieldDataObject pCriteriaObject, Integer pLimit, Integer pOffset) Find FlexWorkItem Fields based provided search parameters and pagination input. Returns a PaginatedResponse containing list of FlexWorkItem Fields matching search parameters.- Specified by:
searchFlxWorkItemFieldsin interfaceIFlexDeployFunctions- Parameters:
pCriteriaObject- - FlexWorkItemFieldDataObject 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 beginning of the query result.- Returns:
- PaginatedResponse containing the list of FlexWorkItem Fields matching the search criteria.
- Since:
- 6.5.0.5
-
saveFlxWorkItemFields
public List<FlxWorkItemFieldDataObject> saveFlxWorkItemFields(List<FlxWorkItemFieldDataObject> pPojos, String pGroupCode) Updates all FlexWorkItem Fields within a group. Anything in the pojos list will be added/updated, and anything not in this list that is in the group will be removed.- Specified by:
saveFlxWorkItemFieldsin interfaceIFlexDeployFunctions- Parameters:
pPojos- - The FlexWorkItem Fields to be savedpGroupCode- - The code of the group that is being saved to- Returns:
- the saved fields
- Since:
- 6.5.0.5
-
patchFlxWorkItemField
Patches a FlexWorkItem Field with the provided data. This will only update fields that are passed in the pojo. This will patches like type, status, title, description and assignee.- Specified by:
patchFlxWorkItemFieldin interfaceIFlexDeployFunctions- Parameters:
pPojo- Object containing FlexWorkItem Field details to update the FlexWorkItem Field.- Returns:
- A simple pojo of FlexWorkItem Field details.
- Since:
- 6.5.0.5
-
getFlxWorkItemFieldGroupWithCode
public PropertyKeyGroupDataObject getFlxWorkItemFieldGroupWithCode(String pFlexWorkItemFieldGroupCode) Finds a FlexWorkItem Field Group using Code.- Specified by:
getFlxWorkItemFieldGroupWithCodein interfaceIFlexDeployFunctions- Parameters:
pFlexWorkItemFieldGroupCode- - Code of FlexWorkItem Field Group to find.- Returns:
- The FlexWorkItem Field Group that was found
- Throws:
FlexRowNotFoundException- if no row found forpFlexWorkItemFieldGroupCode.
-
searchFlxWorkItemFieldGroups
public <any> searchFlxWorkItemFieldGroups(PropertyKeyGroupDataObject pCriteriaObject, Integer pLimit, Integer pOffset) Find FlexWorkItem Field Groups based provided search parameters and pagination input. Returns a PaginatedResponse containing list of FlexWorkItem Field Groups matching search parameters.- Specified by:
searchFlxWorkItemFieldGroupsin interfaceIFlexDeployFunctions- Parameters:
pCriteriaObject- - PropertyKeyGroupDataObject that is 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 beginning of the query result.- Returns:
- PaginatedResponse containing the list of FlexWorkItem Field Groups matching the search criteria.
- Since:
- 6.5.0.5
-
createFlxWorkItemFieldGroup
Creates a FlexWorkItem Field Group with the provided data. Returns the FlexWorkItem Field Group after creation.- Specified by:
createFlxWorkItemFieldGroupin interfaceIFlexDeployFunctions- Parameters:
pDobj- - the PropertyKeyDefinitionDataObject with the data to be added to the field group- Returns:
- the field group that was added
- Since:
- 6.5.0.5
-
updateFlxWorkItemFieldGroup
Updates FlexWorkItem field group based on the FlexWorkItem field group details.- Specified by:
updateFlxWorkItemFieldGroupin interfaceIFlexDeployFunctions- Parameters:
pDobj- Object containing FlexWorkItem Field Group details to update the FlexWorkItem Field Group.- Returns:
- the state of the FlexWorkItem Field Group after being updated
- Since:
- 6.5.0.5
-
patchFlxWorkItemFieldGroup
Patches a FlexWorkItem Field Group with the provided data. Only modifies fields that are not null. Returns the FlexWorkItem Field Group after the patch.- Specified by:
patchFlxWorkItemFieldGroupin interfaceIFlexDeployFunctions- Parameters:
pPojo- - the data to use to patch the FlexWorkItem Field Group with- Returns:
- The patched FlexWorkItem Field Group
- Since:
- 6.5.0.5
-
deleteFlxWorkItemFieldGroup
Deletes a FlexWorkItem Field Group- Specified by:
deleteFlxWorkItemFieldGroupin interfaceIFlexDeployFunctions- Parameters:
pFlexWorkItemFieldGroupCode- - the code of the FlexWorkItem Field Group- Since:
- 6.5.0.5
-
createFlxWorkItemField
Creates a FlexWorkItem Field with the provided data. Returns the created FlexWorkItem Field.- Specified by:
createFlxWorkItemFieldin interfaceIFlexDeployFunctions- Parameters:
pDobj- - an object containing the FlexWorkItem Field information- Returns:
- the created FlexWorkItem Field
- Since:
- 6.5.0.5
-
updateFlxWorkItemField
Updates FlexWorkItem field based on the FlexWorkItem field details.- Specified by:
updateFlxWorkItemFieldin interfaceIFlexDeployFunctions- Parameters:
pDobj- Object containing FlexWorkItem Field details to update the FlexWorkItem Field.- Returns:
- the state of the FlexWorkItem Field after being updated
- Since:
- 6.5.0.5
-
deleteFlxWorkItemField
Deletes a FlexWorkItem Field- Specified by:
deleteFlxWorkItemFieldin interfaceIFlexDeployFunctions- Parameters:
pFlexWorkItemFieldId- - The id of the FlexWorkItem Field to delete- Since:
- 6.5.0.5
-
createPropertyKeyDefinition
public PropertyKeyDefinitionDataObject createPropertyKeyDefinition(PropertyKeyDefinitionDataObject pPojo) Creates a property key definition with the provided data.- Specified by:
createPropertyKeyDefinitionin interfaceIFlexDeployFunctions- Parameters:
pPojo- - Object containing property key definition information.- Returns:
- PropertyKeyDefinitionDataObject representing the created property key definition.
- Since:
- 6.5.0.5
-
updatePropertyKeyDefinition
public PropertyKeyDefinitionDataObject updatePropertyKeyDefinition(PropertyKeyDefinitionDataObject pPojo) Updates a property key definition with the provided data.- Specified by:
updatePropertyKeyDefinitionin interfaceIFlexDeployFunctions- Parameters:
pPojo- - Object containing property key definition information.- Returns:
- PropertyKeyDefinitionDataObject representing the updated property key definition.
- Throws:
FlexRowNotFoundException- If no property key is found for the given details.- Since:
- 6.5.0.5
-
patchPropertyKeyDefinition
public PropertyKeyDefinitionDataObject patchPropertyKeyDefinition(PropertyKeyDefinitionDataObject pPojo) updates a property key definition with the provided data. This will only update fields that are passed in the pojo.- Specified by:
patchPropertyKeyDefinitionin interfaceIFlexDeployFunctions- Parameters:
pPojo- containing property key definition information.- Returns:
- PropertyKeyDefinitionDataObject representing the patched property key definition.
- Throws:
FlexRowNotFoundException- If no property key is found for the given details.- Since:
- 6.5.0.5
-
getPropertyKeyDefinition
Retrieves a property key definition by its ID.- Specified by:
getPropertyKeyDefinitionin interfaceIFlexDeployFunctions- Parameters:
pPropertyKeyDefinitionId- - ID of the property key definition to retrieve.- Returns:
- PropertyKeyDefinitionDataObject representing the retrieved property key definition.
- Throws:
FlexRowNotFoundException- If propkey not found for given pPropertyKeyDefinitionId
-
searchPropertyKeyDefinitions
public <any> searchPropertyKeyDefinitions(PropertyKeyDefinitionDataObject pSearchParams, Integer pLimit, Integer pOffset) Find property key definitions based provided search parameters and pagination input. Returns a PaginatedResponse containing list of property key definitions matching search parameters.- Specified by:
searchPropertyKeyDefinitionsin interfaceIFlexDeployFunctions- Parameters:
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 beginning of query result.- Returns:
- PaginatedResponse containing the list of property key definitions matching the search criteria.
- Since:
- 6.5.0.5
-
getPropertyKeyDefinition
Retrieves a property key definition by its key name.- Specified by:
getPropertyKeyDefinitionin interfaceIFlexDeployFunctions- Parameters:
pKeyName- - Name of the property key definition to retrieve.- Returns:
- PropertyKeyDefinitionDataObject representing the retrieved property key definition.
- Throws:
FlexRowNotFoundException- If propkey not found for the given pKeyName.
-
updateWorkflowPropertySet
Updates a property set with the provided data.- Specified by:
updateWorkflowPropertySetin interfaceIFlexDeployFunctions- Parameters:
pPropertySet- - Object containing property set information.- Returns:
- PropertySetDataObject representing the updated property set.
- Throws:
FlexRowNotFoundException- If no property set is found for the given details.- Since:
- 6.5.0.5
-
searchPropertySets
public <any> searchPropertySets(PropertySetDataObject pSearchParams, Integer pLimit, Integer pOffset) Find property sets based provided search parameters and pagination input. Returns a PaginatedResponse containing list of property sets matching search parameters.- Specified by:
searchPropertySetsin interfaceIFlexDeployFunctions- Parameters:
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 beginning of query result.- Returns:
- PaginatedResponse containing the list of property sets matching the search criteria.
- Since:
- 6.5.0.5
-
getPropertySet
Retrieves a property set by its ID.- Specified by:
getPropertySetin interfaceIFlexDeployFunctions- Parameters:
pPropertySetId- - ID of the property set to retrieve.- Returns:
- PropertySetDataObject representing the retrieved property set.
- Throws:
FlexRowNotFoundException- If propSet not found for given pPropertySetId
-
getCredentialById
Returns Credential information for a given Credential Id.- Specified by:
getCredentialByIdin interfaceIFlexDeployFunctions- Parameters:
pCredentialId- - Credential id of the Credential to retrieve.- Returns:
- Object containing metadata about the given Credential.
- Throws:
FlexRowNotFoundException- If Credential not found for given pCredentialId.- Since:
- 6.5.0.5
-
createCredential
public CredentialDataObject createCredential(CredentialDataObject pCredentialDataObject) Create Credential with the provided data. Returns the Credential details after creation.- Specified by:
createCredentialin interfaceIFlexDeployFunctions- Parameters:
pCredentialDataObject- - Object containing the Credential details to create the Credential.- Returns:
- A data object of the Credential details.
- Since:
- 6.5.0.5
-
patchCredential
public CredentialDataObject patchCredential(CredentialDataObject pCredentialDataObject) Update Credential with the provided data. This will only update fields that are passed in the dataObject.- Specified by:
patchCredentialin interfaceIFlexDeployFunctions- Parameters:
pCredentialDataObject- - Object containing the Credential details to update the Credential.- Returns:
- A data object of Credential details.
- Throws:
FlexRowNotFoundException- If no Credential is found for the given Credential details.- Since:
- 6.5.0.5
-
updateCredential
public CredentialDataObject updateCredential(CredentialDataObject pCredentialDataObject) Update Credential with the provided data.- Specified by:
updateCredentialin interfaceIFlexDeployFunctions- Parameters:
pCredentialDataObject- - Object containing the Credential details to update the Credential.- Returns:
- A data object of Credential details.
- Throws:
FlexRowNotFoundException- If no Credential is found for the given Credential details.- Since:
- 6.5.0.5
-
searchCredentials
public <any> searchCredentials(CredentialDataObject pCriteriaObject, Integer pLimit, Integer pOffset) Find Credentials based provided search parameters and pagination input. Returns a PaginatedResponse containing list of Credentials matching search parameters.- Specified by:
searchCredentialsin interfaceIFlexDeployFunctions- Parameters:
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 beginning of the query result.- Returns:
- PaginatedResponse containing the list of Credentials matching the search criteria.
- Since:
- 6.5.0.5
-
getCredentialByName
Returns Credential information for a given Credential name.- Specified by:
getCredentialByNamein interfaceIFlexDeployFunctions- Parameters:
pCredentialName- - Credential id of the Credential to retrieve.- Returns:
- Object containing metadata about the given Credential.
- Throws:
FlexRowNotFoundException- If Credential not found for given pCredentialName.- Since:
- 6.5.0.5
-
getCredentialSecretTextById
Returns the secret text value for a given Credential name. Credential must be of type SECRET TEXT- Specified by:
getCredentialSecretTextByIdin interfaceIFlexDeployFunctions- Parameters:
pCredentialId- - Credential id of the value to retrieve.- Returns:
- the secret text value of the given credential id.
- Throws:
FlexCheckedException
-
getCredentialSecretTextByName
Returns the secret text value for a given Credential name. Credential must be of type SECRET TEXT- Specified by:
getCredentialSecretTextByNamein interfaceIFlexDeployFunctions- Parameters:
pCredentialName- - Credential Name of the value to retrieve.- Returns:
- the secret text value of the given name.
- Throws:
FlexCheckedException
-
getCredentialValueById
Returns the plaintext value for a given Credential id.- Specified by:
getCredentialValueByIdin interfaceIFlexDeployFunctions- Parameters:
pCredentialId- - Credential id of the value to retrieve- Returns:
- Object containing the secret values based on credential type. (E.g CredentialSecretTextValuePojo, CredentialSshKeyValuePojo, CredentialCertificateValuePojo).
- Throws:
FlexCheckedException
-
getCredentialValueByName
public CredentialValuePojo getCredentialValueByName(String pCredentialName) throws FlexCheckedException Returns the plaintext value for a given Credential id.- Specified by:
getCredentialValueByNamein interfaceIFlexDeployFunctions- Parameters:
pCredentialName- - Credential name of the value to retrieve- Returns:
- Object containing the secret values based on credential type. (E.g CredentialSecretTextValuePojo, CredentialSshKeyValuePojo, CredentialCertificateValuePojo).
- Throws:
FlexCheckedException
-
createEnvironment
Create Environment with the provided data. Returns the Environment details after creation.- Specified by:
createEnvironmentin interfaceIFlexDeployFunctions- Parameters:
pEnvDataObject- - Object containing the Environment details to create the Environment.- Returns:
- A data object of the Environment details.
- Since:
- 6.5.0.5
-
patchEnvironment
Update Environment with the provided data. This will only update fields that are passed in the dataObject.- Specified by:
patchEnvironmentin interfaceIFlexDeployFunctions- Parameters:
pEnvDataObject- - Object containing the Environment details to update the Environment.- Returns:
- A data object of Environment details.
- Throws:
FlexRowNotFoundException- If no Environment is found for the given Environment details.- Since:
- 6.5.0.5
-
updateEnvironment
Update Environment based on the Environment details.- Specified by:
updateEnvironmentin interfaceIFlexDeployFunctions- Parameters:
pEnvDataObject- - Object containing the Environment details to update the Environment.- Returns:
- A data object of Environment details.
- Throws:
FlexRowNotFoundException- If no Environment is found for the given Environment details.- Since:
- 6.5.0.5
-
deleteEnvironment
Deletes an Environment.- Specified by:
deleteEnvironmentin interfaceIFlexDeployFunctions- Parameters:
pEnvironmentId- - the id of the Environment.- Since:
- 6.5.0.5
-
deleteEndpoint
Deletes an Endpoint.- Specified by:
deleteEndpointin interfaceIFlexDeployFunctions- Parameters:
pEndpointId- - the id of the Endpoint.- Since:
- 6.5.0.5
-
deleteCredential
Deletes a Credential.- Specified by:
deleteCredentialin interfaceIFlexDeployFunctions- Parameters:
pCredentialId- - the id of the Credential. No error is thrown if the credential is not found.- Since:
- 6.5.0.5
-
createTargetGroup
Create TargetGroup with the provided data. Returns the TargetGroup details after creation.- Specified by:
createTargetGroupin interfaceIFlexDeployFunctions- Parameters:
pTargetGroupDataObj- - Object containing the TargetGroup details to create the TargetGroup.- Returns:
- A data object of the TargetGroup details.
- Since:
- 6.5.0.5
-
patchTargetGroup
public TargetGroupDataObject patchTargetGroup(TargetGroupDataObject pTargetGroupDataObj) throws FlexRowNotFoundException Update TargetGroup with the provided data. This will only update fields that are passed in the dataObject.- Specified by:
patchTargetGroupin interfaceIFlexDeployFunctions- Parameters:
pTargetGroupDataObj- - Object containing the TargetGroup details to update the TargetGroup.- Returns:
- A data object of the TargetGroup details.
- Throws:
FlexRowNotFoundException- If no TargetGroup is found for the given TargetGroup details.- Since:
- 6.5.0.5
-
updateTargetGroup
public TargetGroupDataObject updateTargetGroup(TargetGroupDataObject pTargetGroupDataObj) throws FlexRowNotFoundException Update TargetGroup based on the TargetGroup details.- Specified by:
updateTargetGroupin interfaceIFlexDeployFunctions- Parameters:
pTargetGroupDataObj- - Object containing the TargetGroup details to update the TargetGroup.- Returns:
- A data object of the TargetGroup details.
- Throws:
FlexRowNotFoundException- If no TargetGroup is found for the given TargetGroup details.- Since:
- 6.5.0.5
-
deleteTargetGroup
Deletes a TargetGroup.- Specified by:
deleteTargetGroupin interfaceIFlexDeployFunctions- Parameters:
pTargetGroupId- - the id of the TargetGroup. No error is thrown if the target group does not exist.- Since:
- 6.5.0.5
-
assignGroupToUser
Assigns Group to User with the provided data.- Specified by:
assignGroupToUserin interfaceIFlexDeployFunctions- Parameters:
pGroupId- - Id of the Group that has to be assigned to the user.pUserId- - Id of the User to which Group has be assigned.- Throws:
FlexRowNotFoundException- If no Group or User is found for the given ids.- Since:
- 6.5.0.6
-
unassignGroupFromUser
Unassigns Group from User with the provided data.- Specified by:
unassignGroupFromUserin interfaceIFlexDeployFunctions- Parameters:
pGroupId- - Id of the Group that has to be unassigned from the user.pUserId- - Id of the User from which Group has be unassigned.- Throws:
FlexRowNotFoundException- If no Group or User is found for the given details.- Since:
- 6.5.0.6
-
assignGroupToUser
Assigns Group to User with the provided data.- Specified by:
assignGroupToUserin interfaceIFlexDeployFunctions- Parameters:
pGroupName- - Name of the Group that has to be assigned to the user.pUserName- - Name of the User to which Group has be assigned.- Throws:
FlexValidationException- If no Group or User is found for the given details.- Since:
- 6.5.0.6
-
unassignGroupFromUser
public void unassignGroupFromUser(String pGroupName, String pUserName) throws FlexValidationException Unassigns Group from User with the provided data.- Specified by:
unassignGroupFromUserin interfaceIFlexDeployFunctions- Parameters:
pGroupName- - Name of the Group that has to be unassigned from the user.pUserName- - Name of the User from which Group has be unassigned.- Throws:
FlexValidationException- If no Group or User is found for the given details.- Since:
- 6.5.0.6
-
createFolder
Create Folder with the provided data. Returns the Folder details after creation.- Specified by:
createFolderin interfaceIFlexDeployFunctions- Parameters:
pFolderDataObject- - Object containing the Folder details to create the Folder.- Returns:
- A data object of the Folder details.
- Since:
- 6.5.0.6
-
patchFolder
public FolderDataObject patchFolder(FolderDataObject pFolderDataObject) throws FlexRowNotFoundException Update Folder with the provided data. This will only update fields that are passed in the dataObject.- Specified by:
patchFolderin interfaceIFlexDeployFunctions- Parameters:
pFolderDataObject- - Object containing the Folder details to update the Folder.- Returns:
- A data object of Folder details.
- Throws:
FlexRowNotFoundException- If no Folder is found for the given Folder details.- Since:
- 6.5.0.6
-
updateFolder
public FolderDataObject updateFolder(FolderDataObject pFolderDataObject) throws FlexRowNotFoundException Update Folder based on the Folder details.- Specified by:
updateFolderin interfaceIFlexDeployFunctions- Parameters:
pFolderDataObject- - Object containing the Folder details to update the Folder.- Returns:
- A data object of Folder details.
- Throws:
FlexRowNotFoundException- If no Folder is found for the given Folder details.- Since:
- 6.5.0.6
-
deleteFolder
Deletes a Folder.- Specified by:
deleteFolderin interfaceIFlexDeployFunctions- Parameters:
pFolderId- - the id of the Folder.- Since:
- 6.5.0.6
-
findReleases
Finds Releases matching the specified name. Search uses an ignore case and contains on the Release Name. UnlikegetReleasethis method returns a list of Releases.- Specified by:
findReleasesin interfaceIFlexDeployFunctions- Parameters:
pName- Name to search by- Returns:
- A List of Release objects containing Release information.
- Throws:
FlexRowNotFoundException- if no releases match the naming criteriapName- Since:
- 5.3.0.1
-
findReleases
public List<ReleasePojo> findReleases(String pName, Integer pLimit, Integer pOffset) throws FlexRowNotFoundException Finds Releases matching the specified name. Search uses an ignore case and contains on the Release Name. UnlikegetReleasethis method returns a list of Releases.- Specified by:
findReleasesin interfaceIFlexDeployFunctions- Parameters:
pName- Name to search bypLimit- - Limit for the number of rows to be returned.pOffset- - Offset number from which the limit starts. Pass 0 to start at beginning of the query result.- Returns:
- A List of Release objects containing Release information.
- Throws:
FlexRowNotFoundException- if no releases match the naming criteriapName- Since:
- 5.3.0.1
-
getRelease
Gets a release by a specific id.- Specified by:
getReleasein interfaceIFlexDeployFunctions- Parameters:
pId- Release Id- Returns:
- Object containing Release metadata
- Throws:
FlexRowNotFoundException- if no Release is found for the givenpId- Since:
- 5.3.0.1
-
patchWorkItemComment
Update a WorkItem comment with the provided data.- Specified by:
patchWorkItemCommentin interfaceIFlexDeployFunctions- Parameters:
pCommentId- - WorkItem comment id.pComment- - WorkItem comment.- Returns:
- A simple pojo of FlexWorkItem comment details.
- Since:
- 6.5.0.6
-
createRelease
public Long createRelease(Long pFolderId, String pReleaseName, String pPipelineName, String pDescription, String pCronSchedule) Create an empty scheduled FlexDeploy Release that defaults to 'STARTED' status.- Specified by:
createReleasein interfaceIFlexDeployFunctions- Parameters:
pFolderId- Folder location for the Release.pReleaseName- Name to give Release.pPipelineName- Pipeline name to use for the Release.pDescription- Optional description to give the Release.pCronSchedule- Cron schedule to give the Release.- Returns:
- Release id
- Throws:
FlexValidationException- when creation of release gets failed.
-
updateRelease
public RelDefinitionDataObject updateRelease(RelDefinitionDataObject pReleasePojo) throws FlexRowNotFoundException Updates a Release with the provided data.- Specified by:
updateReleasein interfaceIFlexDeployFunctions- Parameters:
pReleasePojo- - Object containing release information.- Returns:
- Object of the updated Release
- Throws:
FlexRowNotFoundException- if no release is found for the given release details.
-
patchRelease
public RelDefinitionDataObject patchRelease(RelDefinitionDataObject pReleasePojo) throws FlexRowNotFoundException Updates a release with the provided data. This will only update fields that are passed in the pojo. Returns the release after updating.- Specified by:
patchReleasein interfaceIFlexDeployFunctions- Parameters:
pReleasePojo- - Object containing release information.- Returns:
- Object of the updated Release
- Throws:
FlexRowNotFoundException- if no release is found for the given release details.
-
createRelease
public Long createRelease(String pReleaseName, String pPipelineName, String pDescription, String pCronSchedule) Create an empty scheduled FlexDeploy Release that defaults to 'STARTED' status.- Specified by:
createReleasein interfaceIFlexDeployFunctions- Parameters:
pReleaseName- Name to give Release.pPipelineName- Pipeline name to use for the Release.pDescription- Optional description to give the Release.pCronSchedule- Cron schedule to give the Release.- Returns:
- Release id
- Throws:
FlexValidationException- when creation of release gets failed.
-
createRelease
Create an empty FlexDeploy Release that defaults to 'STARTED' status.- Specified by:
createReleasein interfaceIFlexDeployFunctions- Parameters:
pReleaseName- Name to give Release.pPipelineName- Pipeline name to use for the Release.pDescription- Optional description to give the Release.- Returns:
- Release id
- Throws:
FlexValidationException- when creation of release gets failed.
-
endRelease
End a FlexDeploy Release.- Specified by:
endReleasein interfaceIFlexDeployFunctions- Parameters:
pReleaseName- Release name to end.
-
endRelease
End a FlexDeploy Release.- Specified by:
endReleasein interfaceIFlexDeployFunctions- Parameters:
pReleaseId- Release id to end.
-
forceEndRelease
Force a FlexDeploy Release to end.- Specified by:
forceEndReleasein interfaceIFlexDeployFunctions- Parameters:
pReleaseId- Release id to end.
-
forceEndRelease
Force a FlexDeploy Release to end.- Specified by:
forceEndReleasein interfaceIFlexDeployFunctions- Parameters:
pReleaseName- Release name to end.- Throws:
FlexRowNotFoundException- if Release is not found
-
pauseRelease
Pause a FlexDeploy Release.- Specified by:
pauseReleasein interfaceIFlexDeployFunctions- Parameters:
pReleaseName- Release name to pause.- Throws:
FlexRowNotFoundException- if Release is not found- Since:
- 5.3.0.2
-
pauseRelease
Pause a FlexDeploy Release.- Specified by:
pauseReleasein interfaceIFlexDeployFunctions- Parameters:
pReleaseId- Release id to pause.- Throws:
FlexRowNotFoundException- if Release is not found- Since:
- 5.3.0.2
-
startRelease
Start a FlexDeploy Release.- Specified by:
startReleasein interfaceIFlexDeployFunctions- Parameters:
pReleaseName- Release name to start.- Throws:
FlexRowNotFoundException- if Release is not found
-
startRelease
Start a FlexDeploy Release.- Specified by:
startReleasein interfaceIFlexDeployFunctions- Parameters:
pReleaseId- Release id to start.- Throws:
FlexRowNotFoundException- if Release is not found
-
addProjectsToRelease
public void addProjectsToRelease(String pReleaseName, List<ReleaseProjectsPojo> pReleaseProjects) throws FlexRowNotFoundException Add FlexDeploy projects to a given release. If project already exists in Release then it will be updated. Project Groups (CSV String) on input pojo is Project Group Name.- Specified by:
addProjectsToReleasein interfaceIFlexDeployFunctions- Parameters:
pReleaseName- Release name to add projects to.pReleaseProjects- List of ReleaseProjects to add.- Throws:
FlexRowNotFoundException- if Release is not found
-
removeProjectsFromRelease
public void removeProjectsFromRelease(String pReleaseName, List<ReleaseProjectsPojo> pReleaseProjects) throws FlexRowNotFoundException Remove FlexDeploy projects from a given release.- Specified by:
removeProjectsFromReleasein interfaceIFlexDeployFunctions- Parameters:
pReleaseName- Release name to remove projects from.pReleaseProjects- List of ReleaseProjects to remove.- Throws:
FlexRowNotFoundException- if Release is not found
-
updateReleaseProperty
public void updateReleaseProperty(Long pReleaseDefId, String pPropertyKeyCode, Serializable pNewValue) throws FlexRowNotFoundException Updates a release's property with the provided property key code.- Specified by:
updateReleasePropertyin interfaceIFlexDeployFunctions- Parameters:
pReleaseDefId- - Id of the release that has the property to be updated.pPropertyKeyCode- - The code of the property that is to be updated.pNewValue- - The value that the property will be updated to.- Throws:
FlexRowNotFoundException- Since:
- 5.7.0.3
-
getReleaseProjectInfo
@Deprecated public List<ReleaseProjectDetailsPojo> getReleaseProjectInfo(Long pReleaseDefId) throws FlexRowNotFoundException Deprecated.Gets release project info based on the release definition Id. Returns basic project info for the release with given Id.- Specified by:
getReleaseProjectInfoin interfaceIFlexDeployFunctions- Parameters:
pReleaseDefId- Release Definition Id.- Returns:
- All Projects associated to the release.
- Throws:
FlexRowNotFoundException- Since:
- 5.4
-
getReleaseProjects
- Specified by:
getReleaseProjectsin interfaceIFlexDeployFunctions
-
approveTask
Approve a FlexDeploy Task. Approval, scheduled or human tasks are all compatible. When using this function the execution will run as the username that is passed. Due to this, precaution should be taken to be sure that only relevant users have access to edit the use of this method and/or view webhook payloads which contain the task identifier.- Specified by:
approveTaskin interfaceIFlexDeployFunctions- Parameters:
pUsername- Username to approve the task as, the user passed here needs permission to approve otherwise an error will occur. User must be in local realm.pTaskIdentifier- Task identifier to approve. This identifier is only available in the TaskCreated webhook payload and is not visible from the UI.pNotes- Optional notes to assign to the approval.- Throws:
FlexSecurityViolationException- User doesn't have permission to approve it.FlexValidationException- Task not found. It may have already been approved or rejected.
-
rejectTask
Reject a FlexDeploy Task. Approval, scheduled or human tasks are all compatible. When using this function the execution will run as the username that is passed. Due to this, precaution should be taken to be sure that only relevant users have access to edit the use of this method.- Specified by:
rejectTaskin interfaceIFlexDeployFunctions- Parameters:
pUsername- Username to reject the task as, the user passed here needs permission to reject otherwise an error will occur. User must be in local realm.pTaskIdentifier- Task identifier to approve. This identifier is only available in the TaskCreated webhook payload and is not visible from the UI.pNotes- Optional notes to assign to the rejected task.- Throws:
FlexSecurityViolationException- User doesn't have permission to reject it.FlexValidationException- Task not found. It may have already been approved or rejected.
-
completeManualStepByTaskId
Approve a manual step Human task. Execution will run as the username that is passed.- Specified by:
completeManualStepByTaskIdin interfaceIFlexDeployFunctions- Parameters:
pUsername- - Username to complete the task as.pTaskId- - Task ID of the human task/manual step to approve.- Throws:
FlexSecurityViolationException- User doesn't have permission to approve it.FlexValidationException- Task not found. It may have already been approved or rejected.- Since:
- 5.7.0.4
-
rejectManualStepByTaskId
Reject a manual step Human task. Execution will run as the username that is passed.- Specified by:
rejectManualStepByTaskIdin interfaceIFlexDeployFunctions- Parameters:
pUsername- - Username to complete the task as.pTaskId- - Task ID of the human task/manual step to reject.- Throws:
FlexSecurityViolationException- User doesn't have permission to reject it.FlexValidationException- Task not found. It may have already been approved or rejected.- Since:
- 7.0.0.0
-
completeManualStepBySnapshotId
Approve a manual step Human task. Execution will run as the username that is passed.- Specified by:
completeManualStepBySnapshotIdin interfaceIFlexDeployFunctions- Parameters:
pUsername- - Username to approve the task as.pSnapshotId- - Snapshot Id which has a manual step waiting to be approved.- Throws:
FlexSecurityViolationException- User doesn't have permission to approve it.FlexValidationException- Task not found. It may have already been approved or rejected.- Since:
- 5.7.0.4
-
rejectManualStepBySnapshotId
Reject a manual step Human task. Execution will run as the username that is passed.- Specified by:
rejectManualStepBySnapshotIdin interfaceIFlexDeployFunctions- Parameters:
pUsername- - Username to reject the task as.pSnapshotId- - Snapshot Id which has a manual step waiting to be rejected.- Throws:
FlexSecurityViolationException- User doesn't have permission to reject it.FlexValidationException- Task not found. It may have already been approved or rejected.- Since:
- 7.0.0.0
-
getUsersFromRoleId
Gets a list of the users that are members of the pipeline role with the specified role Id.- Specified by:
getUsersFromRoleIdin interfaceIFlexDeployFunctions- Parameters:
pRoleId- Pipeline role id.- Returns:
- List of FDUser objects.
- Since:
- 5.4.0.0
-
getUsersFromRoleId
Gets a list of the users that are members of the pipeline role with the specified role id and release definition id to get Users overridden at the release.- Specified by:
getUsersFromRoleIdin interfaceIFlexDeployFunctions- Parameters:
pRoleId- Pipeline role id.pRelDefId- Release definition id.- Returns:
- List of FDUser objects.
- Since:
- 7.0.0.0
-
getGroupsFromRoleId
Gets a list of the Groups that are members of the pipeline role with the specified role Id.- Specified by:
getGroupsFromRoleIdin interfaceIFlexDeployFunctions- Parameters:
pRoleId- Pipeline role id.- Returns:
- List of FDGroup objects.
- Since:
- 7.0.0.0
-
getGroupsFromRoleId
Gets a list of the Groups that are members of the pipeline role with the specified role id and release definition id to get Groups overridden at the release.- Specified by:
getGroupsFromRoleIdin interfaceIFlexDeployFunctions- Parameters:
pRoleId- Pipeline role id.pRelDefId- Release definition id..- Returns:
- List of FDGroup objects.
- Since:
- 7.0.0.0
-
updateSnapshotVariable
Updates a snapshot's variable with the provided variable code.- Specified by:
updateSnapshotVariablein interfaceIFlexDeployFunctions- Parameters:
pSnapshotId- - The Id of the snapshot that has the variable to be updated.pVariableCode- - The code of the variable that is to be updated.pNewValue- - The value that the variable will be updated to.- Returns:
- - The Id of the snapshot that has had its variable updated.
- Throws:
FlexValidationException- Since:
- 7.0.0.0
-
getWorkItemStatus
Gets WorkItem Status.- Specified by:
getWorkItemStatusin interfaceIFlexDeployFunctions- Parameters:
pWorkItem- Object.- Returns:
- WorkItem Status.
- Since:
- 7.0.0.0
-
createSnapshot
Create a Snapshot for a given Release. The Release must be in state 'STARTED' before a snapshot can be created.- Specified by:
createSnapshotin interfaceIFlexDeployFunctions- Parameters:
pReleaseId- Release to create the snapshot for.- Returns:
- Snapshot id
- Throws:
FlexValidationException- when failing to submit snapshot.FlexCheckedException
-
downloadSnapshotCommitDetails
Gets the commit details of a snapshot and downloads a csv file to the destination path. File name will be SNAPSHOTID_SNAPSHOTNAME. SNAPSHOTNAME will have the time section removed in the file name.- Specified by:
downloadSnapshotCommitDetailsin interfaceIFlexDeployFunctions- Parameters:
pSnapshotId- - Id of the snapshot whose commit details will be returned.pDestinationPath- - Path where the csv will be downloaded.- Throws:
FlexValidationException- ifpDestinationPathis not provided.- Since:
- 5.4.0.1
-
getSnapshotCommitDetailInputStreams
Gets the commit details of a snapshot and returns an input stream of the data.- Specified by:
getSnapshotCommitDetailInputStreamsin interfaceIFlexDeployFunctions- Parameters:
pSnapshotId- - Id of the snapshot which details will be returned- Returns:
- List of Input streams of the snapshot content details.
- Since:
- 5.4.0.1
-
getSnapshotCommitDetails
Gets the commit details of a snapshot and returns an object with the data.- Specified by:
getSnapshotCommitDetailsin interfaceIFlexDeployFunctions- Parameters:
pSnapshotId- - Id of the snapshot whose commit details will be returned.- Returns:
- List of objects for each row of release snapshot content table for snapshot Id provided.
-
getPipelineStageExecutionInfo
Gets pipeline stage execution info based on the stage exec Id given.- Specified by:
getPipelineStageExecutionInfoin interfaceIFlexDeployFunctions- Parameters:
pStageExecId- Pipeline Stage Execution Id.- Returns:
- Stage Execution Info.
- Since:
- 5.4
-
getPipelineStepProjectsExecution
Get the project request and execution statuses for a given pipeline step execution- Specified by:
getPipelineStepProjectsExecutionin interfaceIFlexDeployFunctions- Parameters:
pStageExecId- The pipeline stage execution idpStepId- The pipeline stage step id to get results for.- Returns:
- An object containing step execution information and project requests
- Since:
- 5.5.0.2
-
getPipelineStepProjectsExecution
public StepProjectsRequestPojo getPipelineStepProjectsExecution(Long pStageExecId, String pStepName) Get the project request and execution statuses for a given pipeline step execution- Specified by:
getPipelineStepProjectsExecutionin interfaceIFlexDeployFunctions- Parameters:
pStageExecId- The pipeline stage execution idpStepName- The pipeline stage step name to get results for.- Returns:
- An object containing step execution information and project requests
- Since:
- 5.5.0.2
-
getBuildWorkflowExecutionsFromProjectVersionIds
public List<WorkflowExecutionDataObject> getBuildWorkflowExecutionsFromProjectVersionIds(List<Long> pProjectVersionIds) Get the build workflow execution details for given project version id(s)- Specified by:
getBuildWorkflowExecutionsFromProjectVersionIdsin interfaceIFlexDeployFunctions- Parameters:
pProjectVersionIds- Project version ID(s)- Returns:
- A list of build workflow execution details for given project version id(s)
- Since:
- 7.0.0.0
-
assignTag
public TagAssignmentDataObject assignTag(FlexDeploySecurityConstants.SecurityObjectType pObjectType, Long pObjectId, String pTagName) Assigns tag to the object with the provided data.- Specified by:
assignTagin interfaceIFlexDeployFunctions- Parameters:
pObjectType- - Type of the object to which the tag has to be assigned.pObjectId- - Id of the object to which the tag has to be assigned.pTagName- - Name of the tag that has to be assigned.- Returns:
- A data object of the tag assignment details.
- Since:
- 7.0.0.0
-
unassignTag
public void unassignTag(FlexDeploySecurityConstants.SecurityObjectType pObjectType, Long pObjectId, String pTagName) Unassigns tag from the object with the provided data.- Specified by:
unassignTagin interfaceIFlexDeployFunctions- Parameters:
pObjectType- - Type of the object from which the tag has to be unassigned.pObjectId- - Id of the object from which the tag has to be unassigned.pTagName- - Name of the tag that has to be unassigned.- Since:
- 7.0.0.0
-
createSnapshot
public Long createSnapshot(Long pReleaseId, List<SnapshotVersionInputPojo> pVersions, List<CodeValueInputPOJO> pInputs) Create a Snapshot for a given Release, Versions, Inputs. The Release must be in state 'STARTED' before a snapshot can be created.- Specified by:
createSnapshotin interfaceIFlexDeployFunctions- Parameters:
pReleaseId- Release to create the snapshot for.pVersions- Project version details to set while creating the snapshot.pInputs- Inputs to provide while creating the snapshot.- Returns:
- Snapshot id.
-
getEmailAddressesFromRoleId
Gets a list of email addresses that are members of the pipeline role with the specified role Id.- Specified by:
getEmailAddressesFromRoleIdin interfaceIFlexDeployFunctions- Parameters:
pRoleId- Pipeline role id.- Returns:
- A list of email addresses.
- Since:
- 7.0.0.0
-
getEmailAddressesFromRoleId
Gets a list of email addresses that are members of the pipeline role with the specified role id and release definition id to get emails overridden at the release.- Specified by:
getEmailAddressesFromRoleIdin interfaceIFlexDeployFunctions- Parameters:
pRoleId- Pipeline role id.pRelDefId- Release definition id.- Returns:
- A list of email addresses.
- Since:
- 7.0.0.0
-
getAllUsersFromRoleId
Gets a list of all the users that are part of Assigned Users as well as all the active users belongs to the Assigned Groups for the pipeline role with the specified pipeline role id.- Specified by:
getAllUsersFromRoleIdin interfaceIFlexDeployFunctions- Parameters:
pRoleId- Pipeline role id.- Returns:
- List of FDUser objects.
- Since:
- 7.0.0.0
-
getAllUsersFromRoleId
Gets a list of all the users that are part of Assigned Users as well as all the active users belongs to the Assigned Groups for the pipeline role with the specified pipeline role id and release definition id to get Users overridden at the release.- Specified by:
getAllUsersFromRoleIdin interfaceIFlexDeployFunctions- Parameters:
pRoleId- Pipeline role id.pRelDefId- Release definition id.- Returns:
- List of FDUser objects.
- Since:
- 7.0.0.0
-
getTaskById
Gets the task details based on the task id passed.- Specified by:
getTaskByIdin interfaceIFlexDeployFunctions- Parameters:
pTaskId- id of the task.- Returns:
- TasksQueryExtResultRow.
- Throws:
FlexRowNotFoundException- if no task found for a given pTaskId.- Since:
- 7.0.0.1
-
getPendingTasksByChangeTicket
Find Pending Tasks for given change ticket.- Specified by:
getPendingTasksByChangeTicketin interfaceIFlexDeployFunctions- Parameters:
pChangeTicket- change ticket number.- Returns:
- A simple pojo list of pending task details.
- Since:
- 7.0.0.1
-
searchTasks
Find Tasks based provided search parameters and pagination input. Returns a PaginatedResponse containing list of Tasks matching search parameters.- Specified by:
searchTasksin interfaceIFlexDeployFunctions- Parameters:
pPojo- - TasksQueryResultPojo 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 beginning of query result.- Returns:
- PaginatedResponse containing the list of Tasks matching the search criteria.
- Since:
- 7.0.0.1
-
approveTaskById
Approves a FlexDeploy Approval or Scheduled Window task.- Specified by:
approveTaskByIdin interfaceIFlexDeployFunctions- Parameters:
pTaskId- Task id to be approved.pNotes- Optional notes to assign to the approval.- Throws:
FlexSecurityViolationException- User doesn't have permission to approve it.FlexValidationException- Task not found. It may have already been approved or rejected.- Since:
- 7.0.0.1
-
rejectTaskById
Rejects a FlexDeploy Approval or Scheduled Window task.- Specified by:
rejectTaskByIdin interfaceIFlexDeployFunctions- Parameters:
pTaskId- Task id to be rejected.pNotes- Optional notes to assign to the approval.- Throws:
FlexSecurityViolationException- User doesn't have permission to approve it.FlexValidationException- Task not found. It may have already been approved or rejected.- Since:
- 7.0.0.1
-
createComment
Create Comment with the provided data. Returns the Comment details after creation.- Specified by:
createCommentin interfaceIFlexDeployFunctions- Parameters:
pCommentDataObj- - Object containing the Comment details to create the Comment.- Returns:
- A data object of the Comment details.
- Since:
- 7.0.0.3
-
patchComment
Update Comment with the provided data. This will only update fields that are passed in the dataObject.- Specified by:
patchCommentin interfaceIFlexDeployFunctions- Parameters:
pCommentDataObj- - Object containing the Comment details to update the Comment.- Returns:
- A data object of Comment details.
- Throws:
FlexRowNotFoundException- If no Comment is found for the given Comment details.- Since:
- 7.0.0.3
-
deleteComment
Deletes a Comment.- Specified by:
deleteCommentin interfaceIFlexDeployFunctions- Parameters:
pCommentId- - the id of the Comment. No error is thrown if the Comment is not found.- Since:
- 7.0.0.3
-
getReleaseById
Returns Release information for a given release definition Id.- Specified by:
getReleaseByIdin interfaceIFlexDeployFunctions- Parameters:
pRelDefinitionId- - Release definition id of the Release to retrieve- Returns:
- Object containing metadata about the given Release
- Throws:
FlexRowNotFoundException- If Release not found for given pRelDefinitionId- Since:
- 7.0.0.3
-
getReleaseByName
Returns Release information for a given release name.- Specified by:
getReleaseByNamein interfaceIFlexDeployFunctions- Parameters:
pRelDefinitionName- - Release name of the Release to retrieve- Returns:
- Object containing metadata about the given Release
- Throws:
FlexRowNotFoundException- If Release not found for given pRelDefinitionName- Since:
- 7.0.0.3
-
createReleaseProjects
public List<RelProjectDataObject> createReleaseProjects(Long pReleaseId, List<RelProjectDataObject> pPojos) Create Release Project with the provided data. Returns the list of Release Projects detail after creation.- Specified by:
createReleaseProjectsin interfaceIFlexDeployFunctions- Parameters:
pReleaseId- - release id to create release projects under.pPojos- - A list containing the Release Projects detail to create the Release Projects.- Returns:
- A list of the Release Project details.
- Since:
- 7.0.0.3
-
patchReleaseProject
Updates a release with the provided data. This will only update fields that are passed in the pRelProjectDataObj. Returns the release project details after updating. Project Groups String is CSV of project group id and not project group names.- Specified by:
patchReleaseProjectin interfaceIFlexDeployFunctions- Parameters:
pRelProjectDataObj- - Object containing release project information.- Returns:
- Object of the updated Release project details.
- Throws:
FlexRowNotFoundException- if no release is found for the given release project details.- Since:
- 7.0.0.3
-
updateReleaseProject
Updates a Release with the provided data. Project Groups String is CSV of project group id and not project group names.- Specified by:
updateReleaseProjectin interfaceIFlexDeployFunctions- Parameters:
pRelProjectDataObj- - Object containing release project information.- Returns:
- Object of the updated Release project details.
- Throws:
FlexRowNotFoundException- if no release is found for the given release project details.- Since:
- 7.0.0.3
-
deleteReleaseProjects
Delete Release projects from release.- Specified by:
deleteReleaseProjectsin interfaceIFlexDeployFunctions- Parameters:
pRelProjectIds- - A list of ids of the Release projects to be deleted. No error is thrown if the release project id is not found.- Since:
- 7.0.0.3
-
searchReleases
Find Releases based on provided search parameters and pagination input. Returns a PaginatedResponse containing list of Releases matching search parameters.- Specified by:
searchReleasesin interfaceIFlexDeployFunctions- Parameters:
pPojo- - RelDefinitionDataObject 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 beginning of query result.- Returns:
- PaginatedResponse containing the list of Releases matching the search criteria.
- Since:
- 7.0.0.3
-
searchReleaseProjects
Find Release Projects based on provided search parameters and pagination input. Returns a PaginatedResponse containing list of Releases matching search parameters.- Specified by:
searchReleaseProjectsin interfaceIFlexDeployFunctions- Parameters:
pPojo- - RelProjectDataObject 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 beginning of query result.- Returns:
- PaginatedResponse containing the list of Release Projects matching the search criteria.
- Since:
- 7.0.0.3
-
deleteReleaseProject
Delete Release project from release.- Specified by:
deleteReleaseProjectin interfaceIFlexDeployFunctions- Parameters:
pRelProjectId- - The id of the Release project to be deleted. No error is thrown if the release project id is not found.- Since:
- 7.0.0.3
-
createReleaseProject
Create Release Project with the provided data. Returns the list of Release Project details after creation.- Specified by:
createReleaseProjectin interfaceIFlexDeployFunctions- Parameters:
pPojo- - Object containing the Release Project details to create the Release Poject.- Returns:
- A data object of the created Release Project details.
- Since:
- 7.0.0.3
-
copyRelease
Create a Release from the source release based on the provided data. Returns the Release details after creation.- Specified by:
copyReleasein interfaceIFlexDeployFunctions- Parameters:
pCopyReleaseInput- - Object containing the source Release details to create the Release.- Returns:
- A data object of the created Release details.
- Since:
- 7.0.0.3
-
createWorkItem
- Specified by:
createWorkItemin interfaceIFlexDeployFunctions
-
updateWorkItem
Updates a WorkItem based on the provided details.- Specified by:
updateWorkItemin interfaceIFlexDeployFunctions- Parameters:
pPojo- Object containing WorkItem details to update the WorkItem.- Returns:
- A simple pojo of WorkItem details.
-
patchWorkItem
Patches a WorkItem with the provided data. This will only update fields that are passed in the pojo.- Specified by:
patchWorkItemin interfaceIFlexDeployFunctions- Parameters:
pPojo- Object containing WorkItem details to update the WorkItem.- Returns:
- A simple pojo of WorkItem details.
-
getWorkItemById
Gets the WorkItem details based on WorkItem id.- Specified by:
getWorkItemByIdin interfaceIFlexDeployFunctions- Parameters:
pWorkItemId- WorkItem id to get the WorkItem details.- Returns:
- A simple pojo of WorkItem details.
- Throws:
FlexRowNotFoundException- If no WorkItem is found for the given WorkItem id.
-
updateWorkItemStatus
- Specified by:
updateWorkItemStatusin interfaceIFlexDeployFunctions
-
updateWorkItemType
- Specified by:
updateWorkItemTypein interfaceIFlexDeployFunctions
-
updateWorkItemAssignee
- Specified by:
updateWorkItemAssigneein interfaceIFlexDeployFunctions
-
getWorkItemTypes
- Specified by:
getWorkItemTypesin interfaceIFlexDeployFunctions
-
getWorkItemStatuses
- Specified by:
getWorkItemStatusesin interfaceIFlexDeployFunctions
-
saveWorkItemFieldData
public List<FlxWorkItemFieldDataDataObject> saveWorkItemFieldData(String pWorkItemNumber, String pFieldName, Serializable pValue) - Specified by:
saveWorkItemFieldDatain interfaceIFlexDeployFunctions
-
getWorkItemFieldData
- Specified by:
getWorkItemFieldDatain interfaceIFlexDeployFunctions
-
getReleaseWorkItems
Get WorkItems associated with Release Id.- Specified by:
getReleaseWorkItemsin interfaceIFlexDeployFunctions- Parameters:
pReleaseId- - Release Id.- Returns:
- A list of WorkItemDataObjects.
- Since:
- 8.0.0.1
-
addWorkItemsToRelease
Add WorkItems to an existing Release.- Specified by:
addWorkItemsToReleasein interfaceIFlexDeployFunctions- Parameters:
pReleaseId- - Release Definition Id to link workitems to.pInstanceId- - Issue tracking instance for workitems. If not provided, Issue tracking instances configured on the release's folder will be used.pWorkItemNumbers- - A list of WorkItems Numbers to be added to the Release.- Since:
- 8.0.0.1
-
removeWorkItemsFromRelease
public void removeWorkItemsFromRelease(Long pReleaseId, Long pInstanceId, List<String> pWorkItemNumbers, boolean pRemoveAssociatedProjects) Remove WorkItems and associated Projects from given Release.- Specified by:
removeWorkItemsFromReleasein interfaceIFlexDeployFunctions- Parameters:
pReleaseId- - Release Id to remove workitems from.pInstanceId- - Issue tracking instance for workitems. If not provided, all the workitems that match the input WorkItem Numbers will be removed.pWorkItemNumbers- - WorkItems Numbers to be removed from the Release.pRemoveAssociatedProjects- - Pass true to remove projects associated with the input WorkItems.- Since:
- 8.0.0.1
-
exportConfigurations
Export configurations as zip file. This only works on Isolated Network Source server. This method can be used to automate export of archive, but result zip file should be deleted once it is no longer needed.- Specified by:
exportConfigurationsin interfaceIFlexDeployFunctions- Returns:
- File representing zip of configuration data.
- Since:
- 8.0.0.1
-
exportBuild
Export build archive as zip file. This only works on Isolated Network Source server. This also contains artifacts of build. This method can be used to automate export of archive, but result zip file should be deleted once it is no longer needed.- Specified by:
exportBuildin interfaceIFlexDeployFunctions- Parameters:
pWorkflowExecutionId- WorkflowExecutionId for which build archive is to be exported.- Returns:
- File representing archive data.
- Since:
- 8.0.0.1
-
exportSnapshot
Export snapshot archive as zip file. This only works on Isolated Network Source server. This also contains artifacts for all snapshot version along with project, workflow and topology configurations that are applicable for the release. This method can be used to automate export of archive, but result zip file should be deleted once it is no longer needed.- Specified by:
exportSnapshotin interfaceIFlexDeployFunctions- Parameters:
pSnapshotId- - SnapshotId for which archive is to be exported.- Returns:
- File representing archive data.
- Since:
- 8.0.0.1
-
getProjectProperties
Get the list of project properties for a given project id.- Specified by:
getProjectPropertiesin interfaceIFlexDeployFunctions- Parameters:
pProjectId- - Id of the Project.- Returns:
- - List of Project Properties associated to the Project.
- Throws:
FlexValidationException- if no project is found for given project id.- Since:
- 8.0.0.1
-
getProjectPropertyValue
Get the project property value for a given project id and property key code.- Specified by:
getProjectPropertyValuein interfaceIFlexDeployFunctions- Parameters:
pProjectId- - Id of the project.pPropertyKeyCode- - The code of the property.- Returns:
- - A serializable value of the project property
- Throws:
FlexValidationException- if an invalid Project id and/or Property Key Code passed.- Since:
- 8.0.0.1
-
updateProjectProperty
Update a project property with the provided property key code and project id.- Specified by:
updateProjectPropertyin interfaceIFlexDeployFunctions- Parameters:
pProjectId- - Id of the project that has the property to be updated.pPropertyKeyCode- - The code of the property that is to be updated.pNewValue- - The value that the property will be updated to.- Throws:
FlexValidationException- if an invalid Project id and/or Property Key Code passed.- Since:
- 8.0.0.1
-
getTargetProperties
Get the list of Target properties for a given target id.- Specified by:
getTargetPropertiesin interfaceIFlexDeployFunctions- Parameters:
pTargetId- - Id of the Target.- Returns:
- - List of Target Properties associated to the Target.
- Throws:
FlexRowNotFoundException- if Target id does not exist.- Since:
- 8.0.0.2
-
updateTargetProperties
public List<PropertyKeyDataObject> updateTargetProperties(Long pTargetId, List<PropertyKeyDataObject> pPropertiesToUpdate) Updates a Target's properties with the provided data. This will replace all the target property values so that only those passed in the list remain. Default values will be applied to null values. Returns a list of the Target properties after updating.- Specified by:
updateTargetPropertiesin interfaceIFlexDeployFunctions- Parameters:
pTargetId- - Id of the Target that is to be updated.pPropertiesToUpdate- - List of property values to be updated on Target.- Returns:
- - List of updated properties.
- Throws:
FlexRowNotFoundException- If Target id does not exist.FlexValidationException- If Property Definition id is not valid.- Since:
- 8.0.0.2
-
patchTargetProperties
public List<PropertyKeyDataObject> patchTargetProperties(Long pTargetId, List<PropertyKeyDataObject> pPropertiesToUpdate) Updates a Target's properties with the provided data. This will only update properties that are passed in the list. Returns a list of the Target properties after updating.- Specified by:
patchTargetPropertiesin interfaceIFlexDeployFunctions- Parameters:
pTargetId- - Id of the Target that is to be updated.pPropertiesToUpdate- - List of property values to be updated on Target.- Returns:
- - List of updated properties.
- Throws:
FlexRowNotFoundException- If Target id does not exist.FlexValidationException- If Property Definition id is not valid.- Since:
- 8.0.0.2
-
uploadAttachmentsToIncident
public void uploadAttachmentsToIncident(String pCMSInstanceCode, String pIncidentNumber, Map<String, InputStream> pAttachments) throws ApiExceptionUploads attachments to an existing Jira or ServiceNow CMS Incident.- Specified by:
uploadAttachmentsToIncidentin interfaceIFlexDeployFunctions- Parameters:
pCMSInstanceCode- The CMS Instance Code.pIncidentNumber- The incident number to which attachments need to be uploaded.pAttachments- The attachments to be uploaded to the CMS Incident. This map should contain the name of attachment(along with the extension) and the attachment in the form of InputStream.- Throws:
ApiException- Throws if attachment cannot be uploaded in the CMS Incident.
-
uploadAttachmentsToTicket
public void uploadAttachmentsToTicket(String pCMSInstanceCode, String pTicketNumber, Map<String, InputStream> pAttachments) throws ApiExceptionUploads attachments to an existing Jira or ServiceNow CMS Ticket.- Specified by:
uploadAttachmentsToTicketin interfaceIFlexDeployFunctions- Parameters:
pCMSInstanceCode- The CMS Instance Code.pTicketNumber- The ticket number to which attachments need to be uploaded.pAttachments- The attachments to be uploaded to the CMS ticket. This map should contain the name of attachment(along with the extension) and the attachment in the form of InputStream.- Throws:
ApiException- Throws if attachment cannot be uploaded in the CMS Ticket.
-
createStandaloneRelease
public Long createStandaloneRelease(Long pProjectId, Long pBranchId, String pReleaseName, Long pBuildEnvironmentId, Long pPipelineId) Creates a Standalone Release for standard project that defaults to 'STARTED' status.- Specified by:
createStandaloneReleasein interfaceIFlexDeployFunctions- Parameters:
pProjectId- - Project id for Standalone Release.pBranchId- - Branch id of the project.pReleaseName- - Name of Standalone Release to create.pBuildEnvironmentId- - Build environment id of the project(optional).pPipelineId- - Pipeline id for Standalone Release(optional - It can take default value from Release settings)..- Returns:
- Release id
- Throws:
FlexValidationException- If invalid inputs are given.
-
createStandaloneRelease
public Long createStandaloneRelease(Long pProjectId, Long pBranchId, String pPackageName, String pReleaseName, Long pBuildEnvironmentId, Long pPipelineId) Creates a Standalone Release for partial project that defaults to 'STARTED' status.- Specified by:
createStandaloneReleasein interfaceIFlexDeployFunctions- Parameters:
pProjectId- - Project id for Standalone Release.pBranchId- - Branch id of the project.pPackageName- - Package name of the project.pReleaseName- - Name of Standalone Release to create.pBuildEnvironmentId- - Build environment id of the project(optional).pPipelineId- - Pipeline id for Standalone Release(optional - It can take default value from Release settings).- Returns:
- Release id
- Throws:
FlexValidationException- If invalid inputs are given.
-
searchWorkflows
- Specified by:
searchWorkflowsin interfaceIFlexDeployFunctions
-
searchByTag
public <any> searchByTag(String pTagName, Boolean pShowInactive, List<FlexDeploySecurityConstants.SecurityObjectType> pSearchEntities, Integer pLimit, Integer pOffset) - Specified by:
searchByTagin interfaceIFlexDeployFunctions
-
searchByTag
- Specified by:
searchByTagin interfaceIFlexDeployFunctions
-
getCmsTicketById
Returns CMS Ticket information for a given CMS Ticket Id.- Specified by:
getCmsTicketByIdin interfaceIFlexDeployFunctions- Parameters:
pCmsTicketId- - CMS Ticket id of the CMS Ticket to retrieve.- Returns:
- Object containing metadata about the given CMS Ticket.
- Throws:
FlexRowNotFoundException- If CMS Ticket not found for given pCmsTicketId.- Since:
- 8.0.0.5
-
getCmsTicketsByNumber
Returns a list of CMS Ticket information for a given CMS Ticket Number.- Specified by:
getCmsTicketsByNumberin interfaceIFlexDeployFunctions- Parameters:
pCmsTicketNumber- - Ticket Number of the CMS Ticket to retrieve.- Returns:
- Returns a list of CMS Ticket information.
- Throws:
FlexRowNotFoundException- If CMS Ticket not found for given pCmsTicketNumber.- Since:
- 8.0.0.5
-
createCmsTicket
Create CMS Ticket with the provided data. Returns the CMS Ticket details after creation.- Specified by:
createCmsTicketin interfaceIFlexDeployFunctions- Parameters:
pCmsTicketDataObject- - Object containing the CMS Ticket details to create the CMS Ticket.- Returns:
- A data object of the CMS Ticket details.
- Since:
- 8.0.0.5
-
updateCmsTicket
Update CMS Ticket based on the CMS Ticket details.- Specified by:
updateCmsTicketin interfaceIFlexDeployFunctions- Parameters:
pCmsTicketDataObject- - Object containing the CMS Ticket details to update the CMS Ticket.- Returns:
- A data object of CMS Ticket details.
- Throws:
FlexRowNotFoundException- If no CMS Ticket is found for the given CMS Ticket details.- Since:
- 8.0.0.5
-
patchCmsTicket
Update CMS Ticket with the provided data. This will only update fields that are passed in the data object.- Specified by:
patchCmsTicketin interfaceIFlexDeployFunctions- Parameters:
pCmsTicketDataObject- - Object containing the CMS Ticket details to update the CMS Ticket.- Returns:
- A data object of CMS Ticket details.
- Throws:
FlexRowNotFoundException- If no CMS Ticket is found for the given CMS Ticket details.- Since:
- 8.0.0.5
-
deleteCmsTicket
Deletes a CMS Ticket.- Specified by:
deleteCmsTicketin interfaceIFlexDeployFunctions- Parameters:
pCmsTicketId- - the id of the CMS Ticket.- Since:
- 8.0.0.5
-
searchCmsTickets
Find CMS Ticket based on provided search parameters and pagination input. Returns a PaginatedResponse containing list of CMS Tickets matching search parameters.- Specified by:
searchCmsTicketsin interfaceIFlexDeployFunctions- Parameters:
pCriteriaObject- - CmsTicketDataObject 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 beginning of the query result.- Returns:
- PaginatedResponse containing the list of CMS Ticket matching the search criteria.
- Since:
- 8.0.0.5
-
getWorkItemsByNumber
Gets a list of WorkItems based on WorkItem number.- Specified by:
getWorkItemsByNumberin interfaceIFlexDeployFunctions- Parameters:
pWorkItemNumber- WorkItem number to get the WorkItem details.- Returns:
- A list of WorkItem details.
- Since:
- 8.0.0.5
-
searchWorkItems
Find WorkItems based on provided search parameters and pagination input. Returns a PaginatedResponse containing list of WorkItems matching search parameters.- Specified by:
searchWorkItemsin interfaceIFlexDeployFunctions- Parameters:
pCriteriaObject- - The WorkItemDataObject 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 beginning of the query result.- Returns:
- PaginatedResponse containing the list of WorkItems matching the search criteria.
- Since:
- 8.0.0.5
-
getReleaseProperties
Get the list of Release properties details for a given Release definition id.- Specified by:
getReleasePropertiesin interfaceIFlexDeployFunctions- Parameters:
pReleaseDefinitionId- - Id of the Release.- Returns:
- - List of Release Properties details associated to the Release.
- Throws:
FlexValidationException- if no Release properties are found for given Release definition id.- Since:
- 8.0.0.5
-
getReleaseProperty
Get the Release property detail for a given Release definition id and Property key code.- Specified by:
getReleasePropertyin interfaceIFlexDeployFunctions- Parameters:
pRelDefId- - Id of the Release.pPropertyKeyCode- - The code of the release property.- Returns:
- - Object containing metadata about of the given release definition id and property key code.
- Throws:
FlexValidationException- if an invalid Release definition id and/or Property Key Code passed.- Since:
- 8.0.0.5
-
updateReleaseProperties
public List<RelPropertyDataObject> updateReleaseProperties(Long pReleaseDefinitionId, List<RelPropertyDataObject> pInputs) Updates a Release properties with the provided data. This will only update properties that are passed in the list. Returns the list of the Release properties details after updating.- Specified by:
updateReleasePropertiesin interfaceIFlexDeployFunctions- Parameters:
pReleaseDefinitionId- - Id of the Release definition that is to be updated.pInputs- - List of properties to be updated on Release.- Returns:
- Returns the list of the Release properties details after updating.
- Since:
- 8.0.0.5
-
createIntegrationInstanceAndProperties
public IntegrationInstancePojo createIntegrationInstanceAndProperties(IntegrationInstancePojo pPojo) Creates and configures the properties of an Integration instance using the provided data object. This method ensures that all necessary attributes are populated and validated before creating the Integration instance.- Specified by:
createIntegrationInstanceAndPropertiesin interfaceIFlexDeployFunctions- Parameters:
pPojo- - The object containing all the required information for setting up the Integration instance- Returns:
- Returns the pojo of Integration instance details.
- Throws:
FlexAPIException- Since:
- 8.0.0.7
-
updateIntegrationInstanceAndProperties
public IntegrationInstancePojo updateIntegrationInstanceAndProperties(IntegrationInstancePojo pPojo) Updates an existing Integration instance and its associated properties with the provided data. Only the fields and properties present in the passed IntegrationInstancePojo will be updated. This method returns the updated Integration instance object, reflecting the changes made.- Specified by:
updateIntegrationInstanceAndPropertiesin interfaceIFlexDeployFunctions- Parameters:
pPojo- - The object containing all of the required data for the Integration instance to update.- Returns:
- Returns the pojo of updated Integration instance details.
- Throws:
FlexAPIException- Since:
- 8.0.0.7
-
patchIntegrationInstanceAndProperties
Updates an Integration instance and its properties with the provided data. This will only update Integration instance details and properties that are passed in the pPojo, leaving other details unchanged. It returns the Integration instance details after updating.- Specified by:
patchIntegrationInstanceAndPropertiesin interfaceIFlexDeployFunctions- Parameters:
pPojo- - The object containing all of the required data for the Integration instance to update.- Returns:
- Returns the pojo of updated Integration instance details.
- Throws:
FlexAPIException- Since:
- 8.0.0.7
-
findProjectPackagesForFilesByProjectId
public List<ProjectPackagePojo> findProjectPackagesForFilesByProjectId(Long pProjectId, List<String> pFiles, PackageSearchOptions pPackageSearchOptions) Finds relevant FlexDeploy Packages for a list of files and with an optional package search options.- Specified by:
findProjectPackagesForFilesByProjectIdin interfaceIFlexDeployFunctions- Parameters:
pProjectId- Id of the project to be used to find matching packages.pFiles- List of files from a webhooks event. If no files, no packages will be returned.pPackageSearchOptions- Package search options like Active package, project scm type, package type and files include/exclude paths.- Returns:
- List of ProjectPackages
-
findProjectPackagesForFilesByProjectType
public List<ProjectPackagePojo> findProjectPackagesForFilesByProjectType(String pProjectType, List<String> pFiles, PackageSearchOptions pPackageSearchOptions) Finds relevant FlexDeploy Packages for a list of files and project type with an optional package search options.- Specified by:
findProjectPackagesForFilesByProjectTypein interfaceIFlexDeployFunctions- Parameters:
pProjectType- The type of the project, use to search for projects.pFiles- List of files from a webhooks event. If no files, no packages will be returned.pPackageSearchOptions- Package search options like Active package, project scm type, package type and files include/exclude paths.- Returns:
- List of ProjectPackages
-
findProjectPackagesByProjectId
public List<ProjectPackagePojo> findProjectPackagesByProjectId(Long pProjectId, PackageSearchOptions pPackageSearchOptions) Finds relevant FlexDeploy Packages for a projectId and with an optional package search options. This function currently only look for projects with no scm type selected.- Specified by:
findProjectPackagesByProjectIdin interfaceIFlexDeployFunctions- Parameters:
pProjectId- Id of the project to be used to find matching packages.pPackageSearchOptions- Package search options like Active package, project scm type, package type and files include/exclude paths.- Returns:
- List of ProjectPackages
-
findProjectPackagesByProjectType
public List<ProjectPackagePojo> findProjectPackagesByProjectType(String pProjectType, PackageSearchOptions pPackageSearchOptions) Finds relevant FlexDeploy Packages for a project type and with an optional package search options.- Specified by:
findProjectPackagesByProjectTypein interfaceIFlexDeployFunctions- Parameters:
pProjectType- The type of the project, use to search for projects.pPackageSearchOptions- Package search options like Active package, project scm type, package type and files include/exclude paths.- Returns:
- List of ProjectPackages
-
ensureWorkItems
Creates work items for a specified project by verifying their existence within the project's configured Issue Tracking System instances. It validates the provided work item numbers and populates metadata for successfully matched work items into the FlexDeploy database, enabling links to build, release, and other processes.- Specified by:
ensureWorkItemsin interfaceIFlexDeployFunctions- Parameters:
pProjectId- Id of the Project.pWorkItemNumbers- A list of work item numbers to validate and create.- Returns:
- A list of
WorkItemDataObjectinstances representing the successfully validated work items.
-
getOrCreateBranchId
Retrieves the Id of a branch in a FlexDeploy project. If the branch does not exist, it creates a new one with the given name- Specified by:
getOrCreateBranchIdin interfaceIFlexDeployFunctions- Parameters:
pProjectId- id of the projectpBranchName- name of the branch- Returns:
- Branch id Creates the branch if it does not already exist
- Throws:
FlexCheckedException- if the branch is not found and cannot be created.
-
getOrCreateBranchId
-
createOrUpdatePackage
public Long createOrUpdatePackage(Long pProjectId, String pPackageName, String pDescription, Long pBranchId, PollingResult pPollingResult) Creates a new package for the specified project and branch, if it doesn't already exist, Or updates the existing one. Automatically updates the package contents based on the provided PollingResult,including any newly detected files.- Specified by:
createOrUpdatePackagein interfaceIFlexDeployFunctions- Parameters:
pProjectId- Parent project id to create package under.pPackageName- Package name to use.pDescription- Description to give the package.pBranchId- Branch to use when populating files if new files are found.pPollingResult- PollingResult object to use for finding differences.- Returns:
- Package id.
- Throws:
FlexValidationException- if project other than SCM Type GIT is invalid.- See Also:
-
getBuildWorkflowExecutionFiles
public <any> getBuildWorkflowExecutionFiles(Long pWorkflowExecutionId, Integer pLimit, Integer pOffset) Retrieves the files associated with the specified package build workflow execution Id.- Specified by:
getBuildWorkflowExecutionFilesin interfaceIFlexDeployFunctions- Parameters:
pWorkflowExecutionId- Workflow Execution Id to retrieve associated build files.pLimit- Limit for the number of rows to be returned.pOffset- Offset number from which the limit starts. Pass 0 to start at beginning of the query result.- Returns:
- PaginatedResponse containing a list of ProjectVersionFileDetailResult objects.
- Throws:
FlexRowNotFoundException- If no workflow execution is found for the given id.
-
getDeployWorkflowExecutionFiles
public <any> getDeployWorkflowExecutionFiles(Long pWorkflowExecutionId, Integer pLimit, Integer pOffset) Retrieves the files associated with the specified package deploy workflow execution Id.- Specified by:
getDeployWorkflowExecutionFilesin interfaceIFlexDeployFunctions- Parameters:
pWorkflowExecutionId- Workflow Execution Id to retrieve associated deploy files.pLimit- Limit for the number of rows to be returned.pOffset- Offset number from which the limit starts. Pass 0 to start at beginning of the query result.- Returns:
- PaginatedResponse containing a list of PackageDeploymentFileResults objects.
- Throws:
FlexRowNotFoundException- If no workflow execution is found for the given id.
-
initializeOrRefreshCredentialValuesInCache
public void initializeOrRefreshCredentialValuesInCache(int pBatchSize, int pDelayBetweenBatchesMillis) Loads or refreshes the elements of the credential cache in batches. The system setting Credential Cache Timeout (sec) governs how long credential store results remain valid. To ensure timely cache updates and avoid delays in execution, this method should be invoked from a scheduled events script at an appropriate interval.- Specified by:
initializeOrRefreshCredentialValuesInCachein interfaceIFlexDeployFunctions- Parameters:
pBatchSize- Processing entries in configurable batch sizespDelayBetweenBatchesMillis- Applying a delay between batches
-
inactivateProjectVersion
public ProjectVersionDataObject inactivateProjectVersion(Long pProjectVersionId, String pInactivationReason) Inactivates an active project version.- Specified by:
inactivateProjectVersionin interfaceIFlexDeployFunctions- Parameters:
pProjectVersionId- The id of the project version that you wish to inactivate.pInactivationReason- (Optional) The reason that the project version is being inactivated.- Returns:
- ProjectVersionDataObject - A representation of the project version.
-
activateProjectVersion
Activates an inactive project version.- Specified by:
activateProjectVersionin interfaceIFlexDeployFunctions- Parameters:
pProjectVersionId- The id of the project version that you wish to activate.- Returns:
- ProjectVersionDataObject - A representation of the project version.
-
addWorkItemToProjectVersion
Adds a work item to a project version.- Specified by:
addWorkItemToProjectVersionin interfaceIFlexDeployFunctions- Parameters:
pProjectVersionId- The id of the project version to which you want to add a work item.pWorkItemId- The id of the work item that you wish to add.
-
removeWorkItemFromProjectVersion
Removes a work item from a project version.- Specified by:
removeWorkItemFromProjectVersionin interfaceIFlexDeployFunctions- Parameters:
pProjectVersionId- The id of the project version to which you want to remove a work item.pWorkItemId- The id of the work item that you wish to add.
-
getPendingOrApprovedContent
Snapshot content that will deploy or has already deployed in this stage, excluding utility projects.- Specified by:
getPendingOrApprovedContentin interfaceIFlexDeployFunctions- Parameters:
pStageExecId- The pipeline stage execution id.- Returns:
- List of SnapshotCompareItem
-
getPendingOrApprovedCommits
Commits in the snapshot that will deploy or have already deployed in this stage.- Specified by:
getPendingOrApprovedCommitsin interfaceIFlexDeployFunctions- Parameters:
pStageExecId- The pipeline stage execution id.- Returns:
- List of ScmCommitDataObject
-
getPendingOrApprovedWorkItems
Work items in the snapshot that will deploy or have already deployed in this stage.- Specified by:
getPendingOrApprovedWorkItemsin interfaceIFlexDeployFunctions- Parameters:
pStageExecId- The pipeline stage execution id.- Returns:
- List of WorkItemDataObject
-
getPipelineById
Finds Pipeline by using its unique ID.- Specified by:
getPipelineByIdin interfaceIFlexDeployFunctions- Parameters:
pPipelineId- - Id of Pipeline to find.- Returns:
- PipelineDefinitionDataObject- containing the pipeline definition details.
- Throws:
FlexRowNotFoundException- if no row found forpPipelineId.
-
searchPipelines
public <any> searchPipelines(PipelineDefinitionDataObject pCriteriaObject, Integer pLimit, Integer pOffset) Finds pipelines based on the provided search criteria and pagination input.- Specified by:
searchPipelinesin interfaceIFlexDeployFunctions- Parameters:
pCriteriaObject-PipelineDefinitionDataObjectcontaining the search criteria values.pLimit- Maximum number of rows to return.pOffset- Starting offset for the result set. Pass 0 to begin from the start of the query result.- Returns:
PaginatedResponseofPipelineDefinitionDataObjectmatching the specified criteria.
-
prepareRollBackWorkflowRequest
- Specified by:
prepareRollBackWorkflowRequestin interfaceIFlexDeployFunctions
-
rollBack
public WorkflowRequestDataObject rollBack(RollbackWorkflowRequestInput pRollbackWorkflowRequestInput) Submits a rollback workflow request.- Specified by:
rollBackin interfaceIFlexDeployFunctions- Parameters:
pRollbackWorkflowRequestInput- Object containing rollback configuration (project, environment, instance selection, and optionally build file inputs for package-based rollback).- Returns:
- WorkflowRequestDataObject for the submitted rollback workflow request.
-