org.camunda.bpm.cycle.connector.svn
Class SvnConnector

java.lang.Object
  extended by org.camunda.bpm.cycle.connector.Connector
      extended by org.camunda.bpm.cycle.connector.svn.SvnConnector

public class SvnConnector
extends Connector


Field Summary
static String CONFIG_KEY_REPOSITORY_PATH
           
static String CONFIG_KEY_TEMPORARY_FILE_STORE
           
static String DEFAULT_CONFIG_KEY_TEMPORARY_FILE_STORE
           
 
Constructor Summary
SvnConnector()
           
 
Method Summary
 ConnectorNode createNode(String parentId, String label, ConnectorNodeType type, String message)
           
 void deleteNode(ConnectorNode node, String message)
           
 void dispose()
           
protected  String extractCommitMessage(org.tigris.subversion.svnclientadapter.SVNUrl svnUrl, org.tigris.subversion.svnclientadapter.ISVNDirEntry entry)
           
 List<ConnectorNode> getChildren(ConnectorNode parent)
           
 InputStream getContent(ConnectorNode node)
          Get the contents of the given node as an input stream.
 ContentInformation getContentInformation(ConnectorNode node)
          Returns a ContentInformation for the given connector node.
protected  String getDefaultCommitMessage(String string)
           
 ConnectorNode getNode(String id)
          Returns a ConnectorNode to the assigned id.
 ConnectorNode getRoot()
           
 void init(ConnectorConfiguration config)
           
 boolean isSupportsCommitMessage()
           
 void login(String userName, String password)
           
 boolean needsLogin()
           
 ContentInformation updateContent(ConnectorNode node, InputStream newContent, String message)
           
 
Methods inherited from class org.camunda.bpm.cycle.connector.Connector
getConfiguration, getId, init, setConfiguration
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONFIG_KEY_REPOSITORY_PATH

public static final String CONFIG_KEY_REPOSITORY_PATH
See Also:
Constant Field Values

CONFIG_KEY_TEMPORARY_FILE_STORE

public static final String CONFIG_KEY_TEMPORARY_FILE_STORE
See Also:
Constant Field Values

DEFAULT_CONFIG_KEY_TEMPORARY_FILE_STORE

public static final String DEFAULT_CONFIG_KEY_TEMPORARY_FILE_STORE
See Also:
Constant Field Values
Constructor Detail

SvnConnector

public SvnConnector()
Method Detail

init

public void init(ConnectorConfiguration config)
Overrides:
init in class Connector

needsLogin

public boolean needsLogin()
Specified by:
needsLogin in class Connector

login

public void login(String userName,
                  String password)
Overrides:
login in class Connector

getChildren

public List<ConnectorNode> getChildren(ConnectorNode parent)
Specified by:
getChildren in class Connector

getRoot

public ConnectorNode getRoot()
Specified by:
getRoot in class Connector

getNode

public ConnectorNode getNode(String id)
Description copied from class: Connector
Returns a ConnectorNode to the assigned id. If a ConnectorNode could not be found, the value null will be returned.

Specified by:
getNode in class Connector
Parameters:
id - Represents the id of a ConnectorNode to search.
Returns:
A ConnectorNode to the assigned id or null if no ConnectorNode found.

extractCommitMessage

protected String extractCommitMessage(org.tigris.subversion.svnclientadapter.SVNUrl svnUrl,
                                      org.tigris.subversion.svnclientadapter.ISVNDirEntry entry)
                               throws org.tigris.subversion.svnclientadapter.SVNClientException
Throws:
org.tigris.subversion.svnclientadapter.SVNClientException

createNode

public ConnectorNode createNode(String parentId,
                                String label,
                                ConnectorNodeType type,
                                String message)
Specified by:
createNode in class Connector

deleteNode

public void deleteNode(ConnectorNode node,
                       String message)
Specified by:
deleteNode in class Connector

getDefaultCommitMessage

protected String getDefaultCommitMessage(String string)

updateContent

public ContentInformation updateContent(ConnectorNode node,
                                        InputStream newContent,
                                        String message)
Specified by:
updateContent in class Connector

getContent

public InputStream getContent(ConnectorNode node)
Description copied from class: Connector
Get the contents of the given node as an input stream. Implementations must handle the node correctly, especially concerning the nodes type accessible via ConnectorNode.getType().

Specified by:
getContent in class Connector
Returns:
the input stream of the file

getContentInformation

public ContentInformation getContentInformation(ConnectorNode node)
Description copied from class: Connector
Returns a ContentInformation for the given connector node. May never return null or throw an exception.

Specified by:
getContentInformation in class Connector
Returns:

dispose

public void dispose()
Overrides:
dispose in class Connector

isSupportsCommitMessage

public boolean isSupportsCommitMessage()
Specified by:
isSupportsCommitMessage in class Connector


Copyright © 2014 camunda services GmbH. All rights reserved.