public class RepositoryElem extends TreeParent
Repository. It also keeps a
reference to its parent Tree Ui component; typically the unique
RepositoriesElem object of the current view to enable bi-directionnal
browsing in the tree.| Modifier and Type | Field and Description |
|---|---|
protected Repository |
repository |
| Constructor and Description |
|---|
RepositoryElem(java.lang.String alias,
Repository repository,
TreeParent parent)
Create a new repository with distinct name and alias
|
| Modifier and Type | Method and Description |
|---|---|
void |
createWorkspace(java.lang.String workspaceName) |
java.lang.String[] |
getAccessibleWorkspaceNames() |
java.lang.String |
getAlias() |
Repository |
getRepository()
returns the
Repository referenced by the current UI Node |
java.lang.Boolean |
isConnected() |
void |
login() |
void |
logout() |
protected Session |
repositoryLogin(java.lang.String workspaceName)
Actual call to the
Repository.login(javax.jcr.Credentials, String)
method. |
addChild, clearChildren, compareTo, dispose, equals, getChildByName, getChildren, getChildrenOfType, getName, getParent, hasChildren, hashCode, isLoaded, removeChild, setParent, toStringprotected Repository repository
public RepositoryElem(java.lang.String alias,
Repository repository,
TreeParent parent)
public void login()
public void logout()
protected Session repositoryLogin(java.lang.String workspaceName) throws RepositoryException
Repository.login(javax.jcr.Credentials, String)
method. To be overridden.RepositoryExceptionpublic java.lang.String[] getAccessibleWorkspaceNames()
public void createWorkspace(java.lang.String workspaceName)
public Repository getRepository()
Repository referenced by the current UI Nodepublic java.lang.String getAlias()
public java.lang.Boolean isConnected()
Copyright © 2007–2020. All rights reserved.