Revision: 14974
Author: brainslog
Date: Tue Nov  2 11:45:18 2010
Log: Reverting some changes for "Improve sessions and messages with all relevant setter/getters"

Update Issue #1257
Reverted changes due to incomplete methods.
http://code.google.com/p/mobicents/source/detail?r=14974

Modified:
/trunk/servers/diameter/core/jdiameter/api/src/main/java/org/jdiameter/api/acc/events/AccountAnswer.java /trunk/servers/diameter/core/jdiameter/api/src/main/java/org/jdiameter/api/acc/events/AccountRequest.java /trunk/servers/diameter/core/jdiameter/api/src/main/java/org/jdiameter/api/auth/events/AbortSessionAnswer.java /trunk/servers/diameter/core/jdiameter/api/src/main/java/org/jdiameter/api/auth/events/AbortSessionRequest.java /trunk/servers/diameter/core/jdiameter/api/src/main/java/org/jdiameter/api/auth/events/ReAuthAnswer.java /trunk/servers/diameter/core/jdiameter/api/src/main/java/org/jdiameter/api/auth/events/ReAuthRequest.java /trunk/servers/diameter/core/jdiameter/api/src/main/java/org/jdiameter/api/auth/events/SessionTermAnswer.java /trunk/servers/diameter/core/jdiameter/api/src/main/java/org/jdiameter/api/auth/events/SessionTermRequest.java /trunk/servers/diameter/core/jdiameter/api/src/main/java/org/jdiameter/api/cca/events/JCreditControlAnswer.java /trunk/servers/diameter/core/jdiameter/api/src/main/java/org/jdiameter/api/cca/events/JCreditControlRequest.java

=======================================
--- /trunk/servers/diameter/core/jdiameter/api/src/main/java/org/jdiameter/api/acc/events/AccountAnswer.java Tue Nov 2 10:11:58 2010 +++ /trunk/servers/diameter/core/jdiameter/api/src/main/java/org/jdiameter/api/acc/events/AccountAnswer.java Tue Nov 2 11:45:18 2010
@@ -10,7 +10,6 @@
 package org.jdiameter.api.acc.events;

 import org.jdiameter.api.AvpDataException;
-import org.jdiameter.api.AvpSet;
 import org.jdiameter.api.app.AppAnswerEvent;

 /**
@@ -26,77 +25,16 @@

   public static final int code = 271;

-  boolean hasAccountingRecordType();
-
+  /**
+   * @return Record type of answer
+ * @throws org.jdiameter.api.AvpDataException if result code avp is not integer
+   */
   int getAccountingRecordType() throws AvpDataException;

-  void setAccountingRecordType(int val);
-
-  boolean hasAccountingRecordNumber();
-
+  /**
+   * @return record number
+   * @throws AvpDataException if result code avp is not integer
+   */
   long getAccountingRecordNumber() throws AvpDataException;

-  void setAccountingRecordNumber(long val);
-
-  boolean hasAcctApplicationId();
-
-  long getAcctApplicationId() throws AvpDataException;
-
-  void setAcctApplicationId(long val);
-
-  boolean hasVendorSpecificApplicationId();
-
-  AvpSet getVendorSpecificApplicationId() throws AvpDataException;
-
- void setVendorSpecificApplicationId(long vendorId, long appId, boolean isAuthApp);
-
-  boolean hasUserName();
-
-  String getUserName() throws AvpDataException;
-
-  void setUserName(String val);
-
-  boolean hasAcctSubSessionId();
-
-  long getAcctSubSessionId() throws AvpDataException;
-
-  void setAcctSubSessionId(long val);
-
-  boolean hasAcctSessionId();
-
-  String getAcctSessionId() throws AvpDataException;
-
-  void setAcctSessionId(String val);
-
-  boolean hasAcctMultiSessionId();
-
-  String getAcctMultiSessionId() throws AvpDataException;
-
-  void setAcctMultiSessionId(String val);
-
-  boolean hasAcctInterimInterval();
-
-  long getAcctInterimInterval() throws AvpDataException;
-
-  void setAcctInterimInterval(long val);
-
-  boolean hasAccountingRealtimeRequired();
-
-  int getAccountingRealtimeRequired() throws AvpDataException;
-
-  void setAccountingRealtimeRequired(int val);
-
-  long getOriginStateId() throws AvpDataException;
-
-  boolean hasOriginStateId();
-
-  void setOriginStateId(long val);
-
-  // octet string
-  boolean hasEventTimestamp();
-
-  String getEventTimestamp() throws AvpDataException;
-
-  void setEventTimestamp(String val);
-
-}
+}
=======================================
--- /trunk/servers/diameter/core/jdiameter/api/src/main/java/org/jdiameter/api/acc/events/AccountRequest.java Tue Nov 2 10:11:58 2010 +++ /trunk/servers/diameter/core/jdiameter/api/src/main/java/org/jdiameter/api/acc/events/AccountRequest.java Tue Nov 2 11:45:18 2010
@@ -10,7 +10,6 @@
 package org.jdiameter.api.acc.events;

 import org.jdiameter.api.AvpDataException;
