public abstract class GlobalCloudConnectorTypeBuilder extends GlobalTypeBuilder
Modifier and Type | Field and Description |
---|---|
static String |
REQUIRED_LIBS_DIR |
static String |
REQUIRED_LIBS_SUFFIX |
static String |
STUDIO_CACHE_CONFIGURATION_PERSISTANT_VALUE |
static String |
STUDIO_FULL_QUALIFIED_PACKAGE_VALUE_PERSISTANT |
static String |
STUDIO_HTTP_TRANSACTION_PERSISTANT_VALUE |
static String |
STUDIO_POOLING_PROFILE_PERSISTANT_VALUE |
ADVANCED_CONNECTION_GROUP_NAME, CONNECTION_GROUP_NAME, context, GENERAL_GROUP_NAME, helper, method, module, moduleName, objectFactory
Constructor and Description |
---|
GlobalCloudConnectorTypeBuilder(Context context,
Module module,
boolean abstrac7,
String globalRefId) |
Modifier and Type | Method and Description |
---|---|
GlobalType |
build()
Overriding the build behaviour to specify each global-cloud-connector element.
|
protected abstract void |
buildConnectivityTestingAttr(GlobalType globalCloudConnector)
Determines weather the current global element supports connectivity testing on Studio, or not
|
protected void |
buildMetaDataAttr(GlobalType globalCloudConnector,
boolean dynamicMetadata)
Determines weather the current global element supports static or dynamic DataSense in Studio
|
protected void |
buildOAuthConfig(Map<String,Group> groupsByName,
Map<String,AttributeCategory> attributeCategoriesByName)
For the given element, this method will create the OAuth tab in the studio configuration properties.
|
protected void |
buildRequiredLibsAttr(GlobalType globalCloudConnector)
Populate the GlobalType with the required libraries described in the xml
with the same configElementName under path
|
protected abstract ConnectMethod |
connectMethod() |
protected void |
createCacheConfigAttributes(Map<String,Group> groupsByName,
Map<String,AttributeCategory> attributeCategoriesByName) |
protected void |
createHttpCallbackConfig(Map<String,Group> groupsByName,
Map<String,AttributeCategory> attributeCategoriesByName) |
protected void |
createMetaDataAttributes(Map<String,Group> groupsByName,
Map<String,AttributeCategory> attributeCategoriesByName) |
protected void |
createPoolingProfileAttributes(Map<String,Group> groupsByName,
Map<String,AttributeCategory> attributeCategoriesByName) |
protected void |
createReconnectionAttributes(Map<String,Group> groupsByName,
Map<String,AttributeCategory> attributeCategoriesByName) |
protected List<AttributeCategory> |
getAttributeCategories() |
protected AttributeType |
getAttributeType(Variable variable)
We override this at global element, as each type of connection strategy might have to specify if the current
element is required.
|
protected abstract List<Field> |
getConfigurableFieldsSorted() |
protected abstract List<AttributeType> |
getConnectionAttributes()
Returns the list of elements that should be within the CONNECTION_GROUP_NAME
|
protected List<AttributeType> |
getConnectionAttributes(List<Field> configurableFields) |
protected String |
getExtendsBasedOnType() |
protected String |
getIcon() |
protected String |
getImage() |
protected String |
getNameDescriptionBasedOnType() |
protected abstract boolean |
hasConnectionMethod() |
protected Boolean |
isAbstract() |
protected List<AttributeCategory> |
processConfigurableFields(Group defaultGroup) |
protected void |
processConnectionAttributes(Map<String,Group> groupsByName,
Map<String,AttributeCategory> attributeCategoriesByName) |
protected void |
setConnectivityTestingAttribute(GlobalType globalCloudConnector,
com.google.common.base.Optional<Method> methodOptional) |
protected void |
setMetadataAttributes(Variable<?> variable,
AttributeType attributeType) |
protected void |
setRequiredConnectionParameter(AttributeType attributeType,
Variable variable)
Useful to mark in Studio that the current parameter should be written in the global element
|
createNameAttributeType, getCaptionBasedOnType, getDescriptionBasedOnType, getLocalIdBasedOnType
buildVersionsString, createGroupWithModeSwitch, createGroupWithNoOperationModeSwitch, createGroupWithNoOperationModeSwitchForProcessors, createGroupWithNoOperationModeSwitchForSources, createJaxbElement, createOAuthConfig, createQueryType, createTextType, getConnectionAttributes, getModes, isConfigurableVariable, processMethodParameters, processVariableElements
public static final String REQUIRED_LIBS_DIR
public static final String REQUIRED_LIBS_SUFFIX
public static final String STUDIO_FULL_QUALIFIED_PACKAGE_VALUE_PERSISTANT
public static final String STUDIO_POOLING_PROFILE_PERSISTANT_VALUE
public static final String STUDIO_CACHE_CONFIGURATION_PERSISTANT_VALUE
public static final String STUDIO_HTTP_TRANSACTION_PERSISTANT_VALUE
public GlobalType build()
build
in class GlobalTypeBuilder
protected void buildRequiredLibsAttr(GlobalType globalCloudConnector)
globalCloudConnector
- to set required libraries toprotected abstract void buildConnectivityTestingAttr(GlobalType globalCloudConnector)
globalCloudConnector
- to set the connectivity testing toprotected void buildMetaDataAttr(GlobalType globalCloudConnector, boolean dynamicMetadata)
globalCloudConnector
- dynamicMetadata
- indicates if the current module supports dynamic metadata ( check Module.hasDynamicMetadata()
)protected void setConnectivityTestingAttribute(GlobalType globalCloudConnector, com.google.common.base.Optional<Method> methodOptional)
protected List<AttributeCategory> getAttributeCategories()
getAttributeCategories
in class GlobalTypeBuilder
protected void createMetaDataAttributes(Map<String,Group> groupsByName, Map<String,AttributeCategory> attributeCategoriesByName)
createMetaDataAttributes
in class BaseStudioXmlBuilder
protected void processConnectionAttributes(Map<String,Group> groupsByName, Map<String,AttributeCategory> attributeCategoriesByName)
processConnectionAttributes
in class BaseStudioXmlBuilder
protected abstract List<AttributeType> getConnectionAttributes()
protected void createPoolingProfileAttributes(Map<String,Group> groupsByName, Map<String,AttributeCategory> attributeCategoriesByName)
createPoolingProfileAttributes
in class BaseStudioXmlBuilder
protected void createCacheConfigAttributes(Map<String,Group> groupsByName, Map<String,AttributeCategory> attributeCategoriesByName)
createCacheConfigAttributes
in class BaseStudioXmlBuilder
protected void createReconnectionAttributes(Map<String,Group> groupsByName, Map<String,AttributeCategory> attributeCategoriesByName)
createReconnectionAttributes
in class BaseStudioXmlBuilder
protected void buildOAuthConfig(Map<String,Group> groupsByName, Map<String,AttributeCategory> attributeCategoriesByName)
OAuth2
groupsByName
- attributeCategoriesByName
- protected String getExtendsBasedOnType()
getExtendsBasedOnType
in class GlobalTypeBuilder
protected String getNameDescriptionBasedOnType()
getNameDescriptionBasedOnType
in class GlobalTypeBuilder
protected String getImage()
getImage
in class GlobalTypeBuilder
protected String getIcon()
getIcon
in class GlobalTypeBuilder
protected Boolean isAbstract()
isAbstract
in class GlobalTypeBuilder
protected void setMetadataAttributes(Variable<?> variable, AttributeType attributeType)
setMetadataAttributes
in class BaseStudioXmlBuilder
protected List<AttributeType> getConnectionAttributes(List<Field> configurableFields)
protected AttributeType getAttributeType(Variable variable)
getAttributeType
in class BaseStudioXmlBuilder
variable
- protected List<AttributeCategory> processConfigurableFields(Group defaultGroup)
defaultGroup
- protected void createHttpCallbackConfig(Map<String,Group> groupsByName, Map<String,AttributeCategory> attributeCategoriesByName)
createHttpCallbackConfig
in class BaseStudioXmlBuilder
protected void setRequiredConnectionParameter(AttributeType attributeType, Variable variable)
attributeType
- variable
- protected abstract boolean hasConnectionMethod()
protected abstract ConnectMethod connectMethod()
Copyright © 2010–2015 MuleSoft, Inc.. All rights reserved.