Java Doc for MIDletSuite.java in  » 6.0-JDK-Modules » j2me » com » sun » midp » midlet » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » 6.0 JDK Modules » j2me » com.sun.midp.midlet 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.sun.midp.midlet.MIDletSuite

All known Subclasses:   com.sun.midp.jump.installer.TrustedMIDletSuiteInfo,  com.sun.midp.jump.installer.InstallStateImpl,  com.sun.midp.installer.InternalMIDletSuiteImpl,
MIDletSuite
public interface MIDletSuite (Code)
Represents a MIDlet suite.


Field Summary
final public static  StringCONFIGURATION_PROP
     MIDlet property for the microedition configuration.
final public static  StringDATA_SIZE_PROP
     MIDlet property for the size of the application data.
final public static  StringDESC_PROP
     MIDlet property for the suite description.
final public static  intINTERNAL_SUITE_ID
     Suite ID used for internal midlet suites.
final public static  StringJAR_MANIFEST
     Filename of Manifest inside the application archive.
final public static  StringJAR_SIZE_PROP
     MIDlet property for the size of the application archive.
final public static  StringJAR_URL_PROP
     MIDlet property for the application archive URL.
final public static  StringPERMISSIONS_OPT_PROP
     MIDlet property for the optional permissions.
final public static  StringPERMISSIONS_PROP
     MIDlet property for the required permissions.
final public static  StringPROFILE_PROP
     MIDlet property for the profile.
final public static  StringRUNTIME_EXEC_ENV_DEFAULT
    
final public static  StringRUNTIME_EXEC_ENV_PROP
    
final public static  StringSUITE_NAME_PROP
     MIDlet property for the suite name.
final public static  intUNUSED_SUITE_ID
     Suite ID that is never used.
final public static  StringVENDOR_PROP
     MIDlet property for the suite vendor.
final public static  StringVERSION_PROP
     MIDlet property for the suite version.


Method Summary
public  voidcheckForPermission(int permission, String resource)
     Check for permission and throw an exception if not allowed.
public  voidcheckForPermission(int permission, String resource, String extraValue)
     Checks for permission and throw an exception if not allowed.
public  voidcheckIfPermissionAllowed(int permission)
     Check to see the suite has the ALLOW level for specific permission.
public  intcheckPermission(String permission)
     Get the status of the specified permission. If no API on the device defines the specific permission requested then it must be reported as denied. If the status of the permission is not known because it might require a user interaction then it should be reported as unknown.
Parameters:
  permission - to check if denied, allowed, or unknown.
public  voidclose()
    
public  intgetID()
     Gets the unique ID of the suite.
public  StringgetMIDletName(String className)
     Get the name of a MIDlet to display to the user.
public  byte[]getPermissions()
     Gets list of permissions for this suite.
public  StringgetProperty(String key)
     Get a property of the suite.
public  bytegetPushInterruptSetting()
     Gets push setting for interrupting other MIDlets.
public  intgetPushOptions()
     Gets push options for this suite.
public  booleanisEnabled()
     Determine if the a MIDlet from this suite can be run.
public  booleanisRegistered(String midletClassName)
     Indicates if the named MIDlet is registered in the suite with MIDlet-<n> record in the manifest or application descriptor.
public  booleanisTrusted()
     Indicates if this suite is trusted.
public  booleanisVerified()
    
public  booleanpermissionToInterrupt(String connection)
     Ask the user want to interrupt the current MIDlet with a new MIDlet that has received network data.
public  voidsetTempProperty(SecurityToken token, String key, String value)
     Replace or add a property to the suite for this run only.

Field Detail
CONFIGURATION_PROP
final public static String CONFIGURATION_PROP(Code)
MIDlet property for the microedition configuration.



DATA_SIZE_PROP
final public static String DATA_SIZE_PROP(Code)
MIDlet property for the size of the application data.



DESC_PROP
final public static String DESC_PROP(Code)
MIDlet property for the suite description.



INTERNAL_SUITE_ID
final public static int INTERNAL_SUITE_ID(Code)
Suite ID used for internal midlet suites.



JAR_MANIFEST
final public static String JAR_MANIFEST(Code)
Filename of Manifest inside the application archive.



JAR_SIZE_PROP
final public static String JAR_SIZE_PROP(Code)
MIDlet property for the size of the application archive.



JAR_URL_PROP
final public static String JAR_URL_PROP(Code)
MIDlet property for the application archive URL.



PERMISSIONS_OPT_PROP
final public static String PERMISSIONS_OPT_PROP(Code)
MIDlet property for the optional permissions.



PERMISSIONS_PROP
final public static String PERMISSIONS_PROP(Code)
MIDlet property for the required permissions.



PROFILE_PROP
final public static String PROFILE_PROP(Code)
MIDlet property for the profile.



RUNTIME_EXEC_ENV_DEFAULT
final public static String RUNTIME_EXEC_ENV_DEFAULT(Code)
Default value for the Runtime-Execution-Environment property



