Example usage for com.liferay.portal.kernel.servlet.taglib.ui FormNavigatorEntry getCategoryKey

List of usage examples for com.liferay.portal.kernel.servlet.taglib.ui FormNavigatorEntry getCategoryKey

Introduction

In this page you can find the example usage for com.liferay.portal.kernel.servlet.taglib.ui FormNavigatorEntry getCategoryKey.

Prototype

public String getCategoryKey();

Source Link

Document

Returns the category key where the form navigator entry will be included.

Usage

From source file:com.liferay.frontend.taglib.form.navigator.internal.osgi.commands.FormNavigatorOSGiCommands.java

License:Open Source License

@Activate
protected void activate(BundleContext bundleContext) {
    _formNavigatorEntries = ServiceTrackerListFactory.open(bundleContext, FormNavigatorEntry.class);
    _formNavigatorEntriesMap = ServiceTrackerMapFactory.openMultiValueMap(bundleContext,
            FormNavigatorEntry.class, null, (serviceReference, emitter) -> {
                FormNavigatorEntry formNavigatorEntry = bundleContext.getService(serviceReference);

                String key = _getKey(formNavigatorEntry.getFormNavigatorId(),
                        formNavigatorEntry.getCategoryKey());

                emitter.emit(key);//from ww  w  .j av a 2  s .  com

                bundleContext.ungetService(serviceReference);
            });
}