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: * @author Antony Lodge
054: */
055: public class WMAAttributeChangedActualEvent extends WMARemoteAuditBase {
056: private String attributeName;
057: private int attributeType;
058: private int attributeLength;
059: private String attributeValue;
060: private int previousAttributeLength;
061: private String previousAttributeValue;
062:
063: public WMAAttributeChangedActualEvent() {
064: }
065:
066: /**
067: * @param cwadPrefix
068: * @param messageId
069: * @param extensionNumber
070: * @param extensionType
071: * @param sourceConversationId
072: * @param targetConversationId
073: */
074: public WMAAttributeChangedActualEvent(CWADPrefix cwadPrefix,
075: String messageId, short extensionNumber,
076: String extensionType, String sourceConversationId,
077: String targetConversationId) {
078:
079: super (cwadPrefix, messageId, extensionNumber, extensionType,
080: sourceConversationId, targetConversationId);
081: }
082:
083: /**
084: * @param cwadPrefix
085: * @param messageId
086: * @param extensionNumber
087: * @param extensionType
088: * @param sourceConversationId
089: * @param targetConversationId
090: * @param attributeName
091: * @param attributeType
092: * @param attributeLength
093: * @param attributeValue
094: * @param previousAttributeLength
095: * @param previousAttributeValue
096: */
097: public WMAAttributeChangedActualEvent(CWADPrefix cwadPrefix,
098: String messageId, short extensionNumber,
099: String extensionType, String sourceConversationId,
100: String targetConversationId, String attributeName,
101: int attributeType, int attributeLength,
102: String attributeValue, int previousAttributeLength,
103: String previousAttributeValue) {
104:
105: super (cwadPrefix, messageId, extensionNumber, extensionType,
106: sourceConversationId, targetConversationId);
107:
108: this .attributeName = attributeName;
109: this .attributeType = attributeType;
110: this .attributeLength = attributeLength;
111: this .attributeValue = attributeValue;
112: this .previousAttributeLength = previousAttributeLength;
113: this .previousAttributeValue = previousAttributeValue;
114: }
115:
116: /**
117: * @return Name of attribute requested
118: */
119: public String getAttributeName() {
120: return attributeName;
121: }
122:
123: /**
124: * @param attributeName Name of attribute requested
125: */
126: public void setAttributeName(String attributeName) {
127: this .attributeName = attributeName;
128: }
129:
130: /**
131: * @return Type of attribute requested
132: */
133: public int getAttributeType() {
134: return attributeType;
135: }
136:
137: /**
138: * @param attributeType Type of attribute requested
139: */
140: public void setAttributeType(int attributeType) {
141: this .attributeType = attributeType;
142: }
143:
144: /**
145: * @return The attribute length.
146: */
147: public int getAttributeLength() {
148: return attributeLength;
149: }
150:
151: /**
152: * @param attributeLength Length of requested attribute
153: */
154: public void setAttributeLength(int attributeLength) {
155: this .attributeLength = attributeLength;
156: }
157:
158: /**
159: * @return Length of requested attribute
160: */
161: public String getAttributeValue() {
162: return attributeValue;
163: }
164:
165: /**
166: * @param attributeValue
167: */
168: public void setAttributeValue(String attributeValue) {
169: this .attributeValue = attributeValue;
170: }
171:
172: /**
173: * @return The previous attribute length.
174: */
175: public int getPreviousAttributeLength() {
176: return previousAttributeLength;
177: }
178:
179: /**
180: * @param previousAttributeLength
181: */
182: public void setPreviousAttributeLength(int previousAttributeLength) {
183: this .previousAttributeLength = previousAttributeLength;
184: }
185:
186: /**
187: * @return The previous attribute value.
188: */
189: public String getPreviousAttributeValue() {
190: return previousAttributeValue;
191: }
192:
193: /**
194: * @param previousAttributeValue
195: */
196: public void setPreviousAttributeValue(String previousAttributeValue) {
197: this .previousAttributeValue = previousAttributeValue;
198: }
199:
200: public String toString() {
201: return "WMAAttributeChangedActualEvent@"
202: + System.identityHashCode(this ) + '[' + " cwadPrefix="
203: + formatCwadPrefix() + ", messageId=" + getMessageId()
204: + ", attributeName='" + attributeName + '\''
205: + ", attributeType=" + attributeType
206: + ", attributeLength=" + attributeLength
207: + ", attributeValue='" + attributeValue + '\''
208: + ", previousAttributeLength="
209: + previousAttributeLength
210: + ", previousAttributeValue='" + previousAttributeValue
211: + '\'' + ", extensionNumber=" + getExtensionNumber()
212: + ", extensionType='" + getExtensionType() + '\''
213: + ", sourceConversationId='"
214: + getSourceConversationId() + '\''
215: + ", targetConversationId='"
216: + getTargetConversationId() + '\'' + ']';
217: }
218: }
|