|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ReturnType - public static interface JcrConfiguration.RepositoryDefinition<ReturnType>

Interface used to define a JCR Repository that's accessible from the JcrEngine.
| Method Summary | |
|---|---|
JcrConfiguration.RepositoryDefinition<ReturnType> |
addNodeTypes(File cndFile)
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 urlOfCndFile)
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. |
String |
getName()
Get the name of this repository definition. |
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. |
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. |
| 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 |
| Method Detail |
|---|
JcrConfiguration.RepositoryDefinition<ReturnType> setSource(String sourceName)
sourceName - the name of the repository source that should be exposed by this JCR repository
IllegalArgumentException - if the source name parameter is nullString getSource()
String getName()
JcrConfiguration.RepositoryDefinition<ReturnType> setOption(JcrRepository.Option option,
String value)
option - the option to be setvalue - the new value for the option
IllegalArgumentException - if either parameter is null
JcrConfiguration.RepositoryDefinition<ReturnType> setOption(JcrRepository.Option option,
boolean value)
option - the option to be setvalue - the new value for the option
IllegalArgumentException - if either parameter is null
JcrConfiguration.RepositoryDefinition<ReturnType> setOption(JcrRepository.Option option,
int value)
option - the option to be setvalue - the new value for the option
IllegalArgumentException - if either parameter is null
JcrConfiguration.RepositoryDefinition<ReturnType> setOption(JcrRepository.Option option,
long value)
option - the option to be setvalue - the new value for the option
IllegalArgumentException - if either parameter is null
JcrConfiguration.RepositoryDefinition<ReturnType> setOption(JcrRepository.Option option,
float value)
option - the option to be setvalue - the new value for the option
IllegalArgumentException - if either parameter is null
JcrConfiguration.RepositoryDefinition<ReturnType> setOption(JcrRepository.Option option,
double value)
option - the option to be setvalue - the new value for the option
IllegalArgumentException - if either parameter is nullString getOption(JcrRepository.Option option)
option - the option
IllegalArgumentException - if the option parameter is nullJcrConfiguration.RepositoryDefinition<ReturnType> addNodeTypes(String pathToCndFile)
This method may be called multiple times, once per CND file.
pathToCndFile - the path to the CND file
IllegalArgumentException - if the string is null or empty
ModeShapeConfigurationException - if there is an error reading the CND fileJcrConfiguration.RepositoryDefinition<ReturnType> addNodeTypes(File cndFile)
cndFile - the CND file
IllegalArgumentException - if the file is null
ModeShapeConfigurationException - if there is an error reading the fileJcrConfiguration.RepositoryDefinition<ReturnType> addNodeTypes(URL urlOfCndFile)
This method may be called multiple times, once per CND file.
urlOfCndFile - the URL of the CND file
IllegalArgumentException - if the URL is null
ModeShapeConfigurationException - if there is an error reading the content at the URLJcrConfiguration.RepositoryDefinition<ReturnType> addNodeTypes(InputStream cndContent)
This method may be called multiple times, once per CND file.
cndContent - the stream containing the CND content
IllegalArgumentException - if the URL is null
ModeShapeConfigurationException - if there is an error reading the stream at the URL
JcrConfiguration.RepositoryDefinition<ReturnType> registerNamespace(String prefix,
String uri)
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
JcrConfiguration.RepositoryDefinition<ReturnType> setInitialContent(String path,
String firstWorkspace,
String... otherWorkspaces)
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<ReturnType> setInitialContent(File file,
String firstWorkspace,
String... otherWorkspaces)
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.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.
name - the name or identifier of the authenticator
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||