-import org.jdiameter.api.AvpSet;
 import org.jdiameter.api.app.AppRequestEvent;

 /**
@@ -25,77 +24,16 @@

   public static final int code = 271;

-  boolean hasAccountingRecordType();
-
+  /**
+   * @return Record type of request
+   * @throws AvpDataException if result code avp is not integer
+   */
   int getAccountingRecordType() throws AvpDataException;

-  void setAccountingRecordType(int val);
-
-  boolean hasAccountingRecordNumber();
-
+  /**
+   * @return record number
+   * @throws AvpDataException if result code avp is not integer
+   */
   long getAccountingRecordNumber() throws AvpDataException;

-  void setAccountingRecordNumber(long val);
-
-  boolean hasAcctApplicationId();
-
-  long getAcctApplicationId() throws AvpDataException;
-
-  void setAcctApplicationId(long val);
-
-  boolean hasVendorSpecificApplicationId();
-
-  AvpSet getVendorSpecificApplicationId() throws AvpDataException;
-
- void setVendorSpecificApplicationId(long vendorId, long appId, boolean isAuthApp);
-
-  boolean hasUserName();
-
-  String getUserName() throws AvpDataException;
-
-  void setUserName(String val);
-
-  boolean hasAcctSubSessionId();
-
-  long getAcctSubSessionId() throws AvpDataException;
-
-  void setAcctSubSessionId(long val);
-
-  boolean hasAcctSessionId();
-
-  String getAcctSessionId() throws AvpDataException;
-
-  void setAcctSessionId(String val);
-
-  boolean hasAcctMultiSessionId();
-
-  String getAcctMultiSessionId() throws AvpDataException;
-
-  void setAcctMultiSessionId(String val);
-
-  boolean hasAcctInterimInterval();
-
-  long getAcctInterimInterval() throws AvpDataException;
-
-  void setAcctInterimInterval(long val);
-
-  boolean hasAccountingRealtimeRequired();
-
-  int getAccountingRealtimeRequired() throws AvpDataException;
-
-  void setAccountingRealtimeRequired(int val);
-
-  long getOriginStateId() throws AvpDataException;
-
-  boolean hasOriginStateId();
-
-  void setOriginStateId(long val);
-
-  // octet string
-  boolean hasEventTimestamp();
-
-  String getEventTimestamp() throws AvpDataException;
-
-  void setEventTimestamp(String val);
-
-}
+}
=======================================
--- /trunk/servers/diameter/core/jdiameter/api/src/main/java/org/jdiameter/api/auth/events/AbortSessionAnswer.java Tue Nov 2 10:11:58 2010 +++ /trunk/servers/diameter/core/jdiameter/api/src/main/java/org/jdiameter/api/auth/events/AbortSessionAnswer.java Tue Nov 2 11:45:18 2010
@@ -9,7 +9,6 @@
  */
 package org.jdiameter.api.auth.events;

