public class RepoElem extends DistParentElem
ARGEO_SYSTEM_WKSP, VERSION_SEP
Constructor and Description |
---|
RepoElem(RepositoryFactory repoFactory,
org.argeo.node.security.Keyring keyring,
Node repoNode,
java.lang.String alias)
Creates a RepoElement for an authenticated user.
|
RepoElem(RepositoryFactory repoFactory,
java.lang.String uri,
java.lang.String label)
Creates a RepoElement for anonymous user.
|
Modifier and Type | Method and Description |
---|---|
void |
dispose() |
protected Credentials |
getCredentials() |
java.lang.String |
getDescription() |
java.lang.String |
getLabel() |
protected Node |
getRepoNode()
Exposes the local repoNode that completely define a connection to a
repository (including a set of credentials).
|
java.lang.String |
getRepoNodePath() |
protected Repository |
getRepository() |
java.lang.String |
getUri()
Exposes URI to the current repository
|
java.lang.Boolean |
isConnected() |
protected boolean |
isWorkspaceVisible(java.lang.String wkspName) |
void |
login()
Effective login.
|
protected void |
refreshChildren() |
protected Session |
repositoryLogin(java.lang.String workspaceName)
Actual call to the
Repository.login(javax.jcr.Credentials, String) method. |
java.lang.String |
toString() |
inHome, isReadOnly, setInHome, setReadOnly
public RepoElem(RepositoryFactory repoFactory, java.lang.String uri, java.lang.String label)
RepositoryFactory
is used to enable lazy initialisationpublic RepoElem(RepositoryFactory repoFactory, org.argeo.node.security.Keyring keyring, Node repoNode, java.lang.String alias)
RepositoryFactory
and Keyring
are used to enable lazy
initialisationpublic void login()
protected void refreshChildren()
public void dispose()
dispose
in class org.argeo.eclipse.ui.TreeParent
protected boolean isWorkspaceVisible(java.lang.String wkspName)
protected Session repositoryLogin(java.lang.String workspaceName)
Repository.login(javax.jcr.Credentials, String)
method. To be
overridden.
Creates a new session with correct credentials using the information
contained in the corresponding repo node. It provides all UI children
elements an unique entry point to retrieve a new Session. Caller must
close the session when it is not in use anymore.public java.lang.Boolean isConnected()
public java.lang.String getUri()
public java.lang.String getRepoNodePath()
protected Node getRepoNode()
protected Repository getRepository()
protected Credentials getCredentials()
public java.lang.String getDescription()
public java.lang.String getLabel()
public java.lang.String toString()
toString
in class org.argeo.eclipse.ui.TreeParent
Copyright © 2007–2020. All rights reserved.