|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.modeshape.repository.ModeShapeConfiguration.BaseReturnable<ReturnType>
org.modeshape.repository.ModeShapeConfiguration.GraphReturnable<ReturnType,JcrConfiguration.RepositoryDefinition<ReturnType>>
org.modeshape.jcr.JcrConfiguration.RepositoryBuilder<ReturnType>
protected class JcrConfiguration.RepositoryBuilder<ReturnType>
Field Summary |
---|
Fields inherited from class org.modeshape.repository.ModeShapeConfiguration.GraphReturnable |
---|
batch, context, path |
Fields inherited from class org.modeshape.repository.ModeShapeConfiguration.BaseReturnable |
---|
returnObject |
Constructor Summary | |
---|---|
protected |
JcrConfiguration.RepositoryBuilder(ReturnType returnObject,
Graph.Batch batch,
Path path,
Name... names)
|
Method Summary | |
---|---|
JcrConfiguration.RepositoryDefinition<ReturnType> |
addNodeTypes(File file)
Specify that the CND file is to be loaded into the repository. |
JcrConfiguration.RepositoryDefinition<ReturnType> |
addNodeTypes(InputStream cndContent)
Specify that the CND file is to be loaded into the repository. |
JcrConfiguration.RepositoryDefinition<ReturnType> |
addNodeTypes(String pathToCndFile)
Specify that the CND file located at the supplied path should be loaded into the repository. |
JcrConfiguration.RepositoryDefinition<ReturnType> |
addNodeTypes(URL url)
Specify that the CND file is to be loaded into the repository. |
JcrConfiguration.AuthenticatorDefinition<? extends JcrConfiguration.RepositoryDefinition<ReturnType>> |
authenticator(String name)
Obtain or create a definition for the authentication provider with the supplied name or
identifier. |
protected CndImporter |
createCndImporter()
|
String |
getOption(JcrRepository.Option option)
Get the value for the repository option. |
String |
getSource()
Get the name of the repository source that is to be used by this JCR repository. |
JcrConfiguration.RepositoryDefinition<ReturnType> |
registerNamespace(String prefix,
String uri)
Specify the namespace binding that should be made available in this repository. |
protected void |
registerNewNamespaces(Set<NamespaceRegistry.Namespace> namespacesBefore)
|
JcrConfiguration.RepositoryDefinition<ReturnType> |
setInitialContent(File file,
String firstWorkspace,
String... otherWorkspaces)
Specify the location of the file containing the initial content for the repository. |
JcrConfiguration.RepositoryDefinition<ReturnType> |
setInitialContent(String path,
String firstWorkspace,
String... otherWorkspaces)
Specify the location of the file containing the initial content for the repository. |
JcrConfiguration.RepositoryDefinition<ReturnType> |
setOption(JcrRepository.Option option,
boolean value)
Specify the repository option that is to be set. |
JcrConfiguration.RepositoryDefinition<ReturnType> |
setOption(JcrRepository.Option option,
double value)
Specify the repository option that is to be set. |
JcrConfiguration.RepositoryDefinition<ReturnType> |
setOption(JcrRepository.Option option,
float value)
Specify the repository option that is to be set. |
JcrConfiguration.RepositoryDefinition<ReturnType> |
setOption(JcrRepository.Option option,
int value)
Specify the repository option that is to be set. |
JcrConfiguration.RepositoryDefinition<ReturnType> |
setOption(JcrRepository.Option option,
long value)
Specify the repository option that is to be set. |
JcrConfiguration.RepositoryDefinition<ReturnType> |
setOption(JcrRepository.Option option,
String value)
Specify the repository option that is to be set. |
JcrConfiguration.RepositoryDefinition<ReturnType> |
setSource(String sourceName)
Specify the name of the repository source that is to be used by this JCR repository. |
protected JcrConfiguration.RepositoryDefinition<ReturnType> |
thisType()
|
Methods inherited from class org.modeshape.repository.ModeShapeConfiguration.GraphReturnable |
---|
createIfMissing, createIfMissing, createIfMissing, getDescription, getName, getProperty, getProperty, remove, setDescription, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, subpath |
Methods inherited from class org.modeshape.repository.ModeShapeConfiguration.BaseReturnable |
---|
and |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.modeshape.jcr.JcrConfiguration.RepositoryDefinition |
---|
getName |
Methods inherited from interface org.modeshape.repository.ModeShapeConfiguration.Returnable |
---|
and |
Methods inherited from interface org.modeshape.repository.ModeShapeConfiguration.Removable |
---|
remove |
Methods inherited from interface org.modeshape.repository.ModeShapeConfiguration.SetDescription |
---|
getDescription, setDescription |
Constructor Detail |
---|
protected JcrConfiguration.RepositoryBuilder(ReturnType returnObject, Graph.Batch batch, Path path, Name... names)
Method Detail |
---|
protected JcrConfiguration.RepositoryDefinition<ReturnType> thisType()
thisType
in class ModeShapeConfiguration.GraphReturnable<ReturnType,JcrConfiguration.RepositoryDefinition<ReturnType>>
public JcrConfiguration.RepositoryDefinition<ReturnType> setSource(String sourceName)
JcrConfiguration.RepositoryDefinition
setSource
in interface JcrConfiguration.RepositoryDefinition<ReturnType>
sourceName
- the name of the repository source that should be exposed by this JCR repository
public String getSource()
JcrConfiguration.RepositoryDefinition
getSource
in interface JcrConfiguration.RepositoryDefinition<ReturnType>
public JcrConfiguration.RepositoryDefinition<ReturnType> setOption(JcrRepository.Option option, String value)
JcrConfiguration.RepositoryDefinition
setOption
in interface JcrConfiguration.RepositoryDefinition<ReturnType>
option
- the option to be setvalue
- the new value for the option
public JcrConfiguration.RepositoryDefinition<ReturnType> setOption(JcrRepository.Option option, boolean value)
JcrConfiguration.RepositoryDefinition
setOption
in interface JcrConfiguration.RepositoryDefinition<ReturnType>
option
- the option to be setvalue
- the new value for the option
public JcrConfiguration.RepositoryDefinition<ReturnType> setOption(JcrRepository.Option option, int value)
JcrConfiguration.RepositoryDefinition
setOption
in interface JcrConfiguration.RepositoryDefinition<ReturnType>
option
- the option to be setvalue
- the new value for the option
public JcrConfiguration.RepositoryDefinition<ReturnType> setOption(JcrRepository.Option option, long value)
JcrConfiguration.RepositoryDefinition
setOption
in interface JcrConfiguration.RepositoryDefinition<ReturnType>
option
- the option to be setvalue
- the new value for the option
public JcrConfiguration.RepositoryDefinition<ReturnType> setOption(JcrRepository.Option option, float value)
JcrConfiguration.RepositoryDefinition
setOption
in interface JcrConfiguration.RepositoryDefinition<ReturnType>
option
- the option to be setvalue
- the new value for the option
public JcrConfiguration.RepositoryDefinition<ReturnType> setOption(JcrRepository.Option option, double value)
JcrConfiguration.RepositoryDefinition
setOption
in interface JcrConfiguration.RepositoryDefinition<ReturnType>
option
- the option to be setvalue
- the new value for the option
public String getOption(JcrRepository.Option option)
JcrConfiguration.RepositoryDefinition
getOption
in interface JcrConfiguration.RepositoryDefinition<ReturnType>
option
- the option
public JcrConfiguration.RepositoryDefinition<ReturnType> registerNamespace(String prefix, String uri)
JcrConfiguration.RepositoryDefinition
registerNamespace
in interface JcrConfiguration.RepositoryDefinition<ReturnType>
prefix
- the namespace prefix; may not be null or empty, and must be a valid prefixuri
- the uri for the namespace; may not be null or empty
public JcrConfiguration.RepositoryDefinition<ReturnType> addNodeTypes(String pathToCndFile)
JcrConfiguration.RepositoryDefinition
This method may be called multiple times, once per CND file.
addNodeTypes
in interface JcrConfiguration.RepositoryDefinition<ReturnType>
pathToCndFile
- the path to the CND file
public JcrConfiguration.RepositoryDefinition<ReturnType> setInitialContent(String path, String firstWorkspace, String... otherWorkspaces)
setInitialContent
in interface JcrConfiguration.RepositoryDefinition<ReturnType>
path
- the path to the file containing the initial content; may not be null or emptyfirstWorkspace
- the first workspace in which this content should be loadedotherWorkspaces
- additional workspaces in which this content should be loaded
JcrConfiguration.RepositoryDefinition.setInitialContent(java.lang.String, java.lang.String,
java.lang.String[])
public JcrConfiguration.RepositoryDefinition<ReturnType> setInitialContent(File file, String firstWorkspace, String... otherWorkspaces)
setInitialContent
in interface JcrConfiguration.RepositoryDefinition<ReturnType>
file
- the file containing the initial content; may not be null, and must exist and be readablefirstWorkspace
- the first workspace in which this content should be loadedotherWorkspaces
- additional workspaces in which this content should be loaded
JcrConfiguration.RepositoryDefinition.setInitialContent(java.io.File, java.lang.String,
java.lang.String[])
public JcrConfiguration.RepositoryDefinition<ReturnType> addNodeTypes(File file)
JcrConfiguration.RepositoryDefinition
addNodeTypes
in interface JcrConfiguration.RepositoryDefinition<ReturnType>
file
- the CND file
public JcrConfiguration.RepositoryDefinition<ReturnType> addNodeTypes(URL url)
JcrConfiguration.RepositoryDefinition
This method may be called multiple times, once per CND file.
addNodeTypes
in interface JcrConfiguration.RepositoryDefinition<ReturnType>
url
- the URL of the CND file
public JcrConfiguration.RepositoryDefinition<ReturnType> addNodeTypes(InputStream cndContent)
JcrConfiguration.RepositoryDefinition
This method may be called multiple times, once per CND file.
addNodeTypes
in interface JcrConfiguration.RepositoryDefinition<ReturnType>
cndContent
- the stream containing the CND content
protected void registerNewNamespaces(Set<NamespaceRegistry.Namespace> namespacesBefore)
protected CndImporter createCndImporter()
public JcrConfiguration.AuthenticatorDefinition<? extends JcrConfiguration.RepositoryDefinition<ReturnType>> authenticator(String name)
authentication provider
with the supplied name or
identifier. A new definition will be created if there currently is no authenticator defined with the supplied name.
authenticator
in interface JcrConfiguration.RepositoryDefinition<ReturnType>
name
- the name or identifier of the authenticator
JcrConfiguration.RepositoryDefinition.authenticator(java.lang.String)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |