Class ServiceNowConfiguration
java.lang.Object
org.apache.camel.component.servicenow.ServiceNowConfiguration
- All Implemented Interfaces:
Cloneable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidaddRequestModel(String name, Class<?> type) voidaddResponseModel(String name, Class<?> type) copy()org.apache.cxf.transports.http.configuration.HTTPClientPolicygetKey()com.fasterxml.jackson.databind.ObjectMappercom.fasterxml.jackson.databind.ObjectMapperorg.apache.cxf.configuration.security.ProxyAuthorizationPolicyClass<?> getRequestModel(String name) Class<?> getRequestModel(String name, Class<?> defaultType) Class<?> getResponseModel(String name) Class<?> getResponseModel(String name, Class<?> defaultType) org.apache.camel.support.jsse.SSLContextParametersgetTable()booleanbooleanbooleanbooleanbooleanvoidThe ServiceNow REST API urlvoidsetApiVersion(String apiVersion) The ServiceNow REST API version, default latestvoidsetDateFormat(String dateFormat) The date format used for Json serialization/deserializationvoidsetDateTimeFormat(String dateTimeFormat) The date-time format used for Json serialization/deserializationvoidsetDisplay(String display) Set this parameter to true to return only scorecards where the indicator Display field is selected.voidsetDisplayValue(String displayValue) Return the display value (true), actual value (false), or both (all) for reference fields (default: false)voidsetExcludeReferenceLink(Boolean excludeReferenceLink) True to exclude Table API links for reference fields (default: false)voidsetFavorites(Boolean favorites) Set this parameter to true to return only scorecards that are favorites of the querying user.voidsetHttpClientPolicy(org.apache.cxf.transports.http.configuration.HTTPClientPolicy httpClientPolicy) To configure http-clientvoidsetIncludeAggregates(Boolean includeAggregates) Set this parameter to true to always return all available aggregates for an indicator, including when an aggregate has already been applied.voidsetIncludeAvailableAggregates(Boolean includeAvailableAggregates) Set this parameter to true to return all available aggregates for an indicator when no aggregate has been applied.voidsetIncludeAvailableBreakdowns(Boolean includeAvailableBreakdowns) Set this parameter to true to return all available breakdowns for an indicator.voidsetIncludeScoreNotes(Boolean includeScoreNotes) Set this parameter to true to return all notes associated with the score.voidsetIncludeScores(Boolean includeScores) Set this parameter to true to return all scores for a scorecard.voidsetInputDisplayValue(Boolean inputDisplayValue) True to set raw value of input fields (default: false)voidSet this parameter to true to return only scorecards for key indicators.voidsetMapper(com.fasterxml.jackson.databind.ObjectMapper mapper) Sets Jackson's ObjectMapper to use for request/replyvoidvoidsetOauthClientId(String oauthClientId) OAuth2 ClientIDvoidsetOauthClientSecret(String oauthClientSecret) OAuth2 ClientSecretvoidsetOauthTokenUrl(String oauthTokenUrl) OAuth token UrlvoidsetPassword(String password) ServiceNow account password, MUST be providedvoidsetPerPage(Integer perPage) Enter the maximum number of scorecards each query can return.voidsetProxyAuthorizationPolicy(org.apache.cxf.configuration.security.ProxyAuthorizationPolicy proxyAuthorizationPolicy) To configure proxy authenticationvoidsetProxyHost(String proxyHost) The proxy host namevoidsetProxyPassword(String proxyPassword) Password for proxy authenticationvoidsetProxyPort(Integer proxyPort) The proxy port numbervoidsetProxyUserName(String proxyUserName) Username for proxy authenticationvoidsetRelease(ServiceNowRelease release) The ServiceNow release to target, default to Helsinki See https://docs.servicenow.comvoidsetRequestModels(Map<String, Class<?>> models) Defines the request modelvoidsetResource(String resource) The default resource, can be overridden by header CamelServiceNowResourcevoidsetResponseModels(Map<String, Class<?>> models) Defines the response modelvoidsetRetrieveTargetRecordOnImport(Boolean retrieveTargetRecordOnImport) Set this parameter to true to retrieve the target record when using import set api.voidSpecify the value to use when sorting results.voidsetSortDir(String sortDir) Specify the sort direction, ascending or descending.voidsetSslContextParameters(org.apache.camel.support.jsse.SSLContextParameters sslContextParameters) To configure security using SSLContextParameters.voidsetSuppressAutoSysField(Boolean suppressAutoSysField) True to suppress auto generation of system fields (default: false)voidsetSuppressPaginationHeader(Boolean suppressPaginationHeader) Set this value to true to remove the Link header from the response.voidThe default table, can be overridden by header CamelServiceNowTablevoidSet this parameter to true to return only scorecards that have a target.voidsetTimeFormat(String timeFormat) The time format used for Json serialization/deserializationvoidsetTopLevelOnly(Boolean topLevelOnly) Gets only those categories whose parent is a catalog.voidsetUserName(String userName) ServiceNow user account name, MUST be provided
-
Constructor Details
-
ServiceNowConfiguration
public ServiceNowConfiguration()
-
-
Method Details
-
getUserName
-
getApiUrl
-
setApiUrl
The ServiceNow REST API url -
hasApiUrl
public boolean hasApiUrl() -
getApiVersion
-
setApiVersion
The ServiceNow REST API version, default latest -
setUserName
ServiceNow user account name, MUST be provided -
getPassword
-
setPassword
ServiceNow account password, MUST be provided -
getOauthClientId
-
setOauthClientId
OAuth2 ClientID -
getOauthClientSecret
-
setOauthClientSecret
OAuth2 ClientSecret -
getOauthTokenUrl
-
hasOauthTokenUrl
public boolean hasOauthTokenUrl() -
setOauthTokenUrl
OAuth token Url -
hasBasicAuthentication
public boolean hasBasicAuthentication() -
hasOAuthAuthentication
public boolean hasOAuthAuthentication() -
getResource
-
setResource
The default resource, can be overridden by header CamelServiceNowResource -
getTable
-
setTable
The default table, can be overridden by header CamelServiceNowTable -
getExcludeReferenceLink
-
setExcludeReferenceLink
True to exclude Table API links for reference fields (default: false) -
getSuppressAutoSysField
-
setSuppressAutoSysField
True to suppress auto generation of system fields (default: false) -
getSuppressPaginationHeader
-
setSuppressPaginationHeader
Set this value to true to remove the Link header from the response. The Link header allows you to request additional pages of data when the number of records matching your query exceeds the query limit -
getIncludeScores
-
setIncludeScores
Set this parameter to true to return all scores for a scorecard. If a value is not specified, this parameter defaults to false and returns only the most recent score value. -
getIncludeAggregates
-
setIncludeAggregates
Set this parameter to true to always return all available aggregates for an indicator, including when an aggregate has already been applied. If a value is not specified, this parameter defaults to false and returns no aggregates. -
getIncludeAvailableBreakdowns
-
setIncludeAvailableBreakdowns
Set this parameter to true to return all available breakdowns for an indicator. If a value is not specified, this parameter defaults to false and returns no breakdowns. -
getIncludeAvailableAggregates
-
setIncludeAvailableAggregates
Set this parameter to true to return all available aggregates for an indicator when no aggregate has been applied. If a value is not specified, this parameter defaults to false and returns no aggregates. -
getIncludeScoreNotes
-
setIncludeScoreNotes
Set this parameter to true to return all notes associated with the score. The note element contains the note text as well as the author and timestamp when the note was added. -
getFavorites
-
setFavorites
Set this parameter to true to return only scorecards that are favorites of the querying user. -
getRetrieveTargetRecordOnImport
-
setRetrieveTargetRecordOnImport
Set this parameter to true to retrieve the target record when using import set api. The import set result is then replaced by the target record -
getKey
-
setKey
Set this parameter to true to return only scorecards for key indicators. -
getTarget
-
setTarget
Set this parameter to true to return only scorecards that have a target. -
getDisplay
-
setDisplay
Set this parameter to true to return only scorecards where the indicator Display field is selected. Set this parameter to all to return scorecards with any Display field value. This parameter is true by default. -
getPerPage
-
setPerPage
Enter the maximum number of scorecards each query can return. By default this value is 10, and the maximum is 100. -
getSortBy
-
setSortBy
Specify the value to use when sorting results. By default, queries sort records by value. -
getSortDir
-
setSortDir
Specify the sort direction, ascending or descending. By default, queries sort records in descending order. Use sysparm_sortdir=asc to sort in ascending order. -
getDisplayValue
-
setDisplayValue
Return the display value (true), actual value (false), or both (all) for reference fields (default: false) -
getInputDisplayValue
-
setInputDisplayValue
True to set raw value of input fields (default: false) -
getRequestModels
-
setMapper
public void setMapper(com.fasterxml.jackson.databind.ObjectMapper mapper) Sets Jackson's ObjectMapper to use for request/reply -
getMapper
public com.fasterxml.jackson.databind.ObjectMapper getMapper() -
getOrCreateMapper
public com.fasterxml.jackson.databind.ObjectMapper getOrCreateMapper() -
hasMapper
public boolean hasMapper() -
setRelease
The ServiceNow release to target, default to Helsinki See https://docs.servicenow.com -
getRelease
-
getTopLevelOnly
-
setTopLevelOnly
Gets only those categories whose parent is a catalog. -
getSslContextParameters
public org.apache.camel.support.jsse.SSLContextParameters getSslContextParameters() -
setSslContextParameters
public void setSslContextParameters(org.apache.camel.support.jsse.SSLContextParameters sslContextParameters) To configure security using SSLContextParameters. See http://camel.apache.org/camel-configuration-utilities.html -
getHttpClientPolicy
public org.apache.cxf.transports.http.configuration.HTTPClientPolicy getHttpClientPolicy() -
setHttpClientPolicy
public void setHttpClientPolicy(org.apache.cxf.transports.http.configuration.HTTPClientPolicy httpClientPolicy) To configure http-client -
getProxyAuthorizationPolicy
public org.apache.cxf.configuration.security.ProxyAuthorizationPolicy getProxyAuthorizationPolicy() -
setProxyAuthorizationPolicy
public void setProxyAuthorizationPolicy(org.apache.cxf.configuration.security.ProxyAuthorizationPolicy proxyAuthorizationPolicy) To configure proxy authentication -
getProxyHost
-
setProxyHost
The proxy host name -
getProxyPort
-
setProxyPort
The proxy port number -
getProxyUserName
-
setProxyUserName
Username for proxy authentication -
getProxyPassword
-
setProxyPassword
Password for proxy authentication -
getDateFormat
-
setDateFormat
The date format used for Json serialization/deserialization -
getTimeFormat
-
setTimeFormat
The time format used for Json serialization/deserialization -
getDateTimeFormat
-
setDateTimeFormat
The date-time format used for Json serialization/deserialization -
setModels
-
getModels
-
addModel
-
setRequestModels
Defines the request model -
getResponseModels
-
addRequestModel
-
getRequestModel
-
getRequestModel
-
setResponseModels
Defines the response model -
addResponseModel
-
getResponseModel
-
getResponseModel
-
copy
-