-import org.jdiameter.api.AvpDataException;
 import org.jdiameter.api.app.AppAnswerEvent;

 /**
@@ -26,21 +25,4 @@

   public static final int code = 274;

-  long getOriginStateId() throws AvpDataException;
-
-  boolean hasOriginStateId();
-
-  void setOriginStateId(long val);
-
-  boolean hasTerminationCause();
-
-  int getTerminationCause() throws AvpDataException;
-
-  void setTerminationCause(int val);
-
-  boolean hasUserName();
-
-  String getUserName() throws AvpDataException;
-
-  void setUserName(String val);
-}
+}
=======================================
--- /trunk/servers/diameter/core/jdiameter/api/src/main/java/org/jdiameter/api/auth/events/AbortSessionRequest.java Tue Nov 2 10:11:58 2010 +++ /trunk/servers/diameter/core/jdiameter/api/src/main/java/org/jdiameter/api/auth/events/AbortSessionRequest.java Tue Nov 2 11:45:18 2010
@@ -27,32 +27,8 @@

   /**
    * Return Auth-Application-Id value of request
-   *
    * @return Auth-Application-Id value of request
-   * @throws org.jdiameter.api.AvpDataException
-   *             if avp is not integer
+   * @throws org.jdiameter.api.AvpDataException if avp is not integer
    */
-  long getAuthApplicationId() throws AvpDataException;
-
-  boolean hasAuthApplicationId();
-
-  void setAuthApplicationId(long val);
-
-  long getOriginStateId() throws AvpDataException;
-
-  boolean hasOriginStateId();
-
-  void setOriginStateId(long val);
-
-  boolean hasTerminationCause();
-
-  int getTerminationCause() throws AvpDataException;
-
-  void setTerminationCause(int val);
-
-  boolean hasUserName();
-
-  String getUserName() throws AvpDataException;
-
-  void setUserName(String val);
-}
+  long getAuthApplicationId()  throws AvpDataException;
+}
=======================================
--- /trunk/servers/diameter/core/jdiameter/api/src/main/java/org/jdiameter/api/auth/events/ReAuthAnswer.java Tue Nov 2 10:11:58 2010 +++ /trunk/servers/diameter/core/jdiameter/api/src/main/java/org/jdiameter/api/auth/events/ReAuthAnswer.java Tue Nov 2 11:45:18 2010
@@ -9,7 +9,6 @@
  */
 package org.jdiameter.api.auth.events;

-import org.jdiameter.api.AvpDataException;
 import org.jdiameter.api.app.AppAnswerEvent;

 /**
@@ -26,15 +25,4 @@

   public static final int code = 258;

-  long getOriginStateId() throws AvpDataException;
-
-  boolean hasOriginStateId();
-
-  void setOriginStateId(long val);
-
-  boolean hasUserName();
-
-  String getUserName() throws AvpDataException;
-
-  void setUserName(String val);
-}
+}
=======================================
--- /trunk/servers/diameter/core/jdiameter/api/src/main/java/org/jdiameter/api/auth/events/ReAuthRequest.java Tue Nov 2 10:11:58 2010 +++ /trunk/servers/diameter/core/jdiameter/api/src/main/java/org/jdiameter/api/auth/events/ReAuthRequest.java Tue Nov 2 11:45:18 2010
@@ -25,53 +25,18 @@

   public static final int code = 258;

-  boolean hasAcctInterimInterval();
-
-  long getAcctInterimInterval() throws AvpDataException;
-
-  void setAcctInterimInterval(long val);
-
-  boolean hasAccountingRealtimeRequired();
-
-  int getAccountingRealtimeRequired() throws AvpDataException;
-
-  void setAccountingRealtimeRequired(int val);
-
-  long getOriginStateId() throws AvpDataException;
-
-  boolean hasOriginStateId();
-
-  void setOriginStateId(long val);
-
   /**
    * Return re-authentication request type
-   *
    * @return re-authentication request type
-   * @throws org.jdiameter.api.AvpDataException
-   *             if avp is not integer
+   * @throws org.jdiameter.api.AvpDataException if avp is not integer
    */
   int getReAuthRequestType() throws AvpDataException;

-  boolean hasReAuthRequestType();
-
-  void setReAuthRequestType(int val);
-
   /**
    * Return Auth-Application-Id value of request
-   *
    * @return Auth-Application-Id value of request
-   * @throws org.jdiameter.api.AvpDataException
-   *             if avp is not integer
+   * @throws AvpDataException if avp is not integer
    */
