001: /*--
002:
003: Copyright (C) 2002 Anthony Eden.
004: All rights reserved.
005:
006: Redistribution and use in source and binary forms, with or without
007: modification, are permitted provided that the following conditions
008: are met:
009:
010: 1. Redistributions of source code must retain the above copyright
011: notice, this list of conditions, and the following disclaimer.
012:
013: 2. Redistributions in binary form must reproduce the above copyright
014: notice, this list of conditions, and the disclaimer that follows
015: these conditions in the documentation and/or other materials
016: provided with the distribution.
017:
018: 3. The names "OBE" and "Open Business Engine" must not be used to
019: endorse or promote products derived from this software without prior
020: written permission. For written permission, please contact
021: me@anthonyeden.com.
022:
023: 4. Products derived from this software may not be called "OBE" or
024: "Open Business Engine", nor may "OBE" or "Open Business Engine"
025: appear in their name, without prior written permission from
026: Anthony Eden (me@anthonyeden.com).
027:
028: In addition, I request (but do not require) that you include in the
029: end-user documentation provided with the redistribution and/or in the
030: software itself an acknowledgement equivalent to the following:
031: "This product includes software developed by
032: Anthony Eden (http://www.anthonyeden.com/)."
033:
034: THIS SOFTWARE IS PROVIdED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
035: WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
036: OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
037: DISCLAIMED. IN NO EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY DIRECT,
038: INDIRECT, INCIdENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
039: (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
040: SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
041: HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
042: STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
043: IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
044: POSSIBILITY OF SUCH DAMAGE.
045:
046: For more information on OBE, please see <http://obe.sourceforge.net/>.
047:
048: */
049:
050: package org.wfmc.audit;
051:
052: /**
053: * Base class for all Interface 4-related audit entries.
054: *
055: * @author Antony Lodge
056: */
057: public abstract class WMARemoteAuditBase extends WMAAuditEntry {
058: private static final long serialVersionUID = -3442734110797076316L;
059:
060: private String messageId;
061: private short extensionNumber;
062: private String extensionType;
063: private String sourceConversationId;
064: private String targetConversationId;
065:
066: protected WMARemoteAuditBase() {
067: }
068:
069: /**
070: * @param cwadPrefix
071: * @param messageId
072: * @param extensionNumber
073: * @param extensionType
074: * @param sourceConversationId
075: * @param targetConversationId
076: */
077: protected WMARemoteAuditBase(CWADPrefix cwadPrefix,
078: String messageId, short extensionNumber,
079: String extensionType, String sourceConversationId,
080: String targetConversationId) {
081:
082: super (cwadPrefix);
083: this .messageId = messageId;
084: this .extensionNumber = extensionNumber;
085: this .extensionType = extensionType;
086: this .sourceConversationId = sourceConversationId;
087: this .targetConversationId = targetConversationId;
088: }
089:
090: /**
091: * @return Message Id associated with event
092: */
093: public String getMessageId() {
094: return messageId;
095: }
096:
097: /**
098: * @param messageId Message Id associated with event
099: */
100: public void setMessageId(String messageId) {
101: this .messageId = messageId;
102: }
103:
104: /**
105: * @return The extension number.
106: */
107: public short getExtensionNumber() {
108: return extensionNumber;
109: }
110:
111: /**
112: * @param extensionNumber
113: */
114: public void setExtensionNumber(short extensionNumber) {
115: this .extensionNumber = extensionNumber;
116: }
117:
118: /**
119: * @return The extension type.
120: */
121: public String getExtensionType() {
122: return extensionType;
123: }
124:
125: /**
126: * @param extensionType
127: */
128: public void setExtensionType(String extensionType) {
129: this .extensionType = extensionType;
130: }
131:
132: /**
133: * @return As supplied by the source Workflow Engine or by the transport
134: * mechanism
135: */
136: public String getSourceConversationId() {
137: return sourceConversationId;
138: }
139:
140: /**
141: * @param sourceConversationId As supplied by the source Workflow Engine or
142: * by the transport mechanism
143: */
144: public void setSourceConversationId(String sourceConversationId) {
145: this .sourceConversationId = sourceConversationId;
146: }
147:
148: /**
149: * @return As supplied by the target Workflow Engine or by the transport
150: * mechanism
151: */
152: public String getTargetConversationId() {
153: return targetConversationId;
154: }
155:
156: /**
157: * @param targetConversationId As supplied by the target Workflow Engine or
158: * by the transport mechanism
159: */
160: public void setTargetConversationId(String targetConversationId) {
161: this .targetConversationId = targetConversationId;
162: }
163:
164: public String toString() {
165: return "WMARemoteAuditBase@" + System.identityHashCode(this )
166: + '[' + ", messageId=" + messageId
167: + ", extensionNumber=" + extensionNumber
168: + ", extensionType='" + extensionType + '\''
169: + ", sourceConversationId='" + sourceConversationId
170: + '\'' + ", targetConversationId='"
171: + targetConversationId + '\'' + ']';
172: }
173: }
|