org.modeshape.graph.connector.base
Interface BaseRepositorySource

All Superinterfaces:
Referenceable, RepositorySource, Serializable
All Known Implementing Classes:
AbstractRepositorySource, FileSystemSource, InfinispanSource, InMemoryRepositorySource, JBossCacheSource, JdbcMetadataSource, SvnRepositorySource

public interface BaseRepositorySource
extends RepositorySource

An extension of the BaseRepositorySource class that provides a cache policy and a repository context.


Method Summary
 boolean areUpdatesAllowed()
          Get whether this source allows updates.
 CachePolicy getDefaultCachePolicy()
          Returns the cache policy for the repository source
 String getDefaultWorkspaceName()
          Get the name of the workspace that should be used by default.
 RepositoryContext getRepositoryContext()
          Returns the repository context for the repository source
 UUID getRootNodeUuidObject()
          Get the UUID for the root node.
 void setUpdatesAllowed(boolean updatesAllowed)
          Set whether this source allows updates to data within workspaces
 
Methods inherited from interface org.modeshape.graph.connector.RepositorySource
close, getCapabilities, getConnection, getName, getRetryLimit, initialize, setRetryLimit
 
Methods inherited from interface javax.naming.Referenceable
getReference
 

Method Detail

areUpdatesAllowed

boolean areUpdatesAllowed()
Get whether this source allows updates.

Returns:
true if this source allows updates by clients, or false if no updates are allowed
See Also:
setUpdatesAllowed(boolean)

setUpdatesAllowed

void setUpdatesAllowed(boolean updatesAllowed)
Set whether this source allows updates to data within workspaces

Parameters:
updatesAllowed - true if this source allows updates to data within workspaces clients, or false if updates are not allowed.
See Also:
areUpdatesAllowed()

getDefaultCachePolicy

CachePolicy getDefaultCachePolicy()
Returns the cache policy for the repository source

Returns:
the cache policy for the repository source

getRepositoryContext

RepositoryContext getRepositoryContext()
Returns the repository context for the repository source

Returns:
the repository context for the repository source

getRootNodeUuidObject

UUID getRootNodeUuidObject()
Get the UUID for the root node.

Returns:
the root node's UUID; may not be null

getDefaultWorkspaceName

String getDefaultWorkspaceName()
Get the name of the workspace that should be used by default.

Returns:
the name of the default workspace; may be null if there is no such default


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