Package net.rim.device.api.unifiedsearch.searchables.adapters

Examples of net.rim.device.api.unifiedsearch.searchables.adapters.EntityBasedSearchableProvider


     *             if registration to the Unified Search Framework fails
     */
    public UnifiedSearchDemoPublisher() throws PublisherException {
        // Instantiate an EntityBasedSearchableProvider. This is the object
        // that allows data belonging to this application to become searchable.
        _searchableProvider = new EntityBasedSearchableProvider();
        _searchableProvider.setPrivacyLevel(ExposureLevel.LEVEL_PUBLIC);
        _searchableProvider
                .setType(SearchableContentTypeConstants.CONTENT_TYPE_BROWSER
                        | SearchableContentTypeConstants.CONTENT_TYPE_CONTACTS
                        | SearchableContentTypeConstants.CONTENT_TYPE_LOCATION);
View Full Code Here


        for (int i = size - 1; i >= 0; --i) {
            final String data = entities[i].getSummary();

            // Check if the data is a well formed email address
            if (validateEmail(data)) {
                final EntityBasedSearchableProvider searchable =
                        (EntityBasedSearchableProvider) entities[i]
                                .getSearchable();
                final SearchField[] fields =
                        searchable.getSupportedSearchFields();

                // Go through all the SeachFields for the particular
                // UnifiedSearchDemoEntity
                for (int j = 0; j < fields.length; j++) {
                    // Create the criteria that will be added
View Full Code Here

TOP

Related Classes of net.rim.device.api.unifiedsearch.searchables.adapters.EntityBasedSearchableProvider

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.