locations registry locations The
implementation hides storage details from end user
- Version:
- $Id: RegistryService.java 35186 2009-08-07 14:23:43Z pnedonosko $
- Author:
- Gennady Azarenkov
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EXO_REGISTRY_NT
protected static final java.lang.String EXO_REGISTRY_NT
- See Also:
- Constant Field Values
EXO_REGISTRYENTRY_NT
protected static final java.lang.String EXO_REGISTRYENTRY_NT
- See Also:
- Constant Field Values
EXO_REGISTRYGROUP_NT
protected static final java.lang.String EXO_REGISTRYGROUP_NT
- See Also:
- Constant Field Values
NT_FILE
protected static final java.lang.String NT_FILE
- See Also:
- Constant Field Values
EXO_REGISTRY
protected static final java.lang.String EXO_REGISTRY
- See Also:
- Constant Field Values
EXO_REGISTRYENTRY
protected static final java.lang.String EXO_REGISTRYENTRY
- See Also:
- Constant Field Values
EXO_SERVICES
public static final java.lang.String EXO_SERVICES
- See Also:
- Constant Field Values
EXO_APPLICATIONS
public static final java.lang.String EXO_APPLICATIONS
- See Also:
- Constant Field Values
EXO_USERS
public static final java.lang.String EXO_USERS
- See Also:
- Constant Field Values
EXO_GROUPS
public static final java.lang.String EXO_GROUPS
- See Also:
- Constant Field Values
regWorkspaces
protected final java.util.Map<java.lang.String,java.lang.String> regWorkspaces
repositoryService
protected final RepositoryService repositoryService
started
protected boolean started
RegistryService
public RegistryService(org.exoplatform.container.xml.InitParams params,
RepositoryService repositoryService)
throws RepositoryConfigurationException
- Parameters:
params - accepts "locations" properties paramrepositoryService -
- Throws:
RepositoryConfigurationException
javax.jcr.RepositoryException
java.io.FileNotFoundException
getEntry
public RegistryEntry getEntry(SessionProvider sessionProvider,
java.lang.String entryPath)
throws javax.jcr.PathNotFoundException,
javax.jcr.RepositoryException
- Description copied from class:
Registry
- Returns existed RegistryEntry which wraps Node of "exo:registryEntry" type
- Specified by:
getEntry in class Registry
- Returns:
- existed RegistryEntry
- Throws:
javax.jcr.PathNotFoundException - if entry not found
javax.jcr.RepositoryException
createEntry
public void createEntry(SessionProvider sessionProvider,
java.lang.String groupPath,
RegistryEntry entry)
throws javax.jcr.RepositoryException
- Description copied from class:
Registry
- creates an entry in the group. In a case if the group does not exist it will be silently
created as well
- Specified by:
createEntry in class Registry
groupPath - related path (w/o leading slash) to group
- Throws:
javax.jcr.RepositoryException
removeEntry
public void removeEntry(SessionProvider sessionProvider,
java.lang.String entryPath)
throws javax.jcr.RepositoryException
- Description copied from class:
Registry
- removes entry located on entryPath (concatenation of group path / entry name)
- Specified by:
removeEntry in class Registry
entryPath - related path (w/o leading slash) to entry
- Throws:
javax.jcr.RepositoryException
recreateEntry
public void recreateEntry(SessionProvider sessionProvider,
java.lang.String groupPath,
RegistryEntry entry)
throws javax.jcr.RepositoryException
- Description copied from class:
Registry
- updates an entry in the group
- Specified by:
recreateEntry in class Registry
groupPath - related path (w/o leading slash) to group
- Throws:
javax.jcr.RepositoryException
getRegistry
public Registry.RegistryNode getRegistry(SessionProvider sessionProvider)
throws javax.jcr.RepositoryException
- Description copied from class:
Registry
- Returns Registry node object which wraps Node of "exo:registry" type (the whole registry tree)
- Specified by:
getRegistry in class Registry
- Returns:
- egistry node object
- Throws:
javax.jcr.RepositoryException
isStarted
public boolean isStarted()
start
public void start()
- Specified by:
start in interface org.picocontainer.Startable
stop
public void stop()
- Specified by:
stop in interface org.picocontainer.Startable
initStorage
public void initStorage(boolean replace)
throws RepositoryConfigurationException,
javax.jcr.RepositoryException
- Parameters:
replace -
- Throws:
RepositoryConfigurationException
javax.jcr.RepositoryException
addRegistryLocation
public void addRegistryLocation(java.lang.String repositoryName,
java.lang.String workspaceName)
- Parameters:
repositoryName - workspaceName -
removeRegistryLocation
public void removeRegistryLocation(java.lang.String repositoryName)
- Parameters:
repositoryName -
initRegistryEntry
public void initRegistryEntry(java.lang.String groupName,
java.lang.String entryName)
throws javax.jcr.RepositoryException,
RepositoryConfigurationException
- Parameters:
sessionProvider - groupName - entryName - repositoryName -
- Throws:
javax.jcr.RepositoryException
RepositoryConfigurationException
getRepositoryService
public RepositoryService getRepositoryService()
- Returns:
- repository service
getForceXMLConfigurationValue
public boolean getForceXMLConfigurationValue(org.exoplatform.container.xml.InitParams initParams)
- Get value of force-xml-configuration param.
- Parameters:
initParams - The InitParams
- Returns:
- force-xml-configuration value if present and false in other case
Copyright © 2010 eXo Platform SAS. All Rights Reserved.