it.dtt.ca.event
Class CAAccessEvent

java.lang.Object
  extended by it.dtt.ca.event.CAEvent
      extended by it.dtt.ca.event.CAAccessEvent

public class CAAccessEvent
extends CAEvent

This event is used to notify a listener about a CA module status changes regarding the access, descrambling and purchasing periods. Under some circumstances, a single event in the CA system may result in multiple CAAccessEvents being posted. For example, successful purchase of a current program could result in both DESCRAMBLING_BEGIN and ACCESS_GRANTED.


Field Summary
static int ACCESS_CLEAR
          Notifies that the signal is not scrambled
static int ACCESS_DENIED
          Notifies that the CA is not entitled to descramble the current PPV event.
static int ACCESS_DENIED_FOR_PARENTAL_RATING
          Notifies that the CA is not entitled to descramble the current PPV event due to parental rating.
static int ACCESS_DENIED_FOR_SMART_CARD_ERROR
          Notifies that the CA is not entitled to descramble the current PPV event due to smart card issue.
static int ACCESS_FREE
          Notifies that the signal is scrambled in free mode
static int ACCESS_GRANTED
          Notifies that the CA is entitled to descramble the current PPV event.
static int CA_GENERIC_EVENT
          Used by the CA to notify an unknown event to the application.
static int CARD_NEEDED
          Notifies that a card is needed.
static int DESCRAMBLING_BEGIN
          Notifies that the current service has began being descrambled
static int DESCRAMBLING_END
          Notifies that the descrambling process has been stopped for the current service
static int FREE_WINDOW_BEGIN
          Notifies that the free window period for current PPV event is started
static int FREE_WINDOW_END
          Notifies that the free window period for current PPV event is ended
static int PURCHASE_PERIOD_BEGIN
          Notifies that the purchase period for current PPV event is started
static int PURCHASE_PERIOD_END
          Notifies that the purchase period for current PPV event is ended
 
Fields inherited from class it.dtt.ca.event.CAEvent
CA_ACCESS_EVENT, CA_PRODUCT_EVENT, HISTORY_UPDATE_EVENT, NEW_MESSAGE_EVENT, PIN_REQUEST_EVENT, RECHARGE_EVENT, SLOT_EVENT, SMART_CARD_STATUS_EVENT
 
Constructor Summary
protected CAAccessEvent(CAManager caManager, int type)
          Creates a CAEvent instance
protected CAAccessEvent(CAManager caManager, java.lang.Object data, java.lang.String description)
           
 
Method Summary
 CAManager getCAManager()
          Retrieves the CAManager instance
 int getType()
          Returns the type of event that's arrived.
 
Methods inherited from class it.dtt.ca.event.CAEvent
getData, getDescription, getPrivateData, getSource, setPrivateData, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CA_GENERIC_EVENT

public static final int CA_GENERIC_EVENT
Used by the CA to notify an unknown event to the application.

See Also:
Constant Field Values

DESCRAMBLING_BEGIN

public static final int DESCRAMBLING_BEGIN
Notifies that the current service has began being descrambled

See Also:
Constant Field Values

DESCRAMBLING_END

public static final int DESCRAMBLING_END
Notifies that the descrambling process has been stopped for the current service

See Also:
Constant Field Values

FREE_WINDOW_BEGIN

public static final int FREE_WINDOW_BEGIN
Notifies that the free window period for current PPV event is started

See Also:
Constant Field Values

FREE_WINDOW_END

public static final int FREE_WINDOW_END
Notifies that the free window period for current PPV event is ended

See Also:
Constant Field Values

PURCHASE_PERIOD_BEGIN

public static final int PURCHASE_PERIOD_BEGIN
Notifies that the purchase period for current PPV event is started

See Also:
Constant Field Values

PURCHASE_PERIOD_END

public static final int PURCHASE_PERIOD_END
Notifies that the purchase period for current PPV event is ended

See Also:
Constant Field Values

ACCESS_GRANTED

public static final int ACCESS_GRANTED
Notifies that the CA is entitled to descramble the current PPV event.

See Also:
Constant Field Values

ACCESS_DENIED

public static final int ACCESS_DENIED
Notifies that the CA is not entitled to descramble the current PPV event.

See Also:
Constant Field Values

ACCESS_DENIED_FOR_PARENTAL_RATING

public static final int ACCESS_DENIED_FOR_PARENTAL_RATING
Notifies that the CA is not entitled to descramble the current PPV event due to parental rating.

See Also:
Constant Field Values

CARD_NEEDED

public static final int CARD_NEEDED
Notifies that a card is needed.

See Also:
Constant Field Values

ACCESS_DENIED_FOR_SMART_CARD_ERROR

public static final int ACCESS_DENIED_FOR_SMART_CARD_ERROR
Notifies that the CA is not entitled to descramble the current PPV event due to smart card issue. The smart card status can then be retrieved using specific methods.

See Also:
Constant Field Values

ACCESS_CLEAR

public static final int ACCESS_CLEAR
Notifies that the signal is not scrambled

See Also:
Constant Field Values

ACCESS_FREE

public static final int ACCESS_FREE
Notifies that the signal is scrambled in free mode

See Also:
Constant Field Values
Constructor Detail

CAAccessEvent

protected CAAccessEvent(CAManager caManager,
                        int type)
Creates a CAEvent instance

Parameters:
caManager - the CAManager
type - the type of event

CAAccessEvent

protected CAAccessEvent(CAManager caManager,
                        java.lang.Object data,
                        java.lang.String description)
Method Detail

getCAManager

public CAManager getCAManager()
Retrieves the CAManager instance

Returns:
the CAManager

getType

public int getType()
Returns the type of event that's arrived.

Specified by:
getType in class CAEvent
Returns:
type of event.
See Also:
CAEvent.CA_ACCESS_EVENT