Interface ConnectorService

All Known Implementing Classes:
ConnectorServiceImpl

public interface ConnectorService
  • Method Details

    • addPlugin

      void addPlugin(ConnectorPlugin connectorPlugin)
      Add a new ConnectorPlugin for a given connector name
      Parameters:
      connectorPlugin - ConnectorPlugin
    • removePlugin

      void removePlugin(String name)
      Removes a ConnectorPlugin identified by its connectorName
      Parameters:
      name - connector name
    • getConnectorPlugins

      Collection<ConnectorPlugin> getConnectorPlugins()
      Returns:
      Collection of configured ConnectorPlugin
    • getConnectors

      Collection<RemoteConnector> getConnectors(String username)
      Parameters:
      username - the user name
      Returns:
      Collection of user remote connectors
    • connect

      String connect(String connectorName, String connectorUserId, String accessToken, org.exoplatform.services.security.Identity identity)
      Connects a user to their connector account
      Parameters:
      connectorName - connector name
      connectorUserId - User identifier in connector
      accessToken - Access token
      identity - the user identity
      Returns:
      the connector identifier String
    • disconnect

      void disconnect(String connectorName, String username)
      Disconnect a user from their connector account
      Parameters:
      connectorName - connector name
      username - the user name
    • getConnectorRemoteId

      String getConnectorRemoteId(String connectorName, String username)
      Parameters:
      connectorName - connector name
      username - associated user name
      Returns:
      the connector remote id of a user
    • getAssociatedUsername

      String getAssociatedUsername(String connectorName, String connectorRemoteId)
      Parameters:
      connectorName - connector name
      connectorRemoteId - connector remote Id
      Returns:
      the associated user name to connector remote id