java.lang.Object
java.util.Observable
oracle.communication.brm.charging.appconfiguration.AbstractConfigurationBean
oracle.communication.brm.charging.appconfiguration.beans.housekeeping.ExpirationConfiguration
All Implemented Interfaces:
Cloneable, ExpirationConfigurationMBean, oracle.communication.brm.charging.appconfiguration.ConfigurationBean, oracle.communication.brm.charging.util.directevolution.DEvolvable

public class ExpirationConfiguration extends oracle.communication.brm.charging.appconfiguration.AbstractConfigurationBean implements ExpirationConfigurationMBean
Configuration for expiration interval for various objects.
  • Field Details

    • POF_EXPIRED_AUDIT_RETENTION_INTERVAL

      public static final int POF_EXPIRED_AUDIT_RETENTION_INTERVAL
      See Also:
    • POF_EXPIRED_PURCHASED_CHARGES_RETENTION_INTERVAL

      public static final int POF_EXPIRED_PURCHASED_CHARGES_RETENTION_INTERVAL
      See Also:
    • POF_EXPIRED_PURCHASED_ALTERATION_RETENTION_INTERVAL

      public static final int POF_EXPIRED_PURCHASED_ALTERATION_RETENTION_INTERVAL
      See Also:
    • POF_EXPIRED_RATING_PROFILE_RETENTION_INTERVAL

      public static final int POF_EXPIRED_RATING_PROFILE_RETENTION_INTERVAL
      See Also:
    • POF_DEFAULT_EXPIRATION_RETENTION_INTERVAL

      public static final int POF_DEFAULT_EXPIRATION_RETENTION_INTERVAL
      See Also:
    • POF_DEFAULT_EXPIRED_BALANCE_ITEM_RETENTION_INTERVAL

      public static final int POF_DEFAULT_EXPIRED_BALANCE_ITEM_RETENTION_INTERVAL
      See Also:
    • POF_BALANCE_ITEM_EXPIRATION_MAP

      public static final int POF_BALANCE_ITEM_EXPIRATION_MAP
      See Also:
    • POF_DEFAULT_RB_RETENTION_INTERVAL

      public static final int POF_DEFAULT_RB_RETENTION_INTERVAL
      See Also:
    • POF_EXPIRED_ASO_RETENTION_INTERVAL

      public static final int POF_EXPIRED_ASO_RETENTION_INTERVAL
      See Also:
    • POF_DEBIT_REFUND_SESSION_CLEAN_UP_INTERVAL

      public static final int POF_DEBIT_REFUND_SESSION_CLEAN_UP_INTERVAL
      See Also:
    • DEFAULT_EXPIRED_AUDIT_RETENTION_INTERVAL

      public static final Long DEFAULT_EXPIRED_AUDIT_RETENTION_INTERVAL
    • DEFAULT_PURCHASED_CHARGES_RETENTION_INTERVAL

      public static final Long DEFAULT_PURCHASED_CHARGES_RETENTION_INTERVAL
    • DEFAULT_PURCHASED_ALTERATION_RETENTION_INTERVAL

      public static final Long DEFAULT_PURCHASED_ALTERATION_RETENTION_INTERVAL
    • DEFAULT_RATING_PROFILE_RETENTION_INTERVAL

      public static final Long DEFAULT_RATING_PROFILE_RETENTION_INTERVAL
    • DEFAULT__RETENTION_INTERVAL

      public static final Long DEFAULT__RETENTION_INTERVAL
    • DEFAULT_BALANCE_ITEM_RETENTION_INTERVAL

      public static final Long DEFAULT_BALANCE_ITEM_RETENTION_INTERVAL
    • DEFAULT_BUNDLE_HITORY_RETENTION_INTERVAL

      public static final Long DEFAULT_BUNDLE_HITORY_RETENTION_INTERVAL
    • DEFAULT_EXPIRED_ASO_RETENTION_INTERVAL

      public static final Long DEFAULT_EXPIRED_ASO_RETENTION_INTERVAL
    • DEFAULT_DEBIT_REFUND_SESSION_CLEAN_UP_INTERVAL

      public static final Long DEFAULT_DEBIT_REFUND_SESSION_CLEAN_UP_INTERVAL
  • Constructor Details

    • ExpirationConfiguration

      public ExpirationConfiguration()
      Constructor for Expiration configuration bean. Initializes the balance item configuration map
  • Method Details

    • createInstance

      public oracle.communication.brm.charging.util.directevolution.DEvolvable createInstance()
      Specified by:
      createInstance in interface oracle.communication.brm.charging.util.directevolution.DEvolvable
    • giveInitializerTo

      public void giveInitializerTo(oracle.communication.brm.charging.util.directevolution.DEvolvableHelper evolvableHelper)
      Specified by:
      giveInitializerTo in interface oracle.communication.brm.charging.util.directevolution.DEvolvable
      Overrides:
      giveInitializerTo in class oracle.communication.brm.charging.appconfiguration.AbstractConfigurationBean
    • getExpiredAuditRetentionIntervalInDays

      public Integer getExpiredAuditRetentionIntervalInDays()
      Description copied from interface: ExpirationConfigurationMBean
      Returns the interval in days, which is the duration for which audit objects need to be retained in the ECE system since the time audit objects were created.
      Specified by:
      getExpiredAuditRetentionIntervalInDays in interface ExpirationConfigurationMBean
      Returns:
      duration in days for which audit objects need to be retained.
    • getExpiredPurchasedChargesRetentionIntervalInDays

      public Integer getExpiredPurchasedChargesRetentionIntervalInDays()
      Description copied from interface: ExpirationConfigurationMBean
      Returns the interval in days, which is the duration for which expired purchased charge offerings need to be retained in the ECE system.
      Specified by:
      getExpiredPurchasedChargesRetentionIntervalInDays in interface ExpirationConfigurationMBean
      Returns:
      duration for which expired purchased charge offerings need to be retained
    • getExpiredPurchasedAlterationRetentionIntervalInDays

      public Integer getExpiredPurchasedAlterationRetentionIntervalInDays()
      Description copied from interface: ExpirationConfigurationMBean
      Returns the interval in days, which is the duration for which expired purchased alteration offerings need to be retained in the ECE system.
      Specified by:
      getExpiredPurchasedAlterationRetentionIntervalInDays in interface ExpirationConfigurationMBean
      Returns:
      duration for which expired purchased alteration offerings need to be retained
    • getExpiredRatingProfileRetentionIntervalInDays

      public Integer getExpiredRatingProfileRetentionIntervalInDays()
      Description copied from interface: ExpirationConfigurationMBean
      Returns the interval in days, which is the duration for which expired rating profiles need to be retained in the ECE system.
      Specified by:
      getExpiredRatingProfileRetentionIntervalInDays in interface ExpirationConfigurationMBean
      Returns:
      duration for which expired rating profiles need to be retained
    • getDefaultExpirationRetentionIntervalInDays

      public Integer getDefaultExpirationRetentionIntervalInDays()
      Description copied from interface: ExpirationConfigurationMBean
      Returns the default interval in days, which is the duration for which any expired object(purchased offerings, rating profiles and audits) need to be retained in the ECE system.

      This value can be overridden by setting corresponding expiration interval for the individual objects

      Specified by:
      getDefaultExpirationRetentionIntervalInDays in interface ExpirationConfigurationMBean
      Returns:
      Default value for the duration for which expired objects need to be retained in the system
    • getDefaultExpiredBalanceItemRetentionIntervalInDays

      public Integer getDefaultExpiredBalanceItemRetentionIntervalInDays()
      Description copied from interface: ExpirationConfigurationMBean
      Returns the default interval in days, which is the duration for which any expired balance item needs to be retained in the ECE system.

      This value can be overridden by setting expiration interval for each balance element.

      Specified by:
      getDefaultExpiredBalanceItemRetentionIntervalInDays in interface ExpirationConfigurationMBean
      Returns:
      Default duration for which any expired balance item needs to be retained in the ECE system.
    • getDefaultExpiredRBundleHistoryRetentionIntervalInDays

      public Integer getDefaultExpiredRBundleHistoryRetentionIntervalInDays()
      Description copied from interface: ExpirationConfigurationMBean
      Returns the default interval in days, which is the duration for which any expired balance item needs to be retained in the ECE system.

      This value can be overridden by setting expiration interval for each balance element.

      Specified by:
      getDefaultExpiredRBundleHistoryRetentionIntervalInDays in interface ExpirationConfigurationMBean
      Returns:
      Default duration for which any expired balance item needs to be retained in the ECE system.
    • getExpiredBalanceItemRetentionIntervalInDays

      public Long getExpiredBalanceItemRetentionIntervalInDays(String beCode)
      Description copied from interface: ExpirationConfigurationMBean
      Returns interval in days, which is the duration for which any expired balance item for the given balance element code needs to be retained in the ECE system.
      Specified by:
      getExpiredBalanceItemRetentionIntervalInDays in interface ExpirationConfigurationMBean
      Parameters:
      beCode - Alpha numeric code for the balance element for which the expiration time needs to be returned. Eg: USD, FREE_MIN etc
      Returns:
      duration for which any expired balance item for the given balance element code needs to be retained
    • getExpiredAsoRetentionIntervalInDays

      public Integer getExpiredAsoRetentionIntervalInDays()
      Specified by:
      getExpiredAsoRetentionIntervalInDays in interface ExpirationConfigurationMBean
    • getExpiredAsoRetentionInterval

      public long getExpiredAsoRetentionInterval()
    • getExpiredAuditRetentionInterval

      public Long getExpiredAuditRetentionInterval()
      Returns the interval in milli seconds, which is the duration for which audit objects need to be retained in the ECE system since the time audit objects were created.
      Returns:
      duration in milli seconds for which audit objects need to be retained. Returns defaultExpirationRetentionInterval if the value is null
    • getExpiredPurchasedChargesRetentionInterval

      public Long getExpiredPurchasedChargesRetentionInterval()
      Returns the interval in milli seconds, which is the duration for which expired purchased alteration offerings need to be retained in the ECE system.
      Returns:
      duration for which expired purchased alteration offerings need to be retained.Returns defaultExpirationRetentionInterval if the value is null
    • getExpiredPurchasedAlterationRetentionInterval

      public Long getExpiredPurchasedAlterationRetentionInterval()
      Returns the interval in milli seconds, which is the duration for which expired purchased alteration offerings need to be retained in the ECE system.
      Returns:
      duration for which expired purchased alteration offerings need to be retained.Returns defaultExpirationRetentionInterval if the value is null
    • getExpiredRatingProfileRetentionInterval

      public Long getExpiredRatingProfileRetentionInterval()
      Returns the interval in milli seconds, which is the duration for which expired rating profiles need to be retained in the ECE system.
      Returns:
      duration for which expired rating profiles need to be retained.Returns defaultExpirationRetentionInterval if the value is null
    • getDefaultExpirationRetentionInterval

      public Long getDefaultExpirationRetentionInterval()
      Returns the default interval in milli seconds, which is the duration for which any expired object(purchased offerings, rating profiles and audits) need to be retained in the ECE system.
      Returns:
      Default value for the duration for which expired objects need to be retained in the system
    • getDefaultExpiredRBundleHistoryRetentionInterval

      public Long getDefaultExpiredRBundleHistoryRetentionInterval()
      Getter used for serialization
      Returns:
      ExpiredRBundleHistoryRetentionInterval
    • getDefaultExpiredBalanceItemRetentionInterval

      public Long getDefaultExpiredBalanceItemRetentionInterval()
      Returns the default interval in milli seconds, which is the duration for which any expired balance item needs to be retained in the ECE system.
      Returns:
      Default duration for which any expired balance item needs to be retained in the ECE system.
    • getExpiredBalanceItemRetentionInterval

      public Long getExpiredBalanceItemRetentionInterval(String beCode)
      Returns interval in milli seconds, which is the duration for which any expired balance item for the given balance element code needs to be retained in the ECE system.
      Parameters:
      beCode - Alpha numeric code for the balance element for which the expiration time needs to be returned. Eg: USD, FREE_MIN etc
      Returns:
      duration for which any expired balance item for the given balance element code needs to be retained.Returns defaultExpiredBalanceItemRetentionIntervalInDays if the value is null.
    • setBalanceItemExpirationList

      public void setBalanceItemExpirationList(List<BalanceItemExpirationConfiguration> balanceItemExpirationList) throws oracle.communication.brm.charging.appconfiguration.AppConfigurationException
      Sets the list for balance item expiration. Used by apache configuration framework to construct the bean
      Parameters:
      balanceItemExpirationList - List containing expiration policies for various balance element
      Throws:
      oracle.communication.brm.charging.appconfiguration.AppConfigurationException - if an invalid value is specified.
    • getBalanceItemExpirationConfigurationMap

      public Map<String,Long> getBalanceItemExpirationConfigurationMap()
      method called by the serializer obtain the Map for pof serialization
      Returns:
      obtain the Map for pof serialization
    • setExpiredAuditRetentionIntervalInDays

      public void setExpiredAuditRetentionIntervalInDays(Integer expiredAuditRetentionIntervalInDays)
      Description copied from interface: ExpirationConfigurationMBean
      Sets the interval in days, which is the duration for which audit objects need to be retained in the ECE system since the time audit objects were created.
      Specified by:
      setExpiredAuditRetentionIntervalInDays in interface ExpirationConfigurationMBean
      Parameters:
      expiredAuditRetentionIntervalInDays - duration in days, for which audit objects need to be retained in ECE
    • setExpiredPurchasedChargesRetentionIntervalInDays

      public void setExpiredPurchasedChargesRetentionIntervalInDays(Integer expiredPurchasedChargesRetentionIntervalInDays)
      Description copied from interface: ExpirationConfigurationMBean
      Sets the interval in days, which is the duration for which expired purchased charge offerings need to be retained in the ECE system.
      Specified by:
      setExpiredPurchasedChargesRetentionIntervalInDays in interface ExpirationConfigurationMBean
      Parameters:
      expiredPurchasedChargesRetentionIntervalInDays - Duration in days for which expired purchased charge offerings need to be retained
    • setExpiredPurchasedAlterationRetentionIntervalInDays

      public void setExpiredPurchasedAlterationRetentionIntervalInDays(Integer expiredPurchasedAlterationRetentionIntervalInDays)
      Description copied from interface: ExpirationConfigurationMBean
      Sets the interval in days, which is the duration for which expired purchased alteration offerings need to be retained in the ECE system.
      Specified by:
      setExpiredPurchasedAlterationRetentionIntervalInDays in interface ExpirationConfigurationMBean
      Parameters:
      expiredPurchasedAlterationRetentionIntervalInDays - Duration in days for which expired purchased alteration offerings need to be retained.
    • setExpiredRatingProfileRetentionIntervalInDays

      public void setExpiredRatingProfileRetentionIntervalInDays(Integer expiredRatingProfileRetentionIntervalInDays)
      Description copied from interface: ExpirationConfigurationMBean
      Sets the interval in days, which is the duration for which expired rating profiles need to be retained in the ECE system.
      Specified by:
      setExpiredRatingProfileRetentionIntervalInDays in interface ExpirationConfigurationMBean
      Parameters:
      expiredRatingProfileRetentionIntervalInDays - Duration for which expired rating profiles need to be retained
    • setDefaultExpirationRetentionIntervalInDays

      public void setDefaultExpirationRetentionIntervalInDays(Integer defaultExpirationRetentionIntervalInDays)
      Description copied from interface: ExpirationConfigurationMBean
      Sets the default interval in days, which is the duration for which any expired object(purchased offerings, rating profiles and audits) needs to be retained in the ECE system.

      This value is overridden by expiration interval set for the individual objects

      Specified by:
      setDefaultExpirationRetentionIntervalInDays in interface ExpirationConfigurationMBean
      Parameters:
      defaultExpirationRetentionIntervalInDays - duration for which any expired object needs to be retained
    • setDefaultExpiredBalanceItemRetentionIntervalInDays

      public void setDefaultExpiredBalanceItemRetentionIntervalInDays(Integer defaultExpiredBalanceItemRetentionIntervalInDays)
      Description copied from interface: ExpirationConfigurationMBean
      Sets the default interval in days, which is the duration for which any expired balance item needs to be retained in the ECE system.

      This value can be overridden by setting expiration interval for each balance element.

      Specified by:
      setDefaultExpiredBalanceItemRetentionIntervalInDays in interface ExpirationConfigurationMBean
      Parameters:
      defaultExpiredBalanceItemRetentionIntervalInDays - duration for which any expired balance item needs to be retained
    • setDefaultExpiredRBundleHistoryRetentionIntervalInDays

      public void setDefaultExpiredRBundleHistoryRetentionIntervalInDays(Integer defaultRBRetentionIntervalInDays)
      Description copied from interface: ExpirationConfigurationMBean
      Sets the default interval in days, which is the duration for which recurring bundle history needs to be retained in ECE system.

      Specified by:
      setDefaultExpiredRBundleHistoryRetentionIntervalInDays in interface ExpirationConfigurationMBean
      Parameters:
      defaultRBRetentionIntervalInDays - duration for which recurring bundle history needs to be retained
    • setExpiredBalanceItemRetentionIntervalInDays

      public void setExpiredBalanceItemRetentionIntervalInDays(String beCode, Long balanceItemExpirationInDays)
      Description copied from interface: ExpirationConfigurationMBean
      Sets the interval in days, which is the duration for which any expired balance item for the given balance element code needs to be retained in the ECE system.

      This method overrides the default expired balance item retention interval set by @{setDefaultExpiredBalanceItemRetentionIntervalInDays}

      Specified by:
      setExpiredBalanceItemRetentionIntervalInDays in interface ExpirationConfigurationMBean
      Parameters:
      beCode - Alpha numeric code for the balance element for which the expiration time needs to be set
      balanceItemExpirationInDays - duration for which any expired balance item for the given balance element code needs to be retained in the ECE system
    • setExpiredAsoRetentionIntervalInDays

      public void setExpiredAsoRetentionIntervalInDays(Integer defaultAsoRetentionIntervalInDays)
      Specified by:
      setExpiredAsoRetentionIntervalInDays in interface ExpirationConfigurationMBean
    • getDebitRefundSessionCleanUpIntervalInDays

      public Integer getDebitRefundSessionCleanUpIntervalInDays()
      Description copied from interface: ExpirationConfigurationMBean
      Returns the debit refund session cleanup interval in days
      Specified by:
      getDebitRefundSessionCleanUpIntervalInDays in interface ExpirationConfigurationMBean
      Returns:
      debit refund session clean up intervals in days
    • getDebitRefundSessionCleanUpInterval

      public Long getDebitRefundSessionCleanUpInterval()
    • setDebitRefundSessionCleanUpIntervalInDays

      public void setDebitRefundSessionCleanUpIntervalInDays(Integer defaultDebitRefundSessionCleanUpIntervalInDays)
      Description copied from interface: ExpirationConfigurationMBean
      Set the number of days we need to kepp the debit refund session info on Customer Object
      Specified by:
      setDebitRefundSessionCleanUpIntervalInDays in interface ExpirationConfigurationMBean
      Parameters:
      defaultDebitRefundSessionCleanUpIntervalInDays -
    • handlePrintConfiguration

      protected void handlePrintConfiguration(org.apache.logging.log4j.Logger logger)
      Description copied from class: oracle.communication.brm.charging.appconfiguration.AbstractConfigurationBean
      Method used by subclasses to dump their configuration settings to a log file.
      Specified by:
      handlePrintConfiguration in class oracle.communication.brm.charging.appconfiguration.AbstractConfigurationBean
      Parameters:
      logger - the logger is provided to subclassers for writing their config values.
    • republishAll

      public void republishAll()
      Description copied from interface: oracle.communication.brm.charging.appconfiguration.ConfigurationBean
      Method used to persist and synchronize all app configuration beans to charging-settings.xml.
      Specified by:
      republishAll in interface oracle.communication.brm.charging.appconfiguration.ConfigurationBean
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class oracle.communication.brm.charging.appconfiguration.AbstractConfigurationBean
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class oracle.communication.brm.charging.appconfiguration.AbstractConfigurationBean