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, setConfiguration
public static final String BASE_PATH_KEY
public static final String DEFAULT_BASE_PATH
public List<ConnectorNode> getChildren(ConnectorNode node)
getChildren
in class Connector
public InputStream getContent(ConnectorNode node)
Connector
ConnectorNode.getType()
.getContent
in class Connector
public void init(ConnectorConfiguration config)
public ConnectorNode getRoot()
public ContentInformation updateContent(ConnectorNode node, InputStream newContent, String message) throws Exception
updateContent
in class Connector
Exception
public ConnectorNode getNode(String id)
Connector
ConnectorNode
to the assigned id
. If
a ConnectorNode
could not be found, the value null
will be returned.getNode
in class Connector
id
- 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 Connector
public ContentInformation getContentInformation(ConnectorNode node)
Connector
ContentInformation
for the given connector node.
May never return null or throw an exception.getContentInformation
in class Connector
public boolean needsLogin()
needsLogin
in class Connector
public boolean isSupportsCommitMessage()
isSupportsCommitMessage
in class Connector
Copyright © 2015. All rights reserved.