@UriParams public class ServiceNowConfiguration extends Object
Constructor and Description |
---|
ServiceNowConfiguration() |
Modifier and Type | Method and Description |
---|---|
void |
addModel(String name,
Class<?> type) |
String |
getApiUrl() |
String |
getDisplay() |
String |
getDisplayValue() |
Boolean |
getExcludeReferenceLink() |
Boolean |
getFavorites() |
Boolean |
getIncludeAggregates() |
Boolean |
getIncludeAvailableAggregates() |
Boolean |
getIncludeAvailableBreakdowns() |
Boolean |
getIncludeScoreNotes() |
Boolean |
getIncludeScores() |
Boolean |
getInputDisplayValue() |
Boolean |
getKey() |
com.fasterxml.jackson.databind.ObjectMapper |
getMapper() |
Class<?> |
getModel(String name) |
Class<?> |
getModel(String name,
Class<?> defaultType) |
Map<String,Class<?>> |
getModels() |
String |
getOauthClientId() |
String |
getOauthClientSecret() |
String |
getOauthTokenUrl() |
String |
getPassword() |
Integer |
getPerPage() |
ServiceNowRelease |
getRelease() |
String |
getResource() |
String |
getSortBy() |
String |
getSortDir() |
Boolean |
getSuppressAutoSysField() |
Boolean |
getSuppressPaginationHeader() |
String |
getTable() |
Boolean |
getTarget() |
Boolean |
getTopLevelOnly() |
String |
getUserName() |
boolean |
hasApiUrl() |
boolean |
hasBasicAuthentication() |
boolean |
hasMapper() |
boolean |
hasOAuthAuthentication() |
boolean |
hasOautTokenUrl() |
void |
setApiUrl(String apiUrl)
The ServiceNow REST API url
|
void |
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 |
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 |
setKey(Boolean key)
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/reply
|
void |
setModels(Map<String,Class<?>> models)
Defines the default model to use for a table
|
void |
setOauthClientId(String oauthClientId)
OAuth2 ClientID
|
void |
setOauthClientSecret(String oauthClientSecret)
OAuth2 ClientSecret
|
void |
setOauthTokenUrl(String oauthTokenUrl)
OAuth token Url
|
void |
setPassword(String password)
ServiceNow account password, MUST be provided
|
void |
setPerPage(Integer perPage)
Enter the maximum number of scorecards each query can return.
|
void |
setRelease(ServiceNowRelease release)
The ServiceNow release to target, default to Helsinki
See https://docs.servicenow.com
|
void |
setResource(String resource)
The default resource, can be overridden by header CamelServiceNowResource
|
void |
setSortBy(String sortBy)
Specify the value to use when sorting results.
|
void |
setSortDir(String sortDir)
Specify the sort direction, ascending or descending.
|
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 |
setTable(String table)
The default table, can be overridden by header CamelServiceNowTable
|
void |
setTarget(Boolean target)
Set this parameter to true to return only scorecards that have a target.
|
void |
setTopLevelOnly(Boolean topLevelOnly)
Gets only those categories whose parent is a catalog.
|
void |
setUserName(String userName)
ServiceNow user account name, MUST be provided
|
public String getUserName()
public String getApiUrl()
public void setApiUrl(String apiUrl)
public boolean hasApiUrl()
public void setUserName(String userName)
public String getPassword()
public void setPassword(String password)
public String getOauthClientId()
public void setOauthClientId(String oauthClientId)
public String getOauthClientSecret()
public void setOauthClientSecret(String oauthClientSecret)
public String getOauthTokenUrl()
public boolean hasOautTokenUrl()
public void setOauthTokenUrl(String oauthTokenUrl)
public boolean hasBasicAuthentication()
public boolean hasOAuthAuthentication()
public String getResource()
public void setResource(String resource)
public String getTable()
public void setTable(String table)
public Boolean getExcludeReferenceLink()
public void setExcludeReferenceLink(Boolean excludeReferenceLink)
public Boolean getSuppressAutoSysField()
public void setSuppressAutoSysField(Boolean suppressAutoSysField)
public Boolean getSuppressPaginationHeader()
public void setSuppressPaginationHeader(Boolean suppressPaginationHeader)
public Boolean getIncludeScores()
public void setIncludeScores(Boolean includeScores)
public Boolean getIncludeAggregates()
public void setIncludeAggregates(Boolean includeAggregates)
public Boolean getIncludeAvailableBreakdowns()
public void setIncludeAvailableBreakdowns(Boolean includeAvailableBreakdowns)
public Boolean getIncludeAvailableAggregates()
public void setIncludeAvailableAggregates(Boolean includeAvailableAggregates)
public Boolean getIncludeScoreNotes()
public void setIncludeScoreNotes(Boolean includeScoreNotes)
public Boolean getFavorites()
public void setFavorites(Boolean favorites)
public Boolean getKey()
public void setKey(Boolean key)
public Boolean getTarget()
public void setTarget(Boolean target)
public String getDisplay()
public void setDisplay(String display)
public Integer getPerPage()
public void setPerPage(Integer perPage)
public String getSortBy()
public void setSortBy(String sortBy)
public String getSortDir()
public void setSortDir(String sortDir)
public String getDisplayValue()
public void setDisplayValue(String displayValue)
public Boolean getInputDisplayValue()
public void setInputDisplayValue(Boolean inputDisplayValue)
public void setModels(Map<String,Class<?>> models)
public void setMapper(com.fasterxml.jackson.databind.ObjectMapper mapper)
public com.fasterxml.jackson.databind.ObjectMapper getMapper()
public boolean hasMapper()
public void setRelease(ServiceNowRelease release)
public ServiceNowRelease getRelease()
public Boolean getTopLevelOnly()
public void setTopLevelOnly(Boolean topLevelOnly)
Apache Camel