ModeShape Distribution 3.3.0.Final

org.modeshape.jcr.federation.spi
Class WritableConnector

java.lang.Object
  extended by org.modeshape.jcr.federation.spi.Connector
      extended by org.modeshape.jcr.federation.spi.WritableConnector
Direct Known Subclasses:
FileSystemConnector

public abstract class WritableConnector
extends Connector

A specialized abstract Connector class that is support both reads and writes. In addition, this class has a readonly flag allowing clients to configure a writable connector (external source) as read-only. In this case, all of the write operations will throw an exception.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.modeshape.jcr.federation.spi.Connector
Connector.ExtraProperties
 
Constructor Summary
WritableConnector()
           
 
Method Summary
 boolean isReadonly()
          Indicates if the connector instance has been configured in read-only mode.
 
Methods inherited from class org.modeshape.jcr.federation.spi.Connector
checkFieldNotNull, extraPropertiesFor, extraPropertiesStore, factories, getBinaryValue, getCacheTtlSeconds, getChildReference, getContext, getDocumentById, getDocumentId, getDocumentPathsById, getLogger, getMimeTypeDetector, getRepositoryName, getSourceName, getTransactionManager, hasDocument, initialize, isQueryable, nameFrom, nameFrom, nameFrom, newChildReference, newConnectorChangedSet, newDocument, newDocumentId, newPageDocument, pathFactory, pathFrom, pathFrom, propertyFactory, readDocument, removeDocument, setExtraPropertiesStore, shutdown, storeDocument, translator, updateDocument, writeDocument
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WritableConnector

public WritableConnector()
Method Detail

isReadonly

public boolean isReadonly()
Description copied from class: Connector
Indicates if the connector instance has been configured in read-only mode.

Specified by:
isReadonly in class Connector
Returns:
true if the connector has been configured in read-only mode, false otherwise.

ModeShape Distribution 3.3.0.Final

Copyright © 2008-2013 JBoss, a division of Red Hat. All Rights Reserved.