|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.dtt.ca.util.ParentalControlLevel
public class ParentalControlLevel
This class represent a parental control setting.
Parental Control levels will depend upon the current user.
The current user is defined and retrieved using the org.dvb.user.GeneralPreference("UserName", String userName).
The user name is stored by:
And can be read by:
Field Summary | |
---|---|
static int |
PARENTAL_CONTROL_INTERMEDIATE_MODE
This mode required an extra PIN input for viewing PPV events rated "RESTRICTED" and "ADULTS_ONLY", and no PIN for all other events. |
static int |
PARENTAL_CONTROL_PERMISSIVE_MODE
This mode requires an extra PIN input for viewing PPV events rated "ADULTS_ONLY", and no PIN for all other events. |
static int |
PARENTAL_CONTROL_STRICT_MODE
This mode requires an extra PIN input for viewing all PPV events except those rated "ALL_AUDIENCE". |
Constructor Summary | |
---|---|
protected |
ParentalControlLevel(int defaultValue)
Construct an instance of this class. |
Method Summary | |
---|---|
int |
getValue()
Get the parental control value; this is one of the values defined in this class. |
boolean |
isPinRequired(javax.tv.service.guide.ContentRatingAdvisory rating)
Informs whether an extra PIN input is required for viewing all PPV events rated as indicated. |
void |
setValue(int value)
Set the parental control level, which can be one of the levels defined as constants in this class. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int PARENTAL_CONTROL_STRICT_MODE
public static final int PARENTAL_CONTROL_INTERMEDIATE_MODE
public static final int PARENTAL_CONTROL_PERMISSIVE_MODE
Constructor Detail |
---|
protected ParentalControlLevel(int defaultValue)
defaultValue
- the initial value of the parental control setting (must be one of the constants defined in this class).Method Detail |
---|
public int getValue()
public void setValue(int value)
value
- the new parental control level.public boolean isPinRequired(javax.tv.service.guide.ContentRatingAdvisory rating)
rating
- the PPV event rating (@see Rating)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |