java.lang.Object
com.sample.addressbook.controller.components.search.SearchController
- All Implemented Interfaces:
- com.aendvari.cerberus.component.assembly.AssembledComponent
- public class SearchController
- extends java.lang.Object
- implements com.aendvari.cerberus.component.assembly.AssembledComponent
Manages search request.
When an item is "selected", this component sets the id of the selected value
into the sending message under the name "itemId". To extract that id while in the
listening component of the send message, use the following code:
String itemId = message.getProperties().getString("itemId");
The message sent to respond to the "selected" action, is determined in the configuration
of this search component. See the message "select" in SearchController.xml
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
descriptor
protected com.aendvari.cerberus.component.descriptor.ComponentDescriptor descriptor
model
protected java.lang.String model
pageNumber
protected java.lang.String pageNumber
entriesPerPage
protected int entriesPerPage
SearchController
public SearchController()
- Constructs a
SearchController instance.
createComponent
public void createComponent(com.aendvari.cerberus.component.assembly.AssemblyContext context,
com.aendvari.cerberus.component.descriptor.ComponentDescriptor descriptor)
- Creates the component based on the provided descriptor.
The com.aendvari.cerberus.component.assembly.AssemblyContext object is transient and should not be retained
by the component.
The com.aendvari.cerberus.component.descriptor.ComponentDescriptor may be retained by the component.
- Specified by:
createComponent in interface com.aendvari.cerberus.component.assembly.AssembledComponent
setPageData
private void setPageData(com.aendvari.hermes.broker.Message message)