Class RowDetails
java.lang.Object
org.apache.juneau.petstore.console.pages.RowDetails
The expandable row details of the console tables, shared by the page builders (which only need the declaration) and
the resources that serve them (which pass a real lookup).
A bean-backed detail lists its fields explicitly, so the resource that serves it never depends on having been attached to a table. Each field list equals the columns of the table it opens from, hidden ones included.
Example:
-
Method Summary
Modifier and TypeMethodDescriptionstatic RowDetailaudit()static RowDetailchange()static RowDetailhistory()static RowDetailorder()static RowDetailThe Orders and Store recent-orders detail: Details and the ordered pet.static RowDetailpet()static RowDetailThe Pets table detail: Details, this pet's orders and its history.static RowDetailsoldPet()static RowDetailThe Sold table detail: the columns that table shows, and this pet's orders.static RowDetailuser()static RowDetailuser(Function<String, UsersRest.UserView> lookup) The Users table detail: Details and the orders this user placed.
-
Method Details
-
pet
- Returns:
- The Pets table detail, for building a page.
-
pet
The Pets table detail: Details, this pet's orders and its history.- Parameters:
lookup- Finds a pet by row id, or returnsnull .- Returns:
- A new detail.
-
soldPet
- Returns:
- The Sold table detail, for building a page.
-
soldPet
The Sold table detail: the columns that table shows, and this pet's orders.- Parameters:
lookup- Finds a pet by row id, or returnsnull .- Returns:
- A new detail.
-
order
- Returns:
- The Orders and Store tables' detail, for building a page.
-
order
The Orders and Store recent-orders detail: Details and the ordered pet.- Parameters:
lookup- Finds an order by row id, or returnsnull .- Returns:
- A new detail.
-
user
- Returns:
- The Users table detail, for building a page.
-
user
The Users table detail: Details and the orders this user placed. It servesUserView, so a password, email or phone never leaves the server.- Parameters:
lookup- Finds a user by row id (the username), or returnsnull .- Returns:
- A new detail.
-
change
- Returns:
- The Pending changes table detail.
-
audit
- Returns:
- The Audit table detail.
-
history
- Returns:
- The pet History table detail.
-