Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorddunne2010-04-06 15:41:15 -0400
committerddunne2010-04-06 15:41:15 -0400
commit8c84070a0dc477819887134bc056168dcea4e277 (patch)
tree1ae811d45191620f4c659503801ca340b46e2cf0 /plugins/org.eclipse.osee.framework.messaging.event.res
parent02b7a05bcf1f6092f776d4fe4fb5019fbd10eeed (diff)
downloadorg.eclipse.osee-8c84070a0dc477819887134bc056168dcea4e277.tar.gz
org.eclipse.osee-8c84070a0dc477819887134bc056168dcea4e277.tar.xz
org.eclipse.osee-8c84070a0dc477819887134bc056168dcea4e277.zip
coverage events
Diffstat (limited to 'plugins/org.eclipse.osee.framework.messaging.event.res')
-rw-r--r--plugins/org.eclipse.osee.framework.messaging.event.res/META-INF/MANIFEST.MF13
-rw-r--r--plugins/org.eclipse.osee.framework.messaging.event.res/src/org/eclipse/osee/framework/messaging/event/res/IFrameworkArtifactEvent.java29
-rw-r--r--plugins/org.eclipse.osee.framework.messaging.event.res/src/org/eclipse/osee/framework/messaging/event/res/event/FrameworkArtifactEventBase.java43
-rw-r--r--plugins/org.eclipse.osee.framework.messaging.event.res/src/org/eclipse/osee/framework/messaging/event/res/event/NetworkAccessControlArtifactsEvent.java22
-rw-r--r--plugins/org.eclipse.osee.framework.messaging.event.res/src/org/eclipse/osee/framework/messaging/event/res/event/NetworkArtifactAddedEvent.java32
-rw-r--r--plugins/org.eclipse.osee.framework.messaging.event.res/src/org/eclipse/osee/framework/messaging/event/res/event/NetworkArtifactChangeTypeEvent.java28
-rw-r--r--plugins/org.eclipse.osee.framework.messaging.event.res/src/org/eclipse/osee/framework/messaging/event/res/event/NetworkArtifactDeletedEvent.java14
-rw-r--r--plugins/org.eclipse.osee.framework.messaging.event.res/src/org/eclipse/osee/framework/messaging/event/res/event/NetworkArtifactModifiedEvent.java38
-rw-r--r--plugins/org.eclipse.osee.framework.messaging.event.res/src/org/eclipse/osee/framework/messaging/event/res/event/NetworkArtifactPurgeEvent.java16
-rw-r--r--plugins/org.eclipse.osee.framework.messaging.event.res/src/org/eclipse/osee/framework/messaging/event/res/event/NetworkRelationLinkCreatedEvent.java46
-rw-r--r--plugins/org.eclipse.osee.framework.messaging.event.res/src/org/eclipse/osee/framework/messaging/event/res/event/NetworkRelationLinkDeletedEvent.java28
-rw-r--r--plugins/org.eclipse.osee.framework.messaging.event.res/src/org/eclipse/osee/framework/messaging/event/res/event/NetworkRelationLinkRationalModifiedEvent.java51
-rw-r--r--plugins/org.eclipse.osee.framework.messaging.event.res/src/org/eclipse/osee/framework/messaging/event/res/event/NetworkSender.java4
-rw-r--r--plugins/org.eclipse.osee.framework.messaging.event.res/src/org/eclipse/osee/framework/messaging/event/res/event/SkynetArtifactEventBase.java90
-rw-r--r--plugins/org.eclipse.osee.framework.messaging.event.res/src/org/eclipse/osee/framework/messaging/event/res/event/SkynetArtifactsEventBase.java64
-rw-r--r--plugins/org.eclipse.osee.framework.messaging.event.res/src/org/eclipse/osee/framework/messaging/event/res/event/SkynetRelationLinkEventBase.java85
16 files changed, 103 insertions, 500 deletions
diff --git a/plugins/org.eclipse.osee.framework.messaging.event.res/META-INF/MANIFEST.MF b/plugins/org.eclipse.osee.framework.messaging.event.res/META-INF/MANIFEST.MF
index eff86635f0..8584d8d189 100644
--- a/plugins/org.eclipse.osee.framework.messaging.event.res/META-INF/MANIFEST.MF
+++ b/plugins/org.eclipse.osee.framework.messaging.event.res/META-INF/MANIFEST.MF
@@ -5,15 +5,14 @@ Bundle-SymbolicName: org.eclipse.osee.framework.messaging.event.res;singleton:=t
Bundle-Version: 0.9.4.qualifier
Eclipse-ExtensibleAPI: true
Bundle-Activator: org.eclipse.osee.framework.messaging.event.res.Activator
-Require-Bundle: org.eclipse.core.runtime,
- net.jini,
- org.eclipse.osee.framework.jdk.core,
- org.eclipse.osee.framework.jini,
+Require-Bundle: org.eclipse.osee.framework.jdk.core,
org.eclipse.osee.framework.plugin.core,
- org.eclipse.ui
+ org.eclipse.osee.framework.core,
+ org.eclipse.core.runtime;bundle-version="3.5.0"
Bundle-ActivationPolicy: lazy
Bundle-Description: Skynet Event Service - Skynet Cache Network Manager
Bundle-Vendor: Eclipse.org
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
-Import-Package: org.eclipse.osee.framework.core.enums,
- org.eclipse.osee.framework.logging
+Import-Package: org.eclipse.osee.framework.core.enums
+Export-Package: org.eclipse.osee.framework.messaging.event.res,
+ org.eclipse.osee.framework.messaging.event.res.event
diff --git a/plugins/org.eclipse.osee.framework.messaging.event.res/src/org/eclipse/osee/framework/messaging/event/res/IFrameworkArtifactEvent.java b/plugins/org.eclipse.osee.framework.messaging.event.res/src/org/eclipse/osee/framework/messaging/event/res/IFrameworkArtifactEvent.java
deleted file mode 100644
index 1da133aaa5..0000000000
--- a/plugins/org.eclipse.osee.framework.messaging.event.res/src/org/eclipse/osee/framework/messaging/event/res/IFrameworkArtifactEvent.java
+++ /dev/null
@@ -1,29 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2007 Boeing.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Boeing - initial API and implementation
- *******************************************************************************/
-package org.eclipse.osee.framework.messaging.event.res;
-
-/**
- * @author Donald G. Dunne
- */
-public interface IFrameworkArtifactEvent extends IFrameworkEvent {
-
- public String getFactoryName();
-
- public String getBranchGuid();
-
- public String getArtGuid();
-
- public int getArtId();
-
- public String getArtTypeGuid();
-
- public int getArtTypeId();
-}
diff --git a/plugins/org.eclipse.osee.framework.messaging.event.res/src/org/eclipse/osee/framework/messaging/event/res/event/FrameworkArtifactEventBase.java b/plugins/org.eclipse.osee.framework.messaging.event.res/src/org/eclipse/osee/framework/messaging/event/res/event/FrameworkArtifactEventBase.java
new file mode 100644
index 0000000000..f378d10c28
--- /dev/null
+++ b/plugins/org.eclipse.osee.framework.messaging.event.res/src/org/eclipse/osee/framework/messaging/event/res/event/FrameworkArtifactEventBase.java
@@ -0,0 +1,43 @@
+/*******************************************************************************
+ * Copyright (c) 2004, 2007 Boeing.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Boeing - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.osee.framework.messaging.event.res.event;
+
+import java.util.Arrays;
+import java.util.Collection;
+import org.eclipse.osee.framework.core.data.DefaultBasicGuidArtifact;
+
+/**
+ * @author Donald G. Dunne
+ */
+public abstract class FrameworkArtifactEventBase extends FrameworkEventBase {
+
+ private final Collection<? extends DefaultBasicGuidArtifact> defaultBasicGuidArtifacts;
+
+ public FrameworkArtifactEventBase(String eventGuid, DefaultBasicGuidArtifact defaultBasicGuidArtifact, NetworkSender networkSender) {
+ super(networkSender, eventGuid);
+ this.defaultBasicGuidArtifacts = Arrays.asList(defaultBasicGuidArtifact);
+ }
+
+ public FrameworkArtifactEventBase(String eventGuid, Collection<? extends DefaultBasicGuidArtifact> defaultBasicGuidArtifacts, NetworkSender networkSender) {
+ super(networkSender, eventGuid);
+ this.defaultBasicGuidArtifacts = defaultBasicGuidArtifacts;
+ }
+
+ public FrameworkArtifactEventBase(FrameworkArtifactEventBase base) {
+ super(base.getNetworkSender(), base.getEventGuid());
+ this.defaultBasicGuidArtifacts = base.getDefaultBasicGuidArtifacts();
+ }
+
+ public Collection<? extends DefaultBasicGuidArtifact> getDefaultBasicGuidArtifacts() {
+ return defaultBasicGuidArtifacts;
+ }
+
+}
diff --git a/plugins/org.eclipse.osee.framework.messaging.event.res/src/org/eclipse/osee/framework/messaging/event/res/event/NetworkAccessControlArtifactsEvent.java b/plugins/org.eclipse.osee.framework.messaging.event.res/src/org/eclipse/osee/framework/messaging/event/res/event/NetworkAccessControlArtifactsEvent.java
index dd8c9e2b3e..eb7c84c45c 100644
--- a/plugins/org.eclipse.osee.framework.messaging.event.res/src/org/eclipse/osee/framework/messaging/event/res/event/NetworkAccessControlArtifactsEvent.java
+++ b/plugins/org.eclipse.osee.framework.messaging.event.res/src/org/eclipse/osee/framework/messaging/event/res/event/NetworkAccessControlArtifactsEvent.java
@@ -10,26 +10,28 @@
*******************************************************************************/
package org.eclipse.osee.framework.messaging.event.res.event;
-import java.util.Collection;
+import org.eclipse.osee.framework.core.data.DefaultBasicGuidArtifact;
/**
* @author Donald G. Dunne
*/
-public class NetworkAccessControlArtifactsEvent extends SkynetArtifactsEventBase {
- private static final long serialVersionUID = -4325821466558180270L;
+public class NetworkAccessControlArtifactsEvent extends FrameworkArtifactEventBase {
private final String accessControlModType;
- public String getAccessControlModTypeName() {
- return accessControlModType;
- }
+ public static String GUID = "Aylfa1pAo0QntOBC7TgA";
- public NetworkAccessControlArtifactsEvent(String accessControlModType, int branchId, Collection<Integer> artifactIds, Collection<String> artifactGuids, Collection<Integer> artifactTypeIds, NetworkSender networkSender) {
- super(branchId, artifactIds, artifactGuids, artifactTypeIds, networkSender);
+ public NetworkAccessControlArtifactsEvent(String accessControlModType, String branchGuid, String artGuid, String artTypeGuid, NetworkSender networkSender) {
+ super(GUID, new DefaultBasicGuidArtifact(branchGuid, artTypeGuid, artGuid), networkSender);
this.accessControlModType = accessControlModType;
}
- public static long getSerialVersionUID() {
- return serialVersionUID;
+ public NetworkAccessControlArtifactsEvent(NetworkAccessControlArtifactsEvent base) {
+ super(base);
+ this.accessControlModType = base.getAccessControlModTypeName();
+ }
+
+ public String getAccessControlModTypeName() {
+ return accessControlModType;
}
}
diff --git a/plugins/org.eclipse.osee.framework.messaging.event.res/src/org/eclipse/osee/framework/messaging/event/res/event/NetworkArtifactAddedEvent.java b/plugins/org.eclipse.osee.framework.messaging.event.res/src/org/eclipse/osee/framework/messaging/event/res/event/NetworkArtifactAddedEvent.java
index 9b34e704bf..ae66ec3ba0 100644
--- a/plugins/org.eclipse.osee.framework.messaging.event.res/src/org/eclipse/osee/framework/messaging/event/res/event/NetworkArtifactAddedEvent.java
+++ b/plugins/org.eclipse.osee.framework.messaging.event.res/src/org/eclipse/osee/framework/messaging/event/res/event/NetworkArtifactAddedEvent.java
@@ -10,36 +10,16 @@
*******************************************************************************/
package org.eclipse.osee.framework.messaging.event.res.event;
+import org.eclipse.osee.framework.core.data.DefaultBasicGuidArtifact;
+
/**
- * @author Robert A. Fisher
* @author Donald G. Dunne
*/
-public class NetworkArtifactAddedEvent extends SkynetArtifactEventBase {
- private static final long serialVersionUID = -4325821466558180270L;
-
- public NetworkArtifactAddedEvent(int branchId, String branchGuid, int transactionId, int artId, String artGuid, int artTypeId, String artTypeGuid, String factoryName, NetworkSender networkSender) {
- super(branchId, branchGuid, transactionId, artId, artGuid, artTypeId, artTypeGuid, factoryName, networkSender);
- }
-
- public NetworkArtifactAddedEvent(SkynetArtifactEventBase base) {
- super(base);
- }
-
- @Override
- public boolean equals(Object obj) {
- if (obj instanceof NetworkArtifactAddedEvent) {
- return getArtId() == ((NetworkArtifactAddedEvent) obj).getArtId();
- }
- return super.equals(obj);
- }
-
- @Override
- public int hashCode() {
- return getArtId();
- }
+public class NetworkArtifactAddedEvent extends FrameworkArtifactEventBase {
+ public static String GUID = "AylfZYvonzO4EUQdLggA";
- public static long getSerialVersionUID() {
- return serialVersionUID;
+ public NetworkArtifactAddedEvent(String branchGuid, String artTypeGuid, String artGuid, NetworkSender networkSender) {
+ super(GUID, new DefaultBasicGuidArtifact(branchGuid, artTypeGuid, artGuid), networkSender);
}
}
diff --git a/plugins/org.eclipse.osee.framework.messaging.event.res/src/org/eclipse/osee/framework/messaging/event/res/event/NetworkArtifactChangeTypeEvent.java b/plugins/org.eclipse.osee.framework.messaging.event.res/src/org/eclipse/osee/framework/messaging/event/res/event/NetworkArtifactChangeTypeEvent.java
index d90747fad1..2c3fca7a69 100644
--- a/plugins/org.eclipse.osee.framework.messaging.event.res/src/org/eclipse/osee/framework/messaging/event/res/event/NetworkArtifactChangeTypeEvent.java
+++ b/plugins/org.eclipse.osee.framework.messaging.event.res/src/org/eclipse/osee/framework/messaging/event/res/event/NetworkArtifactChangeTypeEvent.java
@@ -11,32 +11,22 @@
package org.eclipse.osee.framework.messaging.event.res.event;
import java.util.Collection;
+import org.eclipse.osee.framework.core.data.DefaultBasicGuidArtifact;
/**
* @author Donald G. Dunne
*/
-public class NetworkArtifactChangeTypeEvent extends SkynetArtifactsEventBase {
- private static final long serialVersionUID = -4325821466558180270L;
+public class NetworkArtifactChangeTypeEvent extends FrameworkArtifactEventBase {
+ public static String GUID = "Aylfa1qhw2qCbzMIU8gA";
+ private final String toArtTypeGuid;
- private final int toArtifactTypeId;
- private final String toArtifactTypeGuid;
-
- public int getToArtifactTypeId() {
- return toArtifactTypeId;
- }
-
- public NetworkArtifactChangeTypeEvent(int branchId, Collection<Integer> artifactIds, Collection<String> artifactGuids, Collection<Integer> artifactTypeIds, int toArtifactTypeId, String toArtifactTypeGuid, NetworkSender networkSender) {
- super(branchId, artifactIds, artifactGuids, artifactTypeIds, networkSender);
- this.toArtifactTypeId = toArtifactTypeId;
- this.toArtifactTypeGuid = toArtifactTypeGuid;
- }
-
- public static long getSerialVersionUID() {
- return serialVersionUID;
+ public NetworkArtifactChangeTypeEvent(String toArtTypeGuid, Collection<? extends DefaultBasicGuidArtifact> defaultBasicGuidArtifacts, NetworkSender networkSender) {
+ super(GUID, defaultBasicGuidArtifacts, networkSender);
+ this.toArtTypeGuid = toArtTypeGuid;
}
- public String getToArtifactTypeGuid() {
- return toArtifactTypeGuid;
+ public String getToArtTypeGuid() {
+ return toArtTypeGuid;
}
}
diff --git a/plugins/org.eclipse.osee.framework.messaging.event.res/src/org/eclipse/osee/framework/messaging/event/res/event/NetworkArtifactDeletedEvent.java b/plugins/org.eclipse.osee.framework.messaging.event.res/src/org/eclipse/osee/framework/messaging/event/res/event/NetworkArtifactDeletedEvent.java
index a23711cedc..ee1a69ffdd 100644
--- a/plugins/org.eclipse.osee.framework.messaging.event.res/src/org/eclipse/osee/framework/messaging/event/res/event/NetworkArtifactDeletedEvent.java
+++ b/plugins/org.eclipse.osee.framework.messaging.event.res/src/org/eclipse/osee/framework/messaging/event/res/event/NetworkArtifactDeletedEvent.java
@@ -10,18 +10,20 @@
*******************************************************************************/
package org.eclipse.osee.framework.messaging.event.res.event;
+import org.eclipse.osee.framework.core.data.DefaultBasicGuidArtifact;
+
/**
- * @author Robert A. Fisher
* @author Donald G. Dunne
*/
-public class NetworkArtifactDeletedEvent extends SkynetArtifactEventBase {
- private static final long serialVersionUID = 568951803773151575L;
+public class NetworkArtifactDeletedEvent extends FrameworkArtifactEventBase {
+
+ public static String GUID = "Aylfa1mOw39qD3vQTsQA";
- public NetworkArtifactDeletedEvent(int branchId, String branchGuid, int transactionId, int artId, String artGuid, int artTypeId, String artTypeGuid, String factoryName, NetworkSender networkSender) {
- super(branchId, branchGuid, transactionId, artId, artGuid, artTypeId, artTypeGuid, factoryName, networkSender);
+ public NetworkArtifactDeletedEvent(String branchGuid, String artTypeGuid, String artGuid, NetworkSender networkSender) {
+ super(GUID, new DefaultBasicGuidArtifact(branchGuid, artTypeGuid, artGuid), networkSender);
}
- public NetworkArtifactDeletedEvent(SkynetArtifactEventBase base) {
+ public NetworkArtifactDeletedEvent(NetworkArtifactDeletedEvent base) {
super(base);
}
}
diff --git a/plugins/org.eclipse.osee.framework.messaging.event.res/src/org/eclipse/osee/framework/messaging/event/res/event/NetworkArtifactModifiedEvent.java b/plugins/org.eclipse.osee.framework.messaging.event.res/src/org/eclipse/osee/framework/messaging/event/res/event/NetworkArtifactModifiedEvent.java
index 438778e64e..c0e4b00fd3 100644
--- a/plugins/org.eclipse.osee.framework.messaging.event.res/src/org/eclipse/osee/framework/messaging/event/res/event/NetworkArtifactModifiedEvent.java
+++ b/plugins/org.eclipse.osee.framework.messaging.event.res/src/org/eclipse/osee/framework/messaging/event/res/event/NetworkArtifactModifiedEvent.java
@@ -11,45 +11,27 @@
package org.eclipse.osee.framework.messaging.event.res.event;
import java.util.Collection;
+import org.eclipse.osee.framework.core.data.DefaultBasicGuidArtifact;
/**
- * @author Robert A. Fisher
* @author Donald G. Dunne
*/
-public class NetworkArtifactModifiedEvent extends SkynetArtifactEventBase {
- private static final long serialVersionUID = -4325821466558180270L;
- private final Collection<AttributeChange> attributeValues;
+public class NetworkArtifactModifiedEvent extends FrameworkArtifactEventBase {
+ private final Collection<AttributeChange> attributeChanges;
- public NetworkArtifactModifiedEvent(int branchId, String branchGuid, int transactionId, int artId, String artGuid, int artTypeId, String artTypeGuid, String factoryName, NetworkSender networkSender, Collection<AttributeChange> attributeValues) {
- super(branchId, branchGuid, transactionId, artId, artGuid, artTypeId, artTypeGuid, factoryName, networkSender);
+ public static String GUID = "Aylfa1oLKh60Jl40MkQA";
- this.attributeValues = attributeValues;
+ public NetworkArtifactModifiedEvent(String branchGuid, String artTypeGuid, String artGuid, Collection<AttributeChange> attributeChanges, NetworkSender networkSender) {
+ super(GUID, new DefaultBasicGuidArtifact(branchGuid, artTypeGuid, artGuid), networkSender);
+ this.attributeChanges = attributeChanges;
}
- public NetworkArtifactModifiedEvent(SkynetArtifactEventBase base, Collection<AttributeChange> attributeValues) {
+ public NetworkArtifactModifiedEvent(NetworkArtifactModifiedEvent base) {
super(base);
-
- this.attributeValues = attributeValues;
- }
-
- @Override
- public boolean equals(Object obj) {
- if (obj instanceof NetworkArtifactModifiedEvent) {
- return getArtId() == ((NetworkArtifactModifiedEvent) obj).getArtId();
- }
- return super.equals(obj);
- }
-
- @Override
- public int hashCode() {
- return getArtId();
- }
-
- public static long getSerialVersionUID() {
- return serialVersionUID;
+ this.attributeChanges = base.getAttributeChanges();
}
public Collection<AttributeChange> getAttributeChanges() {
- return attributeValues;
+ return attributeChanges;
}
}
diff --git a/plugins/org.eclipse.osee.framework.messaging.event.res/src/org/eclipse/osee/framework/messaging/event/res/event/NetworkArtifactPurgeEvent.java b/plugins/org.eclipse.osee.framework.messaging.event.res/src/org/eclipse/osee/framework/messaging/event/res/event/NetworkArtifactPurgeEvent.java
index 8a90e69bc0..5189cba4ba 100644
--- a/plugins/org.eclipse.osee.framework.messaging.event.res/src/org/eclipse/osee/framework/messaging/event/res/event/NetworkArtifactPurgeEvent.java
+++ b/plugins/org.eclipse.osee.framework.messaging.event.res/src/org/eclipse/osee/framework/messaging/event/res/event/NetworkArtifactPurgeEvent.java
@@ -11,22 +11,16 @@
package org.eclipse.osee.framework.messaging.event.res.event;
import java.util.Collection;
+import org.eclipse.osee.framework.core.data.DefaultBasicGuidArtifact;
/**
* @author Donald G. Dunne
*/
-public class NetworkArtifactPurgeEvent extends SkynetArtifactsEventBase {
- private static final long serialVersionUID = -4325821466558180270L;
+public class NetworkArtifactPurgeEvent extends FrameworkArtifactEventBase {
+ public static String GUID = "Aylfa1pxv1325eRLuvwA";
- public NetworkArtifactPurgeEvent(int branchId, Collection<Integer> artifactIds, Collection<String> artifactGuids, Collection<Integer> artifactTypeIds, NetworkSender networkSender) {
- super(branchId, artifactIds, artifactGuids, artifactTypeIds, networkSender);
- }
-
- /**
- * @return Returns the serialVersionUID.
- */
- public static long getSerialVersionUID() {
- return serialVersionUID;
+ public NetworkArtifactPurgeEvent(Collection<? extends DefaultBasicGuidArtifact> defaultBasicGuidArtifacts, NetworkSender networkSender) {
+ super(GUID, defaultBasicGuidArtifacts, networkSender);
}
}
diff --git a/plugins/org.eclipse.osee.framework.messaging.event.res/src/org/eclipse/osee/framework/messaging/event/res/event/NetworkRelationLinkCreatedEvent.java b/plugins/org.eclipse.osee.framework.messaging.event.res/src/org/eclipse/osee/framework/messaging/event/res/event/NetworkRelationLinkCreatedEvent.java
deleted file mode 100644
index b2596937b5..0000000000
--- a/plugins/org.eclipse.osee.framework.messaging.event.res/src/org/eclipse/osee/framework/messaging/event/res/event/NetworkRelationLinkCreatedEvent.java
+++ /dev/null
@@ -1,46 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2007 Boeing.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Boeing - initial API and implementation
- *******************************************************************************/
-package org.eclipse.osee.framework.messaging.event.res.event;
-
-/**
- * @author Donald G. Dunne
- * @author Jeff C. Phillips
- */
-public class NetworkRelationLinkCreatedEvent extends SkynetRelationLinkEventBase {
-
- private static final long serialVersionUID = -519877422249674503L;
-
- private final String rationale;
- private final String descriptorName;
-
- public NetworkRelationLinkCreatedEvent(int gammaId, int branchId, int relId, int artAId, int artATypeId, int artBId, int artBTypeId, int relTypeId, NetworkSender networkSender, String rationale, String descriptorName) {
- super(gammaId, branchId, relId, artAId, artATypeId, artBId, artBTypeId, relTypeId, networkSender);
-
- this.rationale = rationale;
- this.descriptorName = descriptorName;
- }
-
- public NetworkRelationLinkCreatedEvent(SkynetRelationLinkEventBase base, String rationale, String descriptorName) {
- super(base);
-
- this.rationale = rationale;
- this.descriptorName = descriptorName;
- }
-
- public String getRationale() {
- return rationale;
- }
-
- public String getDescriptorName() {
- return descriptorName;
- }
-
-}
diff --git a/plugins/org.eclipse.osee.framework.messaging.event.res/src/org/eclipse/osee/framework/messaging/event/res/event/NetworkRelationLinkDeletedEvent.java b/plugins/org.eclipse.osee.framework.messaging.event.res/src/org/eclipse/osee/framework/messaging/event/res/event/NetworkRelationLinkDeletedEvent.java
deleted file mode 100644
index 6d4804378c..0000000000
--- a/plugins/org.eclipse.osee.framework.messaging.event.res/src/org/eclipse/osee/framework/messaging/event/res/event/NetworkRelationLinkDeletedEvent.java
+++ /dev/null
@@ -1,28 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2007 Boeing.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Boeing - initial API and implementation
- *******************************************************************************/
-package org.eclipse.osee.framework.messaging.event.res.event;
-
-/**
- * @author Donald G. Dunne
- * @author Robert A. Fisher
- */
-public class NetworkRelationLinkDeletedEvent extends SkynetRelationLinkEventBase {
- private static final long serialVersionUID = -1451567913757261791L;
-
- public NetworkRelationLinkDeletedEvent(int gammaId, int branchId, int relId, int artAId, int artATypeId, int artBId, int artBTypeId, int relTypeId, NetworkSender networkSender) {
- super(gammaId, branchId, relId, artAId, artATypeId, artBId, artBTypeId, relTypeId, networkSender);
- }
-
- public NetworkRelationLinkDeletedEvent(SkynetRelationLinkEventBase base) {
- super(base);
- }
-
-}
diff --git a/plugins/org.eclipse.osee.framework.messaging.event.res/src/org/eclipse/osee/framework/messaging/event/res/event/NetworkRelationLinkRationalModifiedEvent.java b/plugins/org.eclipse.osee.framework.messaging.event.res/src/org/eclipse/osee/framework/messaging/event/res/event/NetworkRelationLinkRationalModifiedEvent.java
deleted file mode 100644
index 12a7643a58..0000000000
--- a/plugins/org.eclipse.osee.framework.messaging.event.res/src/org/eclipse/osee/framework/messaging/event/res/event/NetworkRelationLinkRationalModifiedEvent.java
+++ /dev/null
@@ -1,51 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2007 Boeing.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Boeing - initial API and implementation
- *******************************************************************************/
-package org.eclipse.osee.framework.messaging.event.res.event;
-
-/**
- * @author Donald G. Dunne
- * @author Robert A. Fisher
- */
-public class NetworkRelationLinkRationalModifiedEvent extends SkynetRelationLinkEventBase {
- private static final long serialVersionUID = 548299278567054333L;
-
- private final String rationale;
-
- public NetworkRelationLinkRationalModifiedEvent(int gammaId, int branchId, int relId, int artAId, int artATypeId, int artBId, int artBTypeId, int relTypeId, NetworkSender networkSender, String rationale) {
- super(gammaId, branchId, relId, artAId, artATypeId, artBId, artBTypeId, relTypeId, networkSender);
-
- this.rationale = rationale;
- }
-
- public NetworkRelationLinkRationalModifiedEvent(SkynetRelationLinkEventBase base, String rationale) {
- super(base);
-
- this.rationale = rationale;
- }
-
- public String getRationale() {
- return rationale;
- }
-
- @Override
- public boolean equals(Object obj) {
- if (obj instanceof NetworkRelationLinkRationalModifiedEvent) {
- return getRelId() == ((NetworkRelationLinkRationalModifiedEvent) obj).getRelId();
- }
- return super.equals(obj);
- }
-
- @Override
- public int hashCode() {
- return getRelId();
- }
-
-}
diff --git a/plugins/org.eclipse.osee.framework.messaging.event.res/src/org/eclipse/osee/framework/messaging/event/res/event/NetworkSender.java b/plugins/org.eclipse.osee.framework.messaging.event.res/src/org/eclipse/osee/framework/messaging/event/res/event/NetworkSender.java
index 6478ddc3e4..39dac8003c 100644
--- a/plugins/org.eclipse.osee.framework.messaging.event.res/src/org/eclipse/osee/framework/messaging/event/res/event/NetworkSender.java
+++ b/plugins/org.eclipse.osee.framework.messaging.event.res/src/org/eclipse/osee/framework/messaging/event/res/event/NetworkSender.java
@@ -137,4 +137,8 @@ public class NetworkSender {
return true;
}
+ public void setSessionId(String sessionId) {
+ this.sessionId = sessionId;
+ }
+
}
diff --git a/plugins/org.eclipse.osee.framework.messaging.event.res/src/org/eclipse/osee/framework/messaging/event/res/event/SkynetArtifactEventBase.java b/plugins/org.eclipse.osee.framework.messaging.event.res/src/org/eclipse/osee/framework/messaging/event/res/event/SkynetArtifactEventBase.java
deleted file mode 100644
index ca288570ea..0000000000
--- a/plugins/org.eclipse.osee.framework.messaging.event.res/src/org/eclipse/osee/framework/messaging/event/res/event/SkynetArtifactEventBase.java
+++ /dev/null
@@ -1,90 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2007 Boeing.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Boeing - initial API and implementation
- *******************************************************************************/
-package org.eclipse.osee.framework.messaging.event.res.event;
-
-import org.eclipse.osee.framework.messaging.event.res.IFrameworkArtifactEvent;
-
-/**
- * @author Robert A. Fisher
- * @author Donald G. Dunne
- */
-public class SkynetArtifactEventBase extends FrameworkEventBase implements IFrameworkArtifactEvent {
- private static final long serialVersionUID = 7923550763258313718L;
-
- private final int artId;
- private final int artTypeId;
- private final String factoryName;
- private final int transactionId;
- private final int branchId;
- private final String branchGuid;
- private final String artGuid;
- private final String artTypeGuid;
-
- public SkynetArtifactEventBase(int branchId, String branchGuid, int transactionId, int artId, String artGuid, int artTypeId, String artTypeGuid, String factoryName, NetworkSender networkSender) {
- super(networkSender);
- this.branchId = branchId;
- this.branchGuid = branchGuid;
- this.artId = artId;
- this.artGuid = artGuid;
- this.artTypeId = artTypeId;
- this.artTypeGuid = artTypeGuid;
- this.factoryName = factoryName;
- this.transactionId = transactionId;
- }
-
- public SkynetArtifactEventBase(SkynetArtifactEventBase base) {
- super(base.getNetworkSender());
- this.branchId = base.branchId;
- this.branchGuid = base.branchGuid;
- this.artId = base.artId;
- this.artGuid = base.artGuid;
- this.artTypeId = base.artTypeId;
- this.artTypeGuid = base.artTypeGuid;
- this.factoryName = base.factoryName;
- this.transactionId = base.transactionId;
- }
-
- public int getBranchId() {
- return branchId;
- }
-
- public int getTransactionId() {
- return transactionId;
- }
-
- public int getArtId() {
- return artId;
- }
-
- public int getArtTypeId() {
- return artTypeId;
- }
-
- public String getFactoryName() {
- return factoryName;
- }
-
- @Override
- public String getArtGuid() {
- return artGuid;
- }
-
- @Override
- public String getArtTypeGuid() {
- return artTypeGuid;
- }
-
- @Override
- public String getBranchGuid() {
- return branchGuid;
- }
-
-}
diff --git a/plugins/org.eclipse.osee.framework.messaging.event.res/src/org/eclipse/osee/framework/messaging/event/res/event/SkynetArtifactsEventBase.java b/plugins/org.eclipse.osee.framework.messaging.event.res/src/org/eclipse/osee/framework/messaging/event/res/event/SkynetArtifactsEventBase.java
deleted file mode 100644
index f552427759..0000000000
--- a/plugins/org.eclipse.osee.framework.messaging.event.res/src/org/eclipse/osee/framework/messaging/event/res/event/SkynetArtifactsEventBase.java
+++ /dev/null
@@ -1,64 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2007 Boeing.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Boeing - initial API and implementation
- *******************************************************************************/
-package org.eclipse.osee.framework.messaging.event.res.event;
-
-import java.util.Collection;
-import org.eclipse.osee.framework.messaging.event.res.IFrameworkEvent;
-
-/**
- * @author Donald G. Dunne
- */
-public abstract class SkynetArtifactsEventBase extends FrameworkEventBase implements IFrameworkEvent {
- private static final long serialVersionUID = 7923550763258313718L;
-
- private final Collection<Integer> artifactTypeIds;
- private final Collection<Integer> artifactIds;
- private final int branchId;
- private final Collection<String> artifactGuids;
-
- public Collection<String> getArtifactGuids() {
- return artifactGuids;
- }
-
- public SkynetArtifactsEventBase(int branchId, Collection<Integer> artifactIds, Collection<String> artifactGuids, Collection<Integer> artifactTypeIds, NetworkSender networkSender) {
- super(networkSender);
- this.branchId = branchId;
- this.artifactIds = artifactIds;
- this.artifactTypeIds = artifactTypeIds;
- this.artifactGuids = artifactGuids;
- }
-
- public int getId() {
- return branchId;
- }
-
- public Collection<Integer> getArtifactTypeIds() {
- return artifactTypeIds;
- }
-
- public Collection<Integer> getArtifactIds() {
- return artifactIds;
- }
-
- @Override
- public boolean equals(Object obj) {
- if (obj instanceof NetworkArtifactPurgeEvent) {
- return artifactIds.hashCode() == ((NetworkArtifactPurgeEvent) obj).getArtifactIds().hashCode() && artifactTypeIds.hashCode() == ((NetworkArtifactPurgeEvent) obj).getArtifactTypeIds().hashCode();
- }
- return super.equals(obj);
- }
-
- @Override
- public int hashCode() {
- return artifactIds.hashCode() + artifactTypeIds.hashCode();
- }
-
-}
diff --git a/plugins/org.eclipse.osee.framework.messaging.event.res/src/org/eclipse/osee/framework/messaging/event/res/event/SkynetRelationLinkEventBase.java b/plugins/org.eclipse.osee.framework.messaging.event.res/src/org/eclipse/osee/framework/messaging/event/res/event/SkynetRelationLinkEventBase.java
deleted file mode 100644
index eef1794124..0000000000
--- a/plugins/org.eclipse.osee.framework.messaging.event.res/src/org/eclipse/osee/framework/messaging/event/res/event/SkynetRelationLinkEventBase.java
+++ /dev/null
@@ -1,85 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2007 Boeing.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Boeing - initial API and implementation
- *******************************************************************************/
-package org.eclipse.osee.framework.messaging.event.res.event;
-
-import org.eclipse.osee.framework.messaging.event.res.IFrameworkRelationLinkEvent;
-
-/**
- * @author Robert A. Fisher
- */
-public class SkynetRelationLinkEventBase extends FrameworkEventBase implements IFrameworkRelationLinkEvent {
- private static final long serialVersionUID = 154870900652138769L;
-
- private final Integer relId;
- private final int relTypeId;
- private final int artAId;
- private final int artATypeId;
- private final int artBId;
- private final int artBTypeId;
- private final int gammaId;
- private final int branchId;
-
- public SkynetRelationLinkEventBase(int gammaId, int branchId, int relId, int artAId, int artATypeId, int artBId, int artBTypeId, int relTypeId, NetworkSender networkSender) {
- super(networkSender);
- this.branchId = branchId;
- this.relId = relId;
- this.artAId = artAId;
- this.artATypeId = artATypeId;
- this.artBId = artBId;
- this.gammaId = gammaId;
- this.relTypeId = relTypeId;
- this.artBTypeId = artBTypeId;
- }
-
- public SkynetRelationLinkEventBase(SkynetRelationLinkEventBase base) {
- super(base.getNetworkSender());
- this.branchId = base.branchId;
- this.relId = base.relId;
- this.artAId = base.artAId;
- this.artATypeId = base.artATypeId;
- this.artBId = base.artBId;
- this.gammaId = base.gammaId;
- this.relTypeId = base.relTypeId;
- this.artBTypeId = base.artBTypeId;
- }
-
- public int getId() {
- return branchId;
- }
-
- public int getArtATypeId() {
- return artATypeId;
- }
-
- public int getArtBTypeId() {
- return artBTypeId;
- }
-
- public int getArtAId() {
- return artAId;
- }
-
- public int getArtBId() {
- return artBId;
- }
-
- public Integer getRelId() {
- return relId;
- }
-
- public Integer getGammaId() {
- return gammaId;
- }
-
- public int getRelTypeId() {
- return relTypeId;
- }
-}

Back to the top