|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.camunda.bpm.cycle.connector.Connector
org.camunda.bpm.cycle.connector.git.GitConnector
@Component public class GitConnector
This connector just delegates to a VfsConnector and pulls from remote
before and push to remote after any read or write action.
| Field Summary | |
|---|---|
protected String |
branch
|
static String |
CONFIG_KEY_BRANCH_NAME
|
static String |
CONFIG_KEY_REPOSITORY_PATH
|
static String |
DEFAULT_BRANCH_NAME
|
protected VfsConnector |
delegate
|
protected String |
password
|
protected String |
username
|
| Constructor Summary | |
|---|---|
GitConnector()
|
|
| Method Summary | |
|---|---|
ConnectorNode |
createNode(String parentId,
String label,
ConnectorNodeType type,
String message)
|
void |
deleteNode(ConnectorNode node,
String message)
|
void |
dispose()
|
protected void |
disposeRepository()
Last Push when Connector will be disposed happens here. |
List<ConnectorNode> |
getChildren(ConnectorNode node)
|
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. |
ConnectorNode |
getNode(String id)
Returns a ConnectorNode to the assigned id. |
ConnectorNode |
getRoot()
|
void |
init()
|
void |
init(ConnectorConfiguration config)
|
protected void |
initRepository()
|
protected boolean |
isConnectorDelegateInitialized()
Returns true if the delegate is not null. |
protected boolean |
isRepositoryInitialized()
Returns true if the repository is not null. |
boolean |
isSupportsCommitMessage()
|
void |
login(String userName,
String password)
|
boolean |
needsLogin()
|
protected void |
pullFromRemote()
|
protected void |
pushToRemote(ConnectorNode node,
String message)
|
void |
setConfiguration(ConnectorConfiguration configuration)
|
ContentInformation |
updateContent(ConnectorNode node,
InputStream newContent,
String message)
|
| Methods inherited from class org.camunda.bpm.cycle.connector.Connector |
|---|
getConfiguration, getId |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String CONFIG_KEY_REPOSITORY_PATH
public static final String CONFIG_KEY_BRANCH_NAME
public static final String DEFAULT_BRANCH_NAME
protected VfsConnector delegate
protected String username
protected String password
protected String branch
| Constructor Detail |
|---|
public GitConnector()
| Method Detail |
|---|
public void init(ConnectorConfiguration config)
init in class Connectorpublic List<ConnectorNode> getChildren(ConnectorNode node)
getChildren in class Connectorpublic InputStream getContent(ConnectorNode node)
ConnectorConnectorNode.getType().
getContent in class Connectorprotected void initRepository()
protected boolean isRepositoryInitialized()
protected boolean isConnectorDelegateInitialized()
delegatepublic ConnectorNode getRoot()
getRoot in class Connector
public ContentInformation updateContent(ConnectorNode node,
InputStream newContent,
String message)
throws Exception
updateContent in class ConnectorExceptionprotected void pullFromRemote()
protected void pushToRemote(ConnectorNode node,
String message)
public ConnectorNode getNode(String id)
ConnectorConnectorNode to the assigned id. If
a ConnectorNode could not be found, the value null
will be returned.
getNode in class Connectorid - Represents the id of a ConnectorNode to search.
ConnectorNode to the assigned id or null if no
ConnectorNode found.
public ConnectorNode createNode(String parentId,
String label,
ConnectorNodeType type,
String message)
createNode in class Connector
public void deleteNode(ConnectorNode node,
String message)
deleteNode in class Connectorpublic ContentInformation getContentInformation(ConnectorNode node)
ConnectorContentInformation for the given connector node.
May never return null or throw an exception.
getContentInformation in class Connector
public void login(String userName,
String password)
login in class Connectorpublic boolean needsLogin()
needsLogin in class Connectorpublic boolean isSupportsCommitMessage()
isSupportsCommitMessage in class Connectorpublic void setConfiguration(ConnectorConfiguration configuration)
setConfiguration in class Connectorpublic void init()
init in class Connectorpublic void dispose()
dispose in class Connectorprotected void disposeRepository()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||