com.tinkerpop.rexster
Class RexsterApplicationGraph

java.lang.Object
  extended by com.tinkerpop.rexster.RexsterApplicationGraph

public class RexsterApplicationGraph
extends Object

Holds a graph and its assigned extensions.


Constructor Summary
RexsterApplicationGraph(String graphName, com.tinkerpop.blueprints.Graph graph)
           
 
Method Summary
 ExtensionConfiguration findExtensionConfiguration(String namespace, String extensionName)
           
 Set<ExtensionAllowed> getExtensionAllowables()
           
protected  org.codehaus.jettison.json.JSONArray getExtensionHypermedia(ExtensionPoint extensionPoint, String baseUri)
           
 com.tinkerpop.blueprints.Graph getGraph()
           
 String getGraphName()
           
 com.tinkerpop.blueprints.Graph getUnwrappedGraph()
           
 boolean isExtensionAllowed(ExtensionSegmentSet extensionSegmentSet)
          Determines if a particular extension is allowed given configured allowables from rexster.xml.
 boolean isTransactionalGraph()
           
 void loadAllowableExtensions(List allowableNamespaces)
          Loads a list of namespaces extension patterns that are allowed for this graph.
 void loadExtensionsConfigurations(List<org.apache.commons.configuration.HierarchicalConfiguration> extensionConfigurations)
           
 com.tinkerpop.blueprints.TransactionalGraph tryGetTransactionalGraph()
           
 void trySetTransactionalModeAutomatic()
           
 void tryStartTransaction()
           
 void tryStopTransactionFailure()
           
 void tryStopTransactionSuccess()
           
static com.tinkerpop.blueprints.Graph unwrapGraph(com.tinkerpop.blueprints.Graph g)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RexsterApplicationGraph

public RexsterApplicationGraph(String graphName,
                               com.tinkerpop.blueprints.Graph graph)
Method Detail

getGraphName

public String getGraphName()

getGraph

public com.tinkerpop.blueprints.Graph getGraph()

getUnwrappedGraph

public com.tinkerpop.blueprints.Graph getUnwrappedGraph()

unwrapGraph

public static com.tinkerpop.blueprints.Graph unwrapGraph(com.tinkerpop.blueprints.Graph g)

tryGetTransactionalGraph

public com.tinkerpop.blueprints.TransactionalGraph tryGetTransactionalGraph()

isTransactionalGraph

public boolean isTransactionalGraph()

tryStartTransaction

public void tryStartTransaction()

tryStopTransactionSuccess

public void tryStopTransactionSuccess()

tryStopTransactionFailure

public void tryStopTransactionFailure()

trySetTransactionalModeAutomatic

public void trySetTransactionalModeAutomatic()

isExtensionAllowed

public boolean isExtensionAllowed(ExtensionSegmentSet extensionSegmentSet)
Determines if a particular extension is allowed given configured allowables from rexster.xml.

Ensure that loadAllowableExtensions is called prior to this method.


findExtensionConfiguration

public ExtensionConfiguration findExtensionConfiguration(String namespace,
                                                         String extensionName)

loadExtensionsConfigurations

public void loadExtensionsConfigurations(List<org.apache.commons.configuration.HierarchicalConfiguration> extensionConfigurations)

loadAllowableExtensions

public void loadAllowableExtensions(List allowableNamespaces)
Loads a list of namespaces extension patterns that are allowed for this graph.


getExtensionAllowables

public Set<ExtensionAllowed> getExtensionAllowables()

getExtensionHypermedia

protected org.codehaus.jettison.json.JSONArray getExtensionHypermedia(ExtensionPoint extensionPoint,
                                                                      String baseUri)


Copyright © 2009-2012. All Rights Reserved.