-  long getAuthApplicationId() throws AvpDataException;
-
-  boolean hasAuthApplicationId();
-
-  void setAuthApplicationId(long val);
-
-  boolean hasUserName();
-
-  String getUserName() throws AvpDataException;
-
-  void setUserName(String val);
-}
+  long getAuthApplicationId()  throws AvpDataException;
+
+}
=======================================
--- /trunk/servers/diameter/core/jdiameter/api/src/main/java/org/jdiameter/api/auth/events/SessionTermAnswer.java Tue Nov 2 10:11:58 2010 +++ /trunk/servers/diameter/core/jdiameter/api/src/main/java/org/jdiameter/api/auth/events/SessionTermAnswer.java Tue Nov 2 11:45:18 2010
@@ -9,7 +9,6 @@
  */
 package org.jdiameter.api.auth.events;

-import org.jdiameter.api.AvpDataException;
 import org.jdiameter.api.app.AppAnswerEvent;

 /**
@@ -26,16 +25,4 @@

   public static final int code = 275;

-  long getOriginStateId() throws AvpDataException;
-
-  boolean hasOriginStateId();
-
-  void setOriginStateId(long val);
-
-  boolean hasUserName();
-
-  String getUserName() throws AvpDataException;
-
-  void setUserName(String val);
-
-}
+}
=======================================
--- /trunk/servers/diameter/core/jdiameter/api/src/main/java/org/jdiameter/api/auth/events/SessionTermRequest.java Tue Nov 2 10:11:58 2010 +++ /trunk/servers/diameter/core/jdiameter/api/src/main/java/org/jdiameter/api/auth/events/SessionTermRequest.java Tue Nov 2 11:45:18 2010
@@ -25,27 +25,16 @@

   public static final int code = 275;

+  /**
+   * @return Auth-Application-Id value of request
+   * @throws AvpDataException if result code avp is not integer
+   */
   long getAuthApplicationId() throws AvpDataException;

-  boolean hasAuthApplicationId();
-
-  void setAuthApplicationId(long val);
-
-  long getOriginStateId() throws AvpDataException;
-
-  boolean hasOriginStateId();
-
-  void setOriginStateId(long val);
-
-  boolean hasTerminationCause();
-
+  /**
+   * @return termination cause
+   * @throws AvpDataException if result code avp is not integer
+   */
   int getTerminationCause() throws AvpDataException;

-  void setTerminationCause(int val);
-
-  boolean hasUserName();
-
-  String getUserName() throws AvpDataException;
-
-  void setUserName(String val);
-}
+}
=======================================
--- /trunk/servers/diameter/core/jdiameter/api/src/main/java/org/jdiameter/api/cca/events/JCreditControlAnswer.java Tue Nov 2 10:17:24 2010 +++ /trunk/servers/diameter/core/jdiameter/api/src/main/java/org/jdiameter/api/cca/events/JCreditControlAnswer.java Tue Nov 2 11:45:18 2010
@@ -1,6 +1,6 @@
 package org.jdiameter.api.cca.events;

