Oracle Java Wireless Client

com.sun.ams
Interface SuiteStoreManager


public interface SuiteStoreManager

Interface to suite store manager service.


Method Summary
 AppSuite[] getAppSuites()
          Request a list of installed applications.
 LibSuite[] getLibSuites()
          Request a list of dynamic components.
 SuiteInfo[] getLinkSuites()
          Request a list of added links.
 SuiteInfo getSuiteInfo(java.lang.String vendor, java.lang.String name)
          Returns descriptor of installed suite.
 SuiteInfo[] getSuites(int types)
          Request a list of installed suites of specified types.
 void setStatusListener(SuiteStoreListener theListener)
          Assigns the suite store status listener
 

Method Detail

getSuiteInfo

SuiteInfo getSuiteInfo(java.lang.String vendor,
                       java.lang.String name)
Returns descriptor of installed suite. If suite has type SuiteInfo.ST_APPLICATION then AppSuite is returned. If type is SuiteInfo.ST_LIBRARY then LibSuite is returned.

Parameters:
vendor - vendor name of the requested suite
name - the name of the suite
Returns:
suite descriptor of the application or null if no application was found

getSuites

SuiteInfo[] getSuites(int types)
Request a list of installed suites of specified types.

Parameters:
types - combination of SuiteInfo type flags ST_APPLICATION, ST_LIBRARY and ST_LINK
Returns:
an array of suite descriptors.

getAppSuites

AppSuite[] getAppSuites()
Request a list of installed applications.

Returns:
an array of suite descriptors.

getLibSuites

LibSuite[] getLibSuites()
Request a list of dynamic components.

Returns:
an array of suite descriptors.

getLinkSuites

SuiteInfo[] getLinkSuites()
Request a list of added links.

Returns:
an array of suite descriptors.

setStatusListener

void setStatusListener(SuiteStoreListener theListener)
Assigns the suite store status listener

Parameters:
theListener - SuiteStoreListener implementation or null to remove any listener
NB: SuiteInfo provided by the SuiteStoreManager as a parameter for SuiteStoreListener.notifySuiteInstalling(SuiteInfo suite) has only information from application descriptor about suite name (see SuiteInfo.getName()) and suite vendor (see SuiteInfo.getVendor()). Result of calling any other method of provided SuiteInfo is undefined.

Oracle Java Wireless Client

Copyright (c) 1990, 2012, Oracle and/or its affiliates. All rights reserved.