Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordonald.g.dunne2021-05-18 01:55:46 +0000
committerRyan T. Baldwin2021-05-18 01:55:46 +0000
commit61404ae1c9cdf310d0f3f9393bc3dcacfb34985d (patch)
tree6f9d95e16405932a1afcbfb8a0b08a1483e87a07 /plugins/org.eclipse.osee.framework.core/src/org/eclipse/osee
parentedb4c051971631a4dd12dad736090a1d2fc638f6 (diff)
downloadorg.eclipse.osee-61404ae1c9cdf310d0f3f9393bc3dcacfb34985d.tar.gz
org.eclipse.osee-61404ae1c9cdf310d0f3f9393bc3dcacfb34985d.tar.xz
org.eclipse.osee-61404ae1c9cdf310d0f3f9393bc3dcacfb34985d.zip
bug[TW19267]: Improve performance of AccessControlService.isDeleteable
Diffstat (limited to 'plugins/org.eclipse.osee.framework.core/src/org/eclipse/osee')
-rw-r--r--plugins/org.eclipse.osee.framework.core/src/org/eclipse/osee/framework/core/access/ArtifactCheck.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/org.eclipse.osee.framework.core/src/org/eclipse/osee/framework/core/access/ArtifactCheck.java b/plugins/org.eclipse.osee.framework.core/src/org/eclipse/osee/framework/core/access/ArtifactCheck.java
index 5efcda97b33..8c755eb3633 100644
--- a/plugins/org.eclipse.osee.framework.core/src/org/eclipse/osee/framework/core/access/ArtifactCheck.java
+++ b/plugins/org.eclipse.osee.framework.core/src/org/eclipse/osee/framework/core/access/ArtifactCheck.java
@@ -26,21 +26,21 @@ public interface ArtifactCheck {
/**
* @return error(s) of which artifacts and why they can not be deleted
*/
- default public XResultData isDeleteable(Collection<? extends ArtifactToken> artifacts, XResultData results) {
- return new XResultData();
+ default public XResultData isDeleteable(Collection<? extends ArtifactToken> artifacts, XResultData rd) {
+ return rd;
}
/**
* @return errors(s) of which artifacts and why they can not be renamed
*/
- default public XResultData isRenamable(Collection<? extends ArtifactToken> artifacts, XResultData results) {
- return new XResultData();
+ default public XResultData isRenamable(Collection<? extends ArtifactToken> artifacts, XResultData rd) {
+ return rd;
}
/**
* @return error(s) of which artifact(s) and why relation(s) can not be deleted
*/
- default public XResultData isDeleteableRelation(ArtifactToken artifact, RelationTypeToken relationType, XResultData results) {
- return new XResultData();
+ default public XResultData isDeleteableRelation(ArtifactToken artifact, RelationTypeToken relationType, XResultData rd) {
+ return rd;
}
}

Back to the top