-import org.jdiameter.api.AvpDataException;
+import org.jdiameter.api.Avp;
 import org.jdiameter.api.app.AppAnswerEvent;

 /**
@@ -22,77 +22,18 @@

   public static final int code = 272;

-  boolean hasAcctMultiSessionId();
-
-  String getAcctMultiSessionId() throws AvpDataException;
-
-  void setAcctMultiSessionId(String val);
-
-  long getAuthApplicationId() throws AvpDataException;
-
-  boolean hasAuthApplicationId();
-
-  void setAuthApplicationId(long val);
-
-  long getCCRequestNumber() throws AvpDataException;
-
-  boolean hasCCRequestNumber();
-
-  void setCCRequestNumber(long val);
-
-  int getCCRequestType() throws AvpDataException;
-
-  boolean hasCCRequestType();
-
-  void setCCRequestType(int val);
-
-  long getCCSubSessionId() throws AvpDataException;
-
-  boolean hasCCSubSessionId();
-
-  void setCCSubSessionId(long val);
-
-  int getCheckBalanceResult() throws AvpDataException;
-
-  boolean hasCheckBalanceResult();
-
-  void setCheckBalanceResult(int val);
-
-  int getCCFailureHandling() throws AvpDataException;
-
-  boolean hasCCFailureHandling();
-
-  void setCCFailureHandling(int val);
-
-  int getDDFailureHandling() throws AvpDataException;
-
-  boolean hasDDFailureHandling();
-
-  void setDDFailureHandling(int val);
-
-  boolean hasEventTimestamp();
-
-  String getEventTimestamp() throws AvpDataException;
-
-  void setEventTimestamp(String val);
-
-  long getOriginStateId() throws AvpDataException;
-
-  boolean hasOriginStateId();
-
-  void setOriginStateId(long val);
-
-  boolean hasUserName();
-
-  String getUserName() throws AvpDataException;
-
-  void setUserName(String val);
-
-  //unsigned32
-  boolean hasValidityTime();
-
-  long getValidityTime() throws AvpDataException;
-
-  void setValidityTime(long val);
+  boolean isCreditControlFailureHandlingAVPPresent();
+
+  int getCredidControlFailureHandlingAVPValue();
+
+  boolean isDirectDebitingFailureHandlingAVPPresent();
+
+  int getDirectDebitingFailureHandlingAVPValue();
+
+  boolean isRequestTypeAVPPresent();
+
+  int getRequestTypeAVPValue();
+
+  Avp getValidityTimeAvp();

 }
=======================================
--- /trunk/servers/diameter/core/jdiameter/api/src/main/java/org/jdiameter/api/cca/events/JCreditControlRequest.java Tue Nov 2 10:17:24 2010 +++ /trunk/servers/diameter/core/jdiameter/api/src/main/java/org/jdiameter/api/cca/events/JCreditControlRequest.java Tue Nov 2 11:45:18 2010
@@ -1,6 +1,5 @@
 package org.jdiameter.api.cca.events;

-import org.jdiameter.api.AvpDataException;
 import org.jdiameter.api.app.AppRequestEvent;

 /**
@@ -22,88 +21,12 @@

   public static final int code = 272;

-  boolean hasAcctMultiSessionId();
-
-  String getAcctMultiSessionId() throws AvpDataException;
-
-  void setAcctMultiSessionId(String val);
-
-  long getAuthApplicationId() throws AvpDataException;
-
-  boolean hasAuthApplicationId();
-
-  void setAuthApplicationId(long val);
-
-  String getCCCorrelationId() throws AvpDataException;
-
-  boolean hasCCCorrelationId();
-
-  void setCCCorrelationId(String val);
-
-  long getCCRequestNumber() throws AvpDataException;
-
-  boolean hasCCRequestNumber();
-
-  void setCCRequestNumber(long val);
-
-  int getCCRequestType() throws AvpDataException;
-
-  boolean hasCCRequestType();
-
-  void setCCRequestType(int val);
-
-  long getCCSubSessionId() throws AvpDataException;
-
-  boolean hasCCSubSessionId();
-
-  void setCCSubSessionId(long val);
-
-  boolean hasEventTimestamp();
-
-  String getEventTimestamp() throws AvpDataException;
-
-  void setEventTimestamp(String val);
-
-  long getOriginStateId() throws AvpDataException;
-
-  boolean hasOriginStateId();
-
-  void setOriginStateId(long val);
-
-  int getMultiServicesIndicator() throws AvpDataException;
-
-  boolean hasMultiServicesIndicator();
-
-  void setMultiServicesIndicator(int val);
-
-  int getRequestedAction() throws AvpDataException;
-
-  boolean hasRequestedAction();
-
-  void setRequestedAction(int val);
-
-  long getServiceId() throws AvpDataException;
-
-  boolean hasServiceId();
-
-  void setServiceId(long val);
-
-  String getServiceContextId() throws AvpDataException;
-
-  boolean hasServiceContextId();
-
-  void setServiceContextId(String val);
-
-  boolean hasTerminationCause();
-
-  int getTerminationCause() throws AvpDataException;
-
-  void setTerminationCause(int val);
-
-  boolean hasUserName();
-
-  String getUserName() throws AvpDataException;
-
-  void setUserName(String val);
+  boolean isRequestedActionAVPPresent();
+
+  int getRequestedActionAVPValue();
+
+  boolean isRequestTypeAVPPresent();
+
+  int getRequestTypeAVPValue();

 }

Reply via email to