/*
- * Copyright (C) 2007-2012 Mathieu Baudier
+ * Copyright (C) 2007-2012 Argeo GmbH
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*/
package org.argeo.slc.client.ui.dist.editors;
+import javax.jcr.Credentials;
import javax.jcr.Repository;
import org.argeo.slc.jcr.SlcNames;
+import org.argeo.slc.repo.RepoConstants;
import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.ui.IEditorInput;
import org.eclipse.ui.IPersistableElement;
public class DistributionEditorInput implements IEditorInput, SlcNames {
private Repository repository;
+ private Credentials credentials;
+ private String repositoryName;
+ private String repositoryDescription;
private String workspaceName;
- private String artifactsBase = "/";
- public DistributionEditorInput(Repository repository, String workspaceName,
+ private String artifactsBase;
+
+ public DistributionEditorInput(Repository repository,
+ Credentials credentials, String repositoryName,
+ String repositoryDescription, String workspaceName,
String artifactsBase) {
super();
this.repository = repository;
+ this.repositoryName = repositoryName;
+ this.repositoryDescription = repositoryDescription;
this.workspaceName = workspaceName;
this.artifactsBase = artifactsBase;
+ this.credentials = credentials;
}
- public DistributionEditorInput(Repository repository, String workspaceName) {
- this(repository, workspaceName, "/");
+ public DistributionEditorInput(Repository repository,
+ Credentials credentials, String repositoryName,
+ String repositoryDescription, String workspaceName) {
+ this(repository, credentials, repositoryName, repositoryDescription,
+ workspaceName, RepoConstants.DEFAULT_ARTIFACTS_BASE_PATH);
}
public Object getAdapter(@SuppressWarnings("rawtypes") Class adapter) {
return artifactsBase;
}
-}
+ public String getRepositoryName() {
+ return repositoryName;
+ }
+
+ public String getRepositoryDescription() {
+ return repositoryDescription;
+ }
+
+ public Credentials getCredentials() {
+ return credentials;
+ }
+}
\ No newline at end of file