Package org.apache.unomi.shell.commands
Class RuleList
- java.lang.Object
-
- org.apache.unomi.shell.commands.ListCommandSupport
-
- org.apache.unomi.shell.commands.RuleList
-
- All Implemented Interfaces:
org.apache.karaf.shell.api.action.Action
public class RuleList extends ListCommandSupport
-
-
Constructor Summary
Constructors Constructor Description RuleList()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected DataTable
buildDataTable()
Build a DataTable object that contains all the data for the object.protected String[]
getHeaders()
Returns a String array containing the header names for the table-
Methods inherited from class org.apache.unomi.shell.commands.ListCommandSupport
execute
-
-
-
-
Method Detail
-
getHeaders
protected String[] getHeaders()
Description copied from class:ListCommandSupport
Returns a String array containing the header names for the table- Specified by:
getHeaders
in classListCommandSupport
- Returns:
- a String array with the headers that will be used to render the table
-
buildDataTable
protected DataTable buildDataTable()
Description copied from class:ListCommandSupport
Build a DataTable object that contains all the data for the object. Note that you might want to sort the data inside this method.- Specified by:
buildDataTable
in classListCommandSupport
- Returns:
- a populated (and optionally sorted) DataTable object ready to be rendered either as a rendered table or as CSV
-
-