Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 438b7deb53413220f44317e35ffa1aeb36862f2f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/*******************************************************************************
 * Copyright (c) 2004 Composent, Inc. and others. 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: Composent, Inc. - initial API and implementation
 ******************************************************************************/
package org.eclipse.ecf.core.sharedobject.events;

import java.io.Serializable;
import org.eclipse.ecf.core.identity.ID;
import org.eclipse.ecf.core.util.Event;

public class SharedObjectCommitEvent implements ISharedObjectCommitEvent, Serializable {
	private static final long serialVersionUID = 4615634472917480497L;

	ID senderSharedObjectID = null;

	Event event = null;

	public SharedObjectCommitEvent(ID senderSharedObjectID, Event event) {
		super();
		this.senderSharedObjectID = senderSharedObjectID;
		this.event = event;
	}

	public SharedObjectCommitEvent(ID senderSharedObjectID) {
		this(senderSharedObjectID, null);
	}

	public ID getSenderSharedObjectID() {
		return senderSharedObjectID;
	}

	public Event getEvent() {
		return event;
	}

	public String toString() {
		StringBuffer sb = new StringBuffer("SharedObjectCommitEvent["); //$NON-NLS-1$
		sb.append(getSenderSharedObjectID()).append(";"); //$NON-NLS-1$
		sb.append(getEvent()).append("]"); //$NON-NLS-1$
		return sb.toString();
	}
}

Back to the top