Class ServiceNowConfiguration
java.lang.Object
org.apache.camel.component.servicenow.ServiceNowConfiguration
- All Implemented Interfaces:
Cloneable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
addRequestModel
(String name, Class<?> type) void
addResponseModel
(String name, Class<?> type) copy()
org.apache.cxf.transports.http.configuration.HTTPClientPolicy
getKey()
com.fasterxml.jackson.databind.ObjectMapper
com.fasterxml.jackson.databind.ObjectMapper
org.apache.cxf.configuration.security.ProxyAuthorizationPolicy
Class
<?> getRequestModel
(String name) Class
<?> getRequestModel
(String name, Class<?> defaultType) Class
<?> getResponseModel
(String name) Class
<?> getResponseModel
(String name, Class<?> defaultType) org.apache.camel.support.jsse.SSLContextParameters
getTable()
boolean
boolean
boolean
boolean
boolean
void
The ServiceNow REST API urlvoid
setApiVersion
(String apiVersion) The ServiceNow REST API version, default latestvoid
setDateFormat
(String dateFormat) The date format used for Json serialization/deserializationvoid
setDateTimeFormat
(String dateTimeFormat) The date-time format used for Json serialization/deserializationvoid
setDisplay
(String display) Set this parameter to true to return only scorecards where the indicator Display field is selected.void
setDisplayValue
(String displayValue) Return the display value (true), actual value (false), or both (all) for reference fields (default: false)void
setExcludeReferenceLink
(Boolean excludeReferenceLink) True to exclude Table API links for reference fields (default: false)void
setFavorites
(Boolean favorites) Set this parameter to true to return only scorecards that are favorites of the querying user.void
setHttpClientPolicy
(org.apache.cxf.transports.http.configuration.HTTPClientPolicy httpClientPolicy) To configure http-clientvoid
setIncludeAggregates
(Boolean includeAggregates) Set this parameter to true to always return all available aggregates for an indicator, including when an aggregate has already been applied.void
setIncludeAvailableAggregates
(Boolean includeAvailableAggregates) Set this parameter to true to return all available aggregates for an indicator when no aggregate has been applied.void
setIncludeAvailableBreakdowns
(Boolean includeAvailableBreakdowns) Set this parameter to true to return all available breakdowns for an indicator.void
setIncludeScoreNotes
(Boolean includeScoreNotes) Set this parameter to true to return all notes associated with the score.void
setIncludeScores
(Boolean includeScores) Set this parameter to true to return all scores for a scorecard.void
setInputDisplayValue
(Boolean inputDisplayValue) True to set raw value of input fields (default: false)void
Set this parameter to true to return only scorecards for key indicators.void
setMapper
(com.fasterxml.jackson.databind.ObjectMapper mapper) Sets Jackson's ObjectMapper to use for request/replyvoid
void
setOauthClientId
(String oauthClientId) OAuth2 ClientIDvoid
setOauthClientSecret
(String oauthClientSecret) OAuth2 ClientSecretvoid
setOauthTokenUrl
(String oauthTokenUrl) OAuth token Urlvoid
setPassword
(String password) ServiceNow account password, MUST be providedvoid
setPerPage
(Integer perPage) Enter the maximum number of scorecards each query can return.void
setProxyAuthorizationPolicy
(org.apache.cxf.configuration.security.ProxyAuthorizationPolicy proxyAuthorizationPolicy) To configure proxy authenticationvoid
setProxyHost
(String proxyHost) The proxy host namevoid
setProxyPassword
(String proxyPassword) Password for proxy authenticationvoid
setProxyPort
(Integer proxyPort) The proxy port numbervoid
setProxyUserName
(String proxyUserName) Username for proxy authenticationvoid
setRelease
(ServiceNowRelease release) The ServiceNow release to target, default to Helsinki See https://docs.servicenow.comvoid
setRequestModels
(Map<String, Class<?>> models) Defines the request modelvoid
setResource
(String resource) The default resource, can be overridden by header CamelServiceNowResourcevoid
setResponseModels
(Map<String, Class<?>> models) Defines the response modelvoid
setRetrieveTargetRecordOnImport
(Boolean retrieveTargetRecordOnImport) Set this parameter to true to retrieve the target record when using import set api.void
Specify the value to use when sorting results.void
setSortDir
(String sortDir) Specify the sort direction, ascending or descending.void
setSslContextParameters
(org.apache.camel.support.jsse.SSLContextParameters sslContextParameters) To configure security using SSLContextParameters.void
setSuppressAutoSysField
(Boolean suppressAutoSysField) True to suppress auto generation of system fields (default: false)void
setSuppressPaginationHeader
(Boolean suppressPaginationHeader) Set this value to true to remove the Link header from the response.void
The default table, can be overridden by header CamelServiceNowTablevoid
Set this parameter to true to return only scorecards that have a target.void
setTimeFormat
(String timeFormat) The time format used for Json serialization/deserializationvoid
setTopLevelOnly
(Boolean topLevelOnly) Gets only those categories whose parent is a catalog.void
setUserName
(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
-