public interface Session extends Session
Session interface that returns the ModeShape-specific extension
interfaces from getWorkspace(), getRepository(), and getValueFactory().ACTION_ADD_NODE, ACTION_READ, ACTION_REMOVE, ACTION_SET_PROPERTY| Modifier and Type | Method and Description |
|---|---|
String |
decode(String localName)
Evaluate a local name and replace any characters that were previously
encoded. |
String |
encode(String localName)
Evaluate a local name and replace any characters that are not allowed within the local names of nodes and properties.
|
Repository |
getRepository() |
ValueFactory |
getValueFactory() |
Workspace |
getWorkspace() |
boolean |
sequence(String sequencerName,
Property inputProperty,
Node outputNode)
Sequence the specified property using the named sequencer, and place the generated output at the specified location using
this session.
|
addLockToken, checkPermission, exportDocumentView, exportDocumentView, exportSystemView, exportSystemView, getAccessControlManager, getAttribute, getAttributeNames, getImportContentHandler, getItem, getLockTokens, getNamespacePrefix, getNamespacePrefixes, getNamespaceURI, getNode, getNodeByIdentifier, getNodeByUUID, getProperty, getRetentionManager, getRootNode, getUserID, hasCapability, hasPendingChanges, hasPermission, impersonate, importXML, isLive, itemExists, logout, move, nodeExists, propertyExists, refresh, removeItem, removeLockToken, save, setNamespacePrefixWorkspace getWorkspace()
getWorkspace in interface SessionRepository getRepository()
getRepository in interface SessionValueFactory getValueFactory() throws RepositoryException
getValueFactory in interface SessionRepositoryExceptionboolean sequence(String sequencerName, Property inputProperty, Node outputNode) throws RepositoryException
It is suggested that this method be used on inputs that the sequencer is not configured to process automatically, otherwise ModeShape will also sequence the same property. If your application is to only manually sequence, simply configure each sequencer without a path expression or with a path expression that will never apply to the manually-sequenced nodes.
sequencerName - the name of the configured sequencer that should be executedinputProperty - the property that was changed and that should be used as the input; never nulloutputNode - the node that represents the output for the derived information; never null, and will either be
new if the output is being placed outside of the selected node, or will not be new when the
output is to be placed on the selected input nodesequencerName is null or does not match a configured sequencerRepositoryException - if there was a problem with the sequencerString encode(String localName)
localName - the local name to be encoded; can be null or emptynull if the input was nullSession.move(String, String),
Node.addNode(String),
Node.addNode(String, String)String decode(String localName)
encoded.localName - the local name to be decoded; can be null or emptynull if the input was nullencode(String)Copyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.