|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.priha.core.RepositoryImpl
public class RepositoryImpl
Provides the main Repository class for Priha. You may use this by simply instantiating it with a suitable Properties object.
Any property may be overridden also from the command line using a system property.
Nested Class Summary | |
---|---|
protected static interface |
RepositoryImpl.SessionVisitor
|
Field Summary | |
---|---|
static java.lang.String |
DEFAULT_WORKSPACE
|
Constructor Summary | |
---|---|
RepositoryImpl(java.util.Properties prefs)
Create a new Repository using the given properties. |
Method Summary | |
---|---|
java.lang.String |
getDescriptor(java.lang.String key)
|
java.lang.String[] |
getDescriptorKeys()
|
static NamespaceRegistryImpl |
getGlobalNamespaceRegistry()
|
protected static PathManager |
getPathManager()
|
java.lang.String |
getProperty(java.lang.String key)
|
java.lang.String |
getProperty(java.lang.String key,
java.lang.String defValue)
|
java.util.Enumeration<java.lang.String> |
getPropertyNames()
|
protected ProviderManager |
getProviderManager()
|
protected org.priha.core.RepositoryImpl.SessionManager |
getSessionManager()
|
SessionImpl |
login()
|
SessionImpl |
login(Credentials credentials)
|
SessionImpl |
login(Credentials credentials,
java.lang.String workspaceName)
|
protected void |
removeSession(SessionImpl s)
|
void |
setProperty(java.lang.String key,
java.lang.String property)
Set transient properties for this repository. |
void |
shutdown()
Shuts down the entire repository, stops all providers and releases resources. |
SessionImpl |
superUserLogin(java.lang.String workspaceName)
Returns a Session which has write permissions to the repository. |
protected void |
visit(RepositoryImpl.SessionVisitor v)
Visits all current Sessions |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String DEFAULT_WORKSPACE
Constructor Detail |
---|
public RepositoryImpl(java.util.Properties prefs) throws ConfigurationException
prefs
- Properties to use. Must not be null.
ConfigurationException
- If the properties are wrong.Method Detail |
---|
public java.lang.String getProperty(java.lang.String key)
public java.lang.String getProperty(java.lang.String key, java.lang.String defValue)
protected ProviderManager getProviderManager() throws ConfigurationException
ConfigurationException
protected static PathManager getPathManager()
protected org.priha.core.RepositoryImpl.SessionManager getSessionManager()
public void setProperty(java.lang.String key, java.lang.String property)
key
- property
- public java.util.Enumeration<java.lang.String> getPropertyNames()
public java.lang.String getDescriptor(java.lang.String key)
public java.lang.String[] getDescriptorKeys()
public SessionImpl login(Credentials credentials, java.lang.String workspaceName) throws LoginException, NoSuchWorkspaceException, RepositoryException
LoginException
NoSuchWorkspaceException
RepositoryException
public SessionImpl login(Credentials credentials) throws LoginException, RepositoryException
LoginException
RepositoryException
public SessionImpl login() throws LoginException, RepositoryException
LoginException
RepositoryException
public void shutdown()
public SessionImpl superUserLogin(java.lang.String workspaceName) throws LoginException, NoSuchWorkspaceException, RepositoryException
This method is guaranteed to always return a Session which has all permissions into the repository - assuming the underlying repository implementation does not have any limitations (which it normally should not have).
workspaceName
- The workspace to which the login is done.
LoginException
NoSuchWorkspaceException
RepositoryException
public static NamespaceRegistryImpl getGlobalNamespaceRegistry()
protected void visit(RepositoryImpl.SessionVisitor v)
v
- protected void removeSession(SessionImpl s)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |