Fixed wring metadata change in RSQL test

This commit is contained in:
Kai Zimmermann
2016-03-30 09:29:09 +02:00
parent d21ed45054
commit ca17f4543a
4 changed files with 10 additions and 18 deletions

View File

@@ -762,7 +762,7 @@ public class DistributionSetManagement {
if (distributionSetMetadataRepository.exists(metadata.getId())) {
throwMetadataKeyAlreadyExists(metadata.getId().getKey());
}
// merge base software module so optLockRevision gets updated and audit
// merge base distribution set so optLockRevision gets updated and audit
// log written because
// modifying metadata is modifying the base distribution set itself for
// auditing purposes.

View File

@@ -140,7 +140,7 @@ public class DistributionSet extends NamedVersionedEntity {
}
public List<DistributionSetMetadata> getMetadata() {
return metadata;
return Collections.unmodifiableList(metadata);
}
public List<Action> getActions() {
@@ -171,10 +171,6 @@ public class DistributionSet extends NamedVersionedEntity {
return requiredMigrationStep;
}
/**
* @param deleted
* the deleted to set
*/
public DistributionSet setDeleted(final boolean deleted) {
this.deleted = deleted;
return this;
@@ -185,10 +181,6 @@ public class DistributionSet extends NamedVersionedEntity {
return this;
}
/**
* @param tags
* the tags to set
*/
public DistributionSet setTags(final Set<DistributionSetTag> tags) {
this.tags = tags;
return this;

View File

@@ -221,7 +221,7 @@ public class SoftwareModule extends NamedVersionedEntity {
}
public List<SoftwareModuleMetadata> getMetadata() {
return metadata;
return Collections.unmodifiableList(metadata);
}
@Override