|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.rim.device.api.itpolicy.ITPolicy
public final class ITPolicy
Provides access to the IT policy database.
IT Policy is used by BlackBerry system administrators to govern the desktop and handheld settings of individual BlackBerry handheld users. IT policies enable system administrators to customize the features that are common to all BlackBerry handheld users on a given BlackBerry Enterprise Server, such as password details and convenience settings like mail forwarding options and browser settings.
IT policies provide an efficient method for managing many different users simultaneously.
| Field Summary | ||
|---|---|---|
static long |
GUID_IT_POLICY_CHANGED
Deprecated. Use ITPolicyChangedListener.policyChanged(java.lang.String, boolean). This event will only go to non-RIM applications |
|
static long |
GUID_IT_POLICY_CHANGED_LOCKED_HANDHELD
Deprecated. Use . This event will only go to non-RIM applications |
|
static long |
GUID_PASSWORD_SET_BY_ITADMIN
Deprecated. Use ITPolicyInfoListener.passwordSetByAdmin(). This event will only go to non-RIM applications |
|
static int |
PUBLIC_KEY_TAG
Represents the public key sub tag (for use with ITPOLICY_VERIFICATION_KEYS tag) |
|
static int |
SIGNATURE_KEY_TAG
Represents the signature key sub tag (for use with ITPOLICY_SIGNATURE_KEYS tag) |
|
static int |
TERNARY_FALSE
Represents the ternary false value. |
|
static int |
TERNARY_PROMPT
Represents the ternary prompt value. |
|
static int |
TERNARY_TRUE
Represents the ternary true value. |
|
| Method Summary | ||
|---|---|---|
static void |
addListener(ITPolicyListener listener)
Add a listener to process IT policy events. |
|
static void |
addListener(Application application,
ITPolicyListener listener)
Add a listener to process IT policy events. |
|
static boolean |
getBoolean(int id,
boolean defaultValue)
Retrieve a boolean valued field from the IT policy database. |
|
static boolean |
getBoolean(int group,
int id,
boolean defaultValue)
Retrieve a boolean valued field from the IT policy database for a given group. |
|
static boolean |
getBoolean(String name,
boolean defaultValue)
Retrieve a boolean valued field from the IT policy database given the name of the field. |
|
static byte |
getByte(int id,
byte defaultValue)
Retrieve a byte valued field from the IT policy database. |
|
static byte |
getByte(int group,
int id,
byte defaultValue)
Retrieve a byte valued field from the IT policy database for a given group. |
|
static byte |
getByte(String name)
Retrieve a byte valued field from the IT policy database given the name of the field. |
|
static byte[] |
getByteArray(int id)
Retrieve a byte array valued field from the IT policy database. |
|
static byte[] |
getByteArray(int group,
int id)
Retrieve a byte array valued field from the IT policy database for a given group. |
|
static byte[] |
getByteArray(String name)
Retrieve a byte array valued field from the IT policy database given the name of the field. |
|
static int |
getInteger(int id,
int defaultValue)
Retrieve an integer valued field from the IT policy database. |
|
static int |
getInteger(int group,
int id,
int defaultValue)
Retrieve an integer valued field from the IT policy database for a given group. |
|
static int |
getInteger(String name,
int defaultValue)
Retrieve an integer valued field from the IT policy database given the name of the field. |
|
static String |
getString(int id)
Retrieve a string valued field from the IT policy database. |
|
static String |
getString(int group,
int id)
Retrieve a string valued field from the IT policy database for a given group. |
|
static String |
getString(String name)
Retrieve a string valued field from the IT policy database given the name of the field. |
|
static void |
removeListener(ITPolicyListener listener)
Remove a listener from the calling application's list of listeners. |
|
static void |
removeListener(Application application,
ITPolicyListener listener)
Remove a listener from the calling application's list of listeners. |
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final long GUID_IT_POLICY_CHANGED
ITPolicyChangedListener.policyChanged(java.lang.String, boolean). This event will only go to non-RIM applications
public static final long GUID_IT_POLICY_CHANGED_LOCKED_HANDHELD
public static final long GUID_PASSWORD_SET_BY_ITADMIN
ITPolicyInfoListener.passwordSetByAdmin(). This event will only go to non-RIM applications
public static final int TERNARY_TRUE
public static final int TERNARY_FALSE
public static final int TERNARY_PROMPT
public static final int PUBLIC_KEY_TAG
public static final int SIGNATURE_KEY_TAG
| Method Detail |
|---|
public static String getString(String name)
name - the name of the field
null if no entry is foundpublic static byte[] getByteArray(String name)
name - the name of the field
null if no entry is foundpublic static byte getByte(String name)
name - the name of the field
null byte ('\0') if no entry is found
public static boolean getBoolean(String name,
boolean defaultValue)
name - the name of the fielddefaultValue - the value to be returned if no entry is found
defaultValue if the field is not found
public static int getInteger(String name,
int defaultValue)
name - the name of the fielddefaultValue - the value to be returned if the field is not found
defaultValue if the field is not foundpublic static String getString(int id)
id - the field identifier
null if the field is not found
public static String getString(int group,
int id)
group - the group keyid - the identifier of the field within the group
null if the field is not foundpublic static byte[] getByteArray(int id)
id - the field identifier
null if the field is not found
public static byte[] getByteArray(int group,
int id)
group - the group keyid - the identifier of the field within the group
null if the field is not found
public static boolean getBoolean(int id,
boolean defaultValue)
id - the field identifierdefaultValue - the value to be returned if the field is not found
defaultValue if the field is not found
public static boolean getBoolean(int group,
int id,
boolean defaultValue)
group - the group keyid - the identifier of the field within the groupdefaultValue - the value to be returned if the field is not found
defaultValue if the field is not found
public static int getInteger(int id,
int defaultValue)
id - the field identifierdefaultValue - the value to be returned if the field is not found
defaultValue if the field is not found
public static int getInteger(int group,
int id,
int defaultValue)
group - the group keyid - the identifier of the field within the groupdefaultValue - the value to be returned if the field is not found
defaultValue if the field is not found
public static byte getByte(int id,
byte defaultValue)
id - the field identifierdefaultValue - the value to be returned if the field is not found
defaultValue if the field is not found
public static byte getByte(int group,
int id,
byte defaultValue)
group - the group keyid - the identifier of the field within the groupdefaultValue - the value to be returned if the field is not found
defaultValue if the field is not foundpublic static void addListener(ITPolicyListener listener)
listener - ITPolicyListener for process termination events
NullPointerException - if listener is null
IllegalStateException - if this method is called when there is no
Application object in the calling process
public static void addListener(Application application,
ITPolicyListener listener)
application - the Application whose event thread will process the
notifications sent to listenerlistener - ITPolicyListener for process termination events.
NullPointerException - if listener is null
IllegalStateException - if this method is called when there is no
Application object in the calling processpublic static void removeListener(ITPolicyListener listener)
listener is null or is not on the calling application's
list of listeners, then this method does nothing.
listener - ITPolicyListener for process termination events
IllegalStateException - if this method is called when there is no
Application object in the calling process
public static void removeListener(Application application,
ITPolicyListener listener)
listener is null or is not on the calling application's
list of listeners, then this method does nothing.
application - the Application whose event thread will no longer
process the notifications sent to listenerlistener - the ITPolicyListener for process termination events
IllegalStateException - if this method is called when there is no
Application object in the calling process
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright 1999-2011 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Java is a trademark of Oracle America Inc. in the US and other countries.
Legal