Package org.apache.jackrabbit.vault.util
Class StandaloneManagerProvider
- java.lang.Object
-
- org.apache.jackrabbit.vault.util.StandaloneManagerProvider
-
- All Implemented Interfaces:
ManagerProvider
,NamespaceStorage
@ProviderType public final class StandaloneManagerProvider extends Object implements ManagerProvider, NamespaceStorage
AManagerProvider
which works without an underlying JCR repository. Useful for dealing with namespaces and node types outside the repository context.
-
-
Constructor Summary
Constructors Constructor Description StandaloneManagerProvider()
StandaloneManagerProvider(boolean registerDefaultNodeTypes)
-
Method Summary
-
-
-
Constructor Detail
-
StandaloneManagerProvider
public StandaloneManagerProvider() throws IOException, RepositoryException, ParseException
-
StandaloneManagerProvider
public StandaloneManagerProvider(boolean registerDefaultNodeTypes) throws IOException, RepositoryException, ParseException
-
-
Method Detail
-
registerNodeTypes
public void registerNodeTypes(Reader reader) throws InvalidNodeTypeDefinitionException, NodeTypeExistsException, UnsupportedRepositoryOperationException, ParseException, RepositoryException, IOException
-
getNamePathResolver
@NotNull public @NotNull NamePathResolver getNamePathResolver()
- Specified by:
getNamePathResolver
in interfaceManagerProvider
-
getNameResolver
@NotNull public @NotNull NameResolver getNameResolver()
- Specified by:
getNameResolver
in interfaceManagerProvider
-
getPathResolver
@NotNull public @NotNull PathResolver getPathResolver()
- Specified by:
getPathResolver
in interfaceManagerProvider
-
getNamespaceResolver
@NotNull public @NotNull NamespaceResolver getNamespaceResolver()
- Specified by:
getNamespaceResolver
in interfaceManagerProvider
-
getNodeTypeManager
@NotNull public @NotNull NodeTypeManager getNodeTypeManager()
-
getHierarchyManager
public HierarchyManager getHierarchyManager()
- Specified by:
getHierarchyManager
in interfaceManagerProvider
-
getAccessManager
public AccessManager getAccessManager()
- Specified by:
getAccessManager
in interfaceManagerProvider
-
getLockStateManager
public LockStateManager getLockStateManager()
- Specified by:
getLockStateManager
in interfaceManagerProvider
-
getVersionStateManager
public VersionManager getVersionStateManager()
- Specified by:
getVersionStateManager
in interfaceManagerProvider
-
getItemDefinitionProvider
@NotNull public @NotNull ItemDefinitionProvider getItemDefinitionProvider()
- Specified by:
getItemDefinitionProvider
in interfaceManagerProvider
-
getNodeTypeDefinitionProvider
@NotNull public @NotNull NodeTypeDefinitionProvider getNodeTypeDefinitionProvider()
- Specified by:
getNodeTypeDefinitionProvider
in interfaceManagerProvider
-
getEffectiveNodeTypeProvider
@NotNull public @NotNull EffectiveNodeTypeProvider getEffectiveNodeTypeProvider()
- Specified by:
getEffectiveNodeTypeProvider
in interfaceManagerProvider
-
getJcrValueFactory
@NotNull public @NotNull ValueFactory getJcrValueFactory() throws RepositoryException
- Specified by:
getJcrValueFactory
in interfaceManagerProvider
- Throws:
RepositoryException
-
getQValueFactory
@NotNull public @NotNull QValueFactory getQValueFactory() throws RepositoryException
- Specified by:
getQValueFactory
in interfaceManagerProvider
- Throws:
RepositoryException
-
getAccessControlProvider
public AccessControlProvider getAccessControlProvider() throws RepositoryException
- Specified by:
getAccessControlProvider
in interfaceManagerProvider
- Throws:
RepositoryException
-
getRegisteredNamespaces
public Map<String,String> getRegisteredNamespaces() throws RepositoryException
- Specified by:
getRegisteredNamespaces
in interfaceNamespaceStorage
- Throws:
RepositoryException
-
getPrefix
public String getPrefix(String uri) throws RepositoryException
- Specified by:
getPrefix
in interfaceNamespaceStorage
- Throws:
RepositoryException
-
getURI
public String getURI(String prefix) throws RepositoryException
- Specified by:
getURI
in interfaceNamespaceStorage
- Throws:
RepositoryException
-
registerNamespace
public void registerNamespace(String prefix, String uri) throws RepositoryException
- Specified by:
registerNamespace
in interfaceNamespaceStorage
- Throws:
RepositoryException
-
unregisterNamespace
public void unregisterNamespace(String uri) throws RepositoryException
- Specified by:
unregisterNamespace
in interfaceNamespaceStorage
- Throws:
RepositoryException
-
-