public class VfsConnector extends Connector
| Modifier and Type | Field and Description |
|---|---|
static String |
BASE_PATH_KEY |
static String |
DEFAULT_BASE_PATH |
| Constructor and Description |
|---|
VfsConnector() |
| Modifier and Type | Method and Description |
|---|---|
ConnectorNode |
createNode(String parentId,
String label,
ConnectorNodeType type,
String message) |
void |
deleteNode(ConnectorNode node,
String message) |
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(ConnectorConfiguration config) |
boolean |
isSupportsCommitMessage() |
boolean |
needsLogin() |
ContentInformation |
updateContent(ConnectorNode node,
InputStream newContent,
String message) |
dispose, getConfiguration, getId, init, login, setConfigurationpublic static final String BASE_PATH_KEY
public static final String DEFAULT_BASE_PATH
public List<ConnectorNode> getChildren(ConnectorNode node)
getChildren in class Connectorpublic InputStream getContent(ConnectorNode node)
ConnectorConnectorNode.getType().getContent in class Connectorpublic void init(ConnectorConfiguration config)
public ConnectorNode getRoot()
public ContentInformation updateContent(ConnectorNode node, InputStream newContent, String message) throws Exception
updateContent in class ConnectorExceptionpublic 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 Connectorpublic 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 Connectorpublic boolean needsLogin()
needsLogin in class Connectorpublic boolean isSupportsCommitMessage()
isSupportsCommitMessage in class ConnectorCopyright © 2015. All rights reserved.