Interface IntegrationRule
public interface IntegrationRule
Provides methods to retrieve information related to an
IntegrationRule
.
Contract object for the Integrationrule
component.-
Method Summary
Modifier and TypeMethodDescriptionRetrieves the API name (api_name__sys
) of the Connection record referenced by this rule.Retrieves the list of theFieldrules
sub-component under thisIntegrationrule
component.Retrieves the API name (integration_point_api_name__sys
) of the Integration Point record referenced by this rule.getLabel()
Retrieves thisIntegrationRule
label.getName()
Retrieves thisIntegrationRule
name.Retrieves the name of the primary query object of this integration rule.getQueryFields
(String queryObjectName) Retrieves a Collection of query fields referenced inFieldrules
for the specified query object.Retrieves all of theQueryobjectrules
for theIntegrationrule
getQueryObjectRules
(String sourceObject) Retrieves anyQueryobjectrules
which have the specified value for their object field.boolean
isActive()
Retrieves the activation status of this rule.
-
Method Details
-
getName
String getName()Retrieves thisIntegrationRule
name. For example,my_integration_rule__c
. This value is never null.- Returns:
- rule name
-
getLabel
String getLabel()Retrieves thisIntegrationRule
label. For example, My Integration Rule. This value may be null.- Returns:
- rule label
-
isActive
boolean isActive()Retrieves the activation status of this rule. Integration rules are active (true
) by default.- Returns:
- status of the rule
-
getConnection
String getConnection()Retrieves the API name (api_name__sys
) of the Connection record referenced by this rule.- Returns:
- API name of the connection record
-
getIntegrationPoint
String getIntegrationPoint()Retrieves the API name (integration_point_api_name__sys
) of the Integration Point record referenced by this rule. This value may be null.- Returns:
- API name of the integration point record
-
getPrimaryQueryObject
String getPrimaryQueryObject()Retrieves the name of the primary query object of this integration rule. For example,product__v
.- Returns:
- name of primary query object, or null if no primary query object is set on this integration rule
-
getFieldRules
Collection<FieldRule> getFieldRules()Retrieves the list of theFieldrules
sub-component under thisIntegrationrule
component. May return an empty Collection if no matches are found.- Returns:
- a Collection of
FieldRule
objects
-
getQueryObjectRules
Collection<QueryObjectRule> getQueryObjectRules()Retrieves all of theQueryobjectrules
for theIntegrationrule
- Returns:
- Collection of
Queryobjectrules
-
getQueryObjectRules
Retrieves anyQueryobjectrules
which have the specified value for their object field.- Parameters:
sourceObject
- object value on theQueryobjectrule
. Cannot be null.- Returns:
- Collection of
Queryobjectrules
-
getQueryFields
Retrieves a Collection of query fields referenced inFieldrules
for the specified query object. May return an empty Collection if no matches are found.- Parameters:
queryObjectName
- name of query object- Returns:
- a Collection of query fields
-