Skip to content
Snippets Groups Projects
Commit 22c052ab authored by yvesn's avatar yvesn
Browse files

SSDM-5098: externally mmanaged datasets: added git repository id to content...

SSDM-5098: externally mmanaged datasets: added git repository id to content copy and all related models / functionalities

SVN: 38557
parent e6f587fa
No related branches found
No related tags found
No related merge requests found
...@@ -46,6 +46,9 @@ public class ContentCopy implements Serializable ...@@ -46,6 +46,9 @@ public class ContentCopy implements Serializable
@JsonProperty @JsonProperty
private String gitCommitHash; private String gitCommitHash;
@JsonProperty
private String gitRepositoryId;
@JsonIgnore @JsonIgnore
public ContentCopyPermId getId() public ContentCopyPermId getId()
{ {
...@@ -100,4 +103,14 @@ public class ContentCopy implements Serializable ...@@ -100,4 +103,14 @@ public class ContentCopy implements Serializable
{ {
this.gitCommitHash = gitCommitHash; this.gitCommitHash = gitCommitHash;
} }
@JsonIgnore
public String getGitRepositoryId() {
return gitRepositoryId;
}
public void setGitRepositoryId(String gitRepositoryId) {
this.gitRepositoryId = gitRepositoryId;
}
} }
...@@ -33,6 +33,8 @@ public class ContentCopyCreation implements ICreation ...@@ -33,6 +33,8 @@ public class ContentCopyCreation implements ICreation
private String gitCommitHash; private String gitCommitHash;
private String gitRepositoryId;
private IExternalDmsId externalDmsId; private IExternalDmsId externalDmsId;
public String getExternalId() public String getExternalId()
...@@ -65,6 +67,15 @@ public class ContentCopyCreation implements ICreation ...@@ -65,6 +67,15 @@ public class ContentCopyCreation implements ICreation
this.gitCommitHash = gitCommitHash; this.gitCommitHash = gitCommitHash;
} }
public String getGitRepositoryId()
{
return gitRepositoryId;
}
public void setGitRepositoryId(String gitRepositoryId) {
this.gitRepositoryId = gitRepositoryId;
}
public IExternalDmsId getExternalDmsId() public IExternalDmsId getExternalDmsId()
{ {
return externalDmsId; return externalDmsId;
......
...@@ -50,6 +50,11 @@ public class ContentCopySearchCriteria extends AbstractObjectSearchCriteria<IExt ...@@ -50,6 +50,11 @@ public class ContentCopySearchCriteria extends AbstractObjectSearchCriteria<IExt
return with(new GitCommitHashSearchCriteria()); return with(new GitCommitHashSearchCriteria());
} }
public GitRepositoryIdSearchCriteria withGitRepositoryId()
{
return with(new GitRepositoryIdSearchCriteria());
}
@Override @Override
protected SearchCriteriaToStringBuilder createBuilder() protected SearchCriteriaToStringBuilder createBuilder()
{ {
......
/*
* Copyright 2016 ETH Zuerich, CISD
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package ch.ethz.sis.openbis.generic.asapi.v3.dto.dataset.search;
import ch.ethz.sis.openbis.generic.asapi.v3.dto.common.search.SearchFieldType;
import ch.ethz.sis.openbis.generic.asapi.v3.dto.common.search.StringFieldSearchCriteria;
import ch.systemsx.cisd.base.annotation.JsonObject;
@JsonObject("as.dto.dataset.search.GitRepositoryIdSearchCriteria")
public class GitRepositoryIdSearchCriteria extends StringFieldSearchCriteria
{
private static final long serialVersionUID = 1L;
public GitRepositoryIdSearchCriteria()
{
super("gitRepositoryId", SearchFieldType.ATTRIBUTE);
}
}
...@@ -1553,10 +1553,12 @@ ContentCopyCreation ...@@ -1553,10 +1553,12 @@ ContentCopyCreation
getContentCopies getContentCopies
getExternalId getExternalId
getGitCommitHash getGitCommitHash
getGitRepositoryId
getSerialversionuid getSerialversionuid
setContentCopies setContentCopies
setExternalId setExternalId
setGitCommitHash setGitCommitHash
setGitRepositoryId
ContentCopy ContentCopy
NO_COPY_EXTERNAL_CODE NO_COPY_EXTERNAL_CODE
NO_COPY_EXTERNAL_DMS NO_COPY_EXTERNAL_DMS
...@@ -1584,10 +1586,12 @@ AddressSearchCriteria ...@@ -1584,10 +1586,12 @@ AddressSearchCriteria
ContentCopySearchCriteria ContentCopySearchCriteria
ExternalDmsTypeSearchCriteria ExternalDmsTypeSearchCriteria
GitCommitHashSearchCriteria GitCommitHashSearchCriteria
GitRepositoryIdSearchCriteria
LabelSearchCriteria LabelSearchCriteria
PathSearchCriteria PathSearchCriteria
withAddress withAddress
withCopy withCopy
withGitCommitHash withGitCommitHash
withGitRepositoryId
withLabel withLabel
withPath withPath
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment