org.modeshape.jcr.federation.spi
Class WritableConnector
java.lang.Object
org.modeshape.jcr.federation.spi.Connector
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.
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 |
WritableConnector
public WritableConnector()
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.
Copyright © 2008-2013 JBoss, a division of Red Hat. All Rights Reserved.