RUNTIME_EXEC_ENV_PROP
final public static String RUNTIME_EXEC_ENV_PROP(Code)
MIDlet Runtime Execution Environment (MIDP.CLDC by default)



SUITE_NAME_PROP
final public static String SUITE_NAME_PROP(Code)
MIDlet property for the suite name.



UNUSED_SUITE_ID
final public static int UNUSED_SUITE_ID(Code)
Suite ID that is never used.



VENDOR_PROP
final public static String VENDOR_PROP(Code)
MIDlet property for the suite vendor.



VERSION_PROP
final public static String VERSION_PROP(Code)
MIDlet property for the suite version.





Method Detail
checkForPermission
public void checkForPermission(int permission, String resource) throws InterruptedException(Code)
Check for permission and throw an exception if not allowed. May block to ask the user a question.
Parameters:
  permission - ID of the permission to check for,the ID must be fromcom.sun.midp.security.Permissions
Parameters:
  resource - string to insert into the question, can be null ifno %2 in the question
exception:
  SecurityException - if the permission is notallowed by this token
exception:
  InterruptedException - if another thread interrupts thecalling thread while this method is waiting to preempt thedisplay.



checkForPermission
public void checkForPermission(int permission, String resource, String extraValue) throws InterruptedException(Code)
Checks for permission and throw an exception if not allowed. May block to ask the user a question.
Parameters:
  permission - ID of the permission to check for,the ID must be fromcom.sun.midp.security.Permissions
Parameters:
  resource - string to insert into the question, can be null ifno %2 in the question
Parameters:
  extraValue - string to insert into the question,can be null if no %3 in the question
exception:
  SecurityException - if the permission is notallowed by this token
exception:
  InterruptedException - if another thread interrupts thecalling thread while this method is waiting to preempt thedisplay.



checkIfPermissionAllowed
public void checkIfPermissionAllowed(int permission)(Code)
Check to see the suite has the ALLOW level for specific permission. This is used for by internal APIs that only provide access to trusted system applications.

Only trust this method if the object has been obtained from the Scheduler of the suite.
Parameters:
  permission - permission ID fromcom.sun.midp.security.Permissions
exception:
  SecurityException - if the suite is notallowed to perform the specified action.




checkPermission
public int checkPermission(String permission)(Code)
Get the status of the specified permission. If no API on the device defines the specific permission requested then it must be reported as denied. If the status of the permission is not known because it might require a user interaction then it should be reported as unknown.
Parameters:
  permission - to check if denied, allowed, or unknown. 0 if the permission is denied; 1 if the permission is allowed;-1 if the status is unknown



close
public void close()(Code)
Close the opened MIDletSuite



getID
public int getID()(Code)
Gets the unique ID of the suite. suite ID



getMIDletName
public String getMIDletName(String className)(Code)
Get the name of a MIDlet to display to the user.
Parameters:
  className - classname of a MIDlet in the suite name to display to the user



getPermissions
public byte[] getPermissions()(Code)
Gets list of permissions for this suite. array of permissions from Permissions



getProperty
public String getProperty(String key)(Code)
Get a property of the suite. A property is an attribute from either the application descriptor or JAR Manifest.
Parameters:
  key - the name of the property A string with the value of the property.null is returned if no value is available forthe key.



getPushInterruptSetting
public byte getPushInterruptSetting()(Code)
Gets push setting for interrupting other MIDlets. Reuses the Permissions. push setting for interrupting MIDlets the valuewill be permission level from Permissions



getPushOptions
public int getPushOptions()(Code)
Gets push options for this suite. push options are defined in PushRegistryImpl



isEnabled
public boolean isEnabled()(Code)
Determine if the a MIDlet from this suite can be run. Note that disable suites can still have their settings changed and their install info displayed. true if suite is enabled, false otherwise



isRegistered
public boolean isRegistered(String midletClassName)(Code)
Indicates if the named MIDlet is registered in the suite with MIDlet-<n> record in the manifest or application descriptor.
Parameters:
  midletClassName - class name of the MIDlet to be checked true if the MIDlet is registered



isTrusted
public boolean isTrusted()(Code)
Indicates if this suite is trusted. (not to be confused with a domain named "trusted", this is used for extra checks beyond permission checking) true if the suite is trusted false if not



isVerified
public boolean isVerified()(Code)
Check whether the suite classes are preverified and the suite content hasn't been changed since installation true if no more verification needed, false otherwise



permissionToInterrupt
public boolean permissionToInterrupt(String connection)(Code)
Ask the user want to interrupt the current MIDlet with a new MIDlet that has received network data.
Parameters:
  connection - connection to place in the permission question ornull for alarm true if the use wants interrupt the current MIDlet, else false



setTempProperty
public void setTempProperty(SecurityToken token, String key, String value)(Code)
Replace or add a property to the suite for this run only.
Parameters:
  token - token with the AMS permission set to allowed,can be null to use the suite's permission
Parameters:
  key - the name of the property
Parameters:
  value - the value of the property
exception:
  SecurityException - if the caller's token does not haveinternal AMS permission



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.