SearchFilter commands

createSearchFilter

Create a search filter.

Arguments

Argument Name Type Description

objectType

String

Object type. (Required)

displayName

String

Search filter name. (Required)

description

String

Comment text describing this object that is not interpreted at all by CloudBees Flow.

searchQuery

String

Search filter query CLOB

shared

Boolean

Flag indicating whether the filter is public or private

Usage

import com.electriccloud.client.groovy.ElectricFlow
import com.electriccloud.client.groovy.models.*


ElectricFlow ef = new ElectricFlow()

def result = ef.createSearchFilter(
                objectType: 'test-objectType',
                displayName: 'test-displayName'
                /* optional arguments */)

deleteSearchFilter

Delete a search filter from the database.

Arguments

Argument Name Type Description

objectType

String

Object type. (Required)

displayName

String

Search filter name. (Required)

userName

String

Search filter user name

Usage

import com.electriccloud.client.groovy.ElectricFlow
import com.electriccloud.client.groovy.models.*


ElectricFlow ef = new ElectricFlow()

def result = ef.deleteSearchFilter(
                objectType: 'test-objectType',
                displayName: 'test-displayName'
                /* optional arguments */)

getSearchFilter

Returns search filter.

Arguments

Argument Name Type Description

objectType

String

Object type. (Required)

displayName

String

Search filter name. (Required)

userName

String

Search filter user name

Usage

import com.electriccloud.client.groovy.ElectricFlow
import com.electriccloud.client.groovy.models.*


ElectricFlow ef = new ElectricFlow()

def result = ef.getSearchFilter(
                objectType: 'test-objectType',
                displayName: 'test-displayName'
                /* optional arguments */)

getSearchFilters

Retrieve all search filter names.

Arguments

Argument Name Type Description

objectType

String

Object type.

userName

String

Search filter user name

Usage

import com.electriccloud.client.groovy.ElectricFlow
import com.electriccloud.client.groovy.models.*


ElectricFlow ef = new ElectricFlow()

def result = ef.getSearchFilters(
                /* optional arguments */)

modifySearchFilter

Modify a search filter.

Arguments

Argument Name Type Description

objectType

String

Object type. (Required)

displayName

String

Search filter name. (Required)

description

String

Comment text describing this object that is not interpreted at all by CloudBees Flow.

newName

String

New name for an existing object that is being renamed.

newObjectType

String

Search filter entity type

searchQuery

String

Search filter query CLOB

shared

Boolean

Flag indicating whether the filter is public or private

userName

String

Search filter user name

Usage

import com.electriccloud.client.groovy.ElectricFlow
import com.electriccloud.client.groovy.models.*


ElectricFlow ef = new ElectricFlow()

def result = ef.modifySearchFilter(
                objectType: 'test-objectType',
                displayName: 'test-displayName'
                /* optional arguments */)