public class Connector
extends java.lang.Object
implements com.exalead.util.Checkable, java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static class |
Connector.AuthenticationMode |
static class |
Connector.Config |
static class |
Connector.ForcedMeta |
Modifier and Type | Field and Description |
---|---|
java.lang.String |
authenticationMode |
java.lang.String |
buildGroup
Deprecated.
|
java.lang.String |
classId |
protected Connector.Config |
config |
java.util.List<ConnectorScheduledScan> |
connectorScheduledScan |
java.lang.String |
connectorServer |
java.lang.String |
customClassId |
static java.lang.String |
DEFAULT_AUTHENTICATION_MODE |
static boolean |
DEFAULT_GENERATED |
static boolean |
DEFAULT_MANAGED |
java.lang.String |
defaultDataModelClass |
java.lang.String |
documentsType |
protected Connector.ForcedMeta |
forcedMeta |
boolean |
generated |
java.lang.String |
login |
boolean |
managed |
java.lang.String |
name |
java.lang.String |
password |
PostProcessingPipeline |
postProcessingPipeline |
java.lang.String |
pushAPIServer |
PushConfig |
pushConfig |
SourceCachingConfig |
sourceCachingConfig |
SourceFetchConfig |
sourceFetchConfig |
SourcePreviewConfig |
sourcePreviewConfig |
SourceThumbnailsConfig |
sourceThumbnailsConfig |
Constructor and Description |
---|
Connector() |
Connector(Connector o)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
void |
check(boolean deep,
java.lang.String errorContext)
Checks this Connector.
|
static Connector |
fromString(java.lang.String s)
String representation of this Connector.
|
java.lang.String |
getAuthenticationMode()
The connector configuration parameters.
Connector parameters such as the data sources or folders to actually index in the data source are provided as key-values. No configuration parameters should be provided for unmanaged connectors. The set of meta data to be automatically added to indexed documents. |
Connector.AuthenticationMode |
getAuthenticationModeAsEnum()
The connector configuration parameters.
Connector parameters such as the data sources or folders to actually index in the data source are provided as key-values. No configuration parameters should be provided for unmanaged connectors. The set of meta data to be automatically added to indexed documents. |
java.lang.String |
getBuildGroup()
Deprecated.
|
java.lang.String |
getClassId()
Connector class identifier.
This identifies the kind of data source this connectors connects to, as well as the actual implementation. The class identifier can be a reference to an exascript class, a Java class or a .NET Class. This attribute must be null for unmanaged connectors. The value provided should be one of the values returned by |
Connector.Config |
getConfig() |
java.util.List<ConnectorScheduledScan> |
getConnectorScheduledScan()
List of scheduled scans for the connector.
|
java.lang.String |
getConnectorServer()
Defines the connector server hosting this connector.
For managed connectors only. |
java.lang.String |
getCustomClassId()
Implementation class identifier.
Optional. Can be used to specify a custom implementation of the connector. |
java.lang.String |
getDefaultDataModelClass()
Specifies the class in which the documents should be indexed if the connector does not provide a dataModelClass indication for its documents.
The default value (null) means that the documents will go in the default class of the DataModel. |
java.lang.String |
getDocumentsType()
Type of documents produced by this source.
The type of documents must match one of the types declared in your CloudView license file. |
Connector.ForcedMeta |
getForcedMeta() |
java.lang.String |
getLogin()
User login if
authenticationMode parameter is set to basic . |
java.lang.String |
getName()
The name of the connector.
|
java.lang.String |
getPassword()
User password if
authenticationMode parameter is set to basic . |
PostProcessingPipeline |
getPostProcessingPipeline()
Pipeline post-processing documents sent by this connector.
|
java.lang.String |
getPushAPIServer()
Defines the Push API server that will receive the documents.
For managed connectors only. |
PushConfig |
getPushConfig()
Specifies how documents are sent to the indexing-server.
|
SourceCachingConfig |
getSourceCachingConfig() |
SourceFetchConfig |
getSourceFetchConfig() |
SourcePreviewConfig |
getSourcePreviewConfig() |
SourceThumbnailsConfig |
getSourceThumbnailsConfig() |
static boolean |
isA(java.lang.String str,
Connector.AuthenticationMode item) |
boolean |
isGenerated()
Has this connector been generated automatically by another component or it has been manually added by the user.
A generated connector must be configured by the component that has generated it and won't be editable in admin-ui |
boolean |
isManaged()
Indicates that the connector is managed by a framework.
A managed connector is launched and operated as a CloudView service, whereas an 'unmanaged connector' is handled by a third-party process. |
static boolean |
isOneOf(java.lang.String str,
Connector.AuthenticationMode... items) |
Connector |
makeCopy()
Creates and returns a deep copy of this Connector.
|
static Connector |
readFrom(java.io.InputStream is)
Read this Connector from an XML fragment.
|
void |
setAuthenticationMode(Connector.AuthenticationMode item)
The connector configuration parameters.
Connector parameters such as the data sources or folders to actually index in the data source are provided as key-values. No configuration parameters should be provided for unmanaged connectors. The set of meta data to be automatically added to indexed documents. |
void |
setAuthenticationMode(java.lang.String authenticationMode)
The connector configuration parameters.
Connector parameters such as the data sources or folders to actually index in the data source are provided as key-values. No configuration parameters should be provided for unmanaged connectors. The set of meta data to be automatically added to indexed documents. |
void |
setBuildGroup(java.lang.String buildGroup)
Deprecated.
|
void |
setClassId(java.lang.String classId)
Connector class identifier.
This identifies the kind of data source this connectors connects to, as well as the actual implementation. The class identifier can be a reference to an exascript class, a Java class or a .NET Class. This attribute must be null for unmanaged connectors. The value provided should be one of the values returned by |
void |
setConfig(Connector.Config __value) |
void |
setConnectorServer(java.lang.String connectorServer)
Defines the connector server hosting this connector.
For managed connectors only. |
void |
setCustomClassId(java.lang.String customClassId)
Implementation class identifier.
Optional. Can be used to specify a custom implementation of the connector. |
void |
setDefaultDataModelClass(java.lang.String defaultDataModelClass)
Specifies the class in which the documents should be indexed if the connector does not provide a dataModelClass indication for its documents.
The default value (null) means that the documents will go in the default class of the DataModel. |
void |
setDocumentsType(java.lang.String documentsType)
Type of documents produced by this source.
The type of documents must match one of the types declared in your CloudView license file. |
void |
setForcedMeta(Connector.ForcedMeta __value) |
void |
setGenerated(boolean generated)
Has this connector been generated automatically by another component or it has been manually added by the user.
A generated connector must be configured by the component that has generated it and won't be editable in admin-ui |
void |
setLogin(java.lang.String login)
User login if
authenticationMode parameter is set to basic . |
void |
setManaged(boolean managed)
Indicates that the connector is managed by a framework.
A managed connector is launched and operated as a CloudView service, whereas an 'unmanaged connector' is handled by a third-party process. |
void |
setName(java.lang.String name)
The name of the connector.
|
void |
setPassword(java.lang.String password)
User password if
authenticationMode parameter is set to basic . |
void |
setPostProcessingPipeline(PostProcessingPipeline postProcessingPipeline)
Pipeline post-processing documents sent by this connector.
|
void |
setPushAPIServer(java.lang.String pushAPIServer)
Defines the Push API server that will receive the documents.
For managed connectors only. |
void |
setPushConfig(PushConfig pushConfig)
Specifies how documents are sent to the indexing-server.
|
void |
setSourceCachingConfig(SourceCachingConfig sourceCachingConfig) |
void |
setSourceFetchConfig(SourceFetchConfig sourceFetchConfig) |
void |
setSourcePreviewConfig(SourcePreviewConfig sourcePreviewConfig) |
void |
setSourceThumbnailsConfig(SourceThumbnailsConfig sourceThumbnailsConfig) |
java.lang.String |
toString()
String representation of this Connector.
|
Connector |
withAuthenticationMode(java.lang.String authenticationMode) |
Connector |
withBuildGroup(java.lang.String buildGroup)
Deprecated.
|
Connector |
withClassId(java.lang.String classId) |
Connector |
withConfig(java.util.Collection<KeyValue> __values) |
Connector |
withConfig(Connector.Config __value) |
Connector |
withConfig(KeyValue... __values) |
Connector |
withConnectorScheduledScan(java.util.Collection<ConnectorScheduledScan> __values) |
Connector |
withConnectorScheduledScan(ConnectorScheduledScan... __values)
List of scheduled scans for the connector.
|
Connector |
withConnectorServer(java.lang.String connectorServer) |
Connector |
withCustomClassId(java.lang.String customClassId) |
Connector |
withDefaultDataModelClass(java.lang.String defaultDataModelClass) |
Connector |
withDocumentsType(java.lang.String documentsType) |
Connector |
withForcedMeta(java.util.Collection<KeyValue> __values) |
Connector |
withForcedMeta(Connector.ForcedMeta __value) |
Connector |
withForcedMeta(KeyValue... __values) |
Connector |
withGenerated(boolean generated) |
Connector |
withGenerated(java.lang.Boolean generated) |
Connector |
withLogin(java.lang.String login) |
Connector |
withManaged(boolean managed) |
Connector |
withManaged(java.lang.Boolean managed) |
Connector |
withName(java.lang.String name) |
Connector |
withPassword(java.lang.String password) |
Connector |
withPostProcessingPipeline(PostProcessingPipeline postProcessingPipeline) |
Connector |
withPushAPIServer(java.lang.String pushAPIServer) |
Connector |
withPushConfig(PushConfig pushConfig) |
Connector |
withSourceCachingConfig(SourceCachingConfig sourceCachingConfig) |
Connector |
withSourceFetchConfig(SourceFetchConfig sourceFetchConfig) |
Connector |
withSourcePreviewConfig(SourcePreviewConfig sourcePreviewConfig) |
Connector |
withSourceThumbnailsConfig(SourceThumbnailsConfig sourceThumbnailsConfig) |
void |
writeTo(java.io.OutputStream os)
Write this Connector as an XML fragment
|
public PushConfig pushConfig
public java.util.List<ConnectorScheduledScan> connectorScheduledScan
public java.lang.String name
public java.lang.String classId
public java.lang.String customClassId
public boolean managed
public static final boolean DEFAULT_MANAGED
public java.lang.String connectorServer
@Deprecated public java.lang.String buildGroup
public java.lang.String pushAPIServer
public java.lang.String authenticationMode
public static final java.lang.String DEFAULT_AUTHENTICATION_MODE
public java.lang.String login
public java.lang.String password
protected Connector.Config config
protected Connector.ForcedMeta forcedMeta
public java.lang.String defaultDataModelClass
public SourceCachingConfig sourceCachingConfig
public SourceFetchConfig sourceFetchConfig
public SourcePreviewConfig sourcePreviewConfig
public SourceThumbnailsConfig sourceThumbnailsConfig
public java.lang.String documentsType
public PostProcessingPipeline postProcessingPipeline
public boolean generated
public static final boolean DEFAULT_GENERATED
public Connector()
public Connector(Connector o)
public static boolean isA(java.lang.String str, Connector.AuthenticationMode item)
public static boolean isOneOf(java.lang.String str, Connector.AuthenticationMode... items)
public void setAuthenticationMode(Connector.AuthenticationMode item)
public
and basic
.
If set to basic
, the indexing-server will require authentication
to push content with this connector name.public Connector.AuthenticationMode getAuthenticationModeAsEnum()
public
and basic
.
If set to basic
, the indexing-server will require authentication
to push content with this connector name.public void setPushConfig(PushConfig pushConfig)
public PushConfig getPushConfig()
public Connector withPushConfig(PushConfig pushConfig)
public java.util.List<ConnectorScheduledScan> getConnectorScheduledScan()
public Connector withConnectorScheduledScan(ConnectorScheduledScan... __values)
public Connector withConnectorScheduledScan(java.util.Collection<ConnectorScheduledScan> __values)
public void setName(java.lang.String name)
public java.lang.String getName()
public Connector withName(java.lang.String name)
public void setClassId(java.lang.String classId)
listConnectorTypes.
public java.lang.String getClassId()
listConnectorTypes.
public Connector withClassId(java.lang.String classId)
public void setCustomClassId(java.lang.String customClassId)
public java.lang.String getCustomClassId()
public Connector withCustomClassId(java.lang.String customClassId)
public void setManaged(boolean managed)
public boolean isManaged()
public Connector withManaged(boolean managed)
public Connector withManaged(java.lang.Boolean managed)
public void setConnectorServer(java.lang.String connectorServer)
public java.lang.String getConnectorServer()
public Connector withConnectorServer(java.lang.String connectorServer)
@Deprecated public void setBuildGroup(java.lang.String buildGroup)
@Deprecated public java.lang.String getBuildGroup()
@Deprecated public Connector withBuildGroup(java.lang.String buildGroup)
public void setPushAPIServer(java.lang.String pushAPIServer)
public java.lang.String getPushAPIServer()
public Connector withPushAPIServer(java.lang.String pushAPIServer)
public void setAuthenticationMode(java.lang.String authenticationMode)
public
and basic
.
If set to basic
, the indexing-server will require authentication
to push content with this connector name.public java.lang.String getAuthenticationMode()
public
and basic
.
If set to basic
, the indexing-server will require authentication
to push content with this connector name.public Connector withAuthenticationMode(java.lang.String authenticationMode)
public void setLogin(java.lang.String login)
authenticationMode
parameter is set to basic
.public java.lang.String getLogin()
authenticationMode
parameter is set to basic
.public Connector withLogin(java.lang.String login)
public void setPassword(java.lang.String password)
authenticationMode
parameter is set to basic
.public java.lang.String getPassword()
authenticationMode
parameter is set to basic
.public Connector withPassword(java.lang.String password)
public Connector.Config getConfig()
public void setConfig(Connector.Config __value)
public Connector withConfig(Connector.Config __value)
public Connector.ForcedMeta getForcedMeta()
public void setForcedMeta(Connector.ForcedMeta __value)
public Connector withForcedMeta(Connector.ForcedMeta __value)
public void setDefaultDataModelClass(java.lang.String defaultDataModelClass)
public java.lang.String getDefaultDataModelClass()
public Connector withDefaultDataModelClass(java.lang.String defaultDataModelClass)
public void setSourceCachingConfig(SourceCachingConfig sourceCachingConfig)
public SourceCachingConfig getSourceCachingConfig()
public Connector withSourceCachingConfig(SourceCachingConfig sourceCachingConfig)
public void setSourceFetchConfig(SourceFetchConfig sourceFetchConfig)
public SourceFetchConfig getSourceFetchConfig()
public Connector withSourceFetchConfig(SourceFetchConfig sourceFetchConfig)
public void setSourcePreviewConfig(SourcePreviewConfig sourcePreviewConfig)
public SourcePreviewConfig getSourcePreviewConfig()
public Connector withSourcePreviewConfig(SourcePreviewConfig sourcePreviewConfig)
public void setSourceThumbnailsConfig(SourceThumbnailsConfig sourceThumbnailsConfig)
public SourceThumbnailsConfig getSourceThumbnailsConfig()
public Connector withSourceThumbnailsConfig(SourceThumbnailsConfig sourceThumbnailsConfig)
public void setDocumentsType(java.lang.String documentsType)
public java.lang.String getDocumentsType()
public Connector withDocumentsType(java.lang.String documentsType)
public void setPostProcessingPipeline(PostProcessingPipeline postProcessingPipeline)
public PostProcessingPipeline getPostProcessingPipeline()
public Connector withPostProcessingPipeline(PostProcessingPipeline postProcessingPipeline)
public void setGenerated(boolean generated)
public boolean isGenerated()
public Connector withGenerated(boolean generated)
public Connector withGenerated(java.lang.Boolean generated)
public Connector makeCopy()
public static Connector readFrom(java.io.InputStream is) throws javax.xml.bind.JAXBException
javax.xml.bind.JAXBException
public void writeTo(java.io.OutputStream os) throws javax.xml.bind.JAXBException, java.io.IOException
javax.xml.bind.JAXBException
java.io.IOException
public static Connector fromString(java.lang.String s) throws javax.xml.bind.JAXBException, java.io.UnsupportedEncodingException
javax.xml.bind.JAXBException
java.io.UnsupportedEncodingException
public java.lang.String toString()
toString
in class java.lang.Object
public void check(boolean deep, java.lang.String errorContext) throws com.exalead.util.TypedException
check
in interface com.exalead.util.Checkable
com.exalead.util.TypedException
Copyright © 2021 Dassault Systèmes, All Rights Reserved.