Class IdAFormatterPretty
java.lang.Object
com.io7m.idstore.shell.admin.internal.formatting.IdAFormatterPretty
- All Implemented Interfaces:
IdAFormatterType
A pretty formatter.
-
Constructor Summary
ConstructorDescriptionIdAFormatterPretty
(org.jline.terminal.Terminal inTerminal) A pretty formatter. -
Method Summary
Modifier and TypeMethodDescriptionvoid
formatAdmin
(IdAdmin admin) Format an admin.void
formatAdmins
(IdPage<IdAdminSummary> page) Format a page of admins.void
formatAudits
(IdPage<IdAuditEvent> page) Format a page of audit events.void
formatLoginHistory
(List<IdLogin> history) Format a history.void
formatUser
(IdUser user) Format a user.void
formatUsers
(IdPage<IdUserSummary> page) Format a page of users.toString()
-
Constructor Details
-
IdAFormatterPretty
public IdAFormatterPretty(org.jline.terminal.Terminal inTerminal) A pretty formatter.- Parameters:
inTerminal
- The terminal
-
-
Method Details
-
toString
-
formatAdmin
Description copied from interface:IdAFormatterType
Format an admin.- Specified by:
formatAdmin
in interfaceIdAFormatterType
- Parameters:
admin
- The admin- Throws:
Exception
- On errors
-
formatAdmins
Description copied from interface:IdAFormatterType
Format a page of admins.- Specified by:
formatAdmins
in interfaceIdAFormatterType
- Parameters:
page
- The page- Throws:
Exception
- On errors
-
formatAudits
Description copied from interface:IdAFormatterType
Format a page of audit events.- Specified by:
formatAudits
in interfaceIdAFormatterType
- Parameters:
page
- The page- Throws:
Exception
- On errors
-
formatUsers
Description copied from interface:IdAFormatterType
Format a page of users.- Specified by:
formatUsers
in interfaceIdAFormatterType
- Parameters:
page
- The page- Throws:
Exception
- On errors
-
formatLoginHistory
Description copied from interface:IdAFormatterType
Format a history.- Specified by:
formatLoginHistory
in interfaceIdAFormatterType
- Parameters:
history
- The history- Throws:
Exception
- On errors
-
formatUser
Description copied from interface:IdAFormatterType
Format a user.- Specified by:
formatUser
in interfaceIdAFormatterType
- Parameters:
user
- The user- Throws:
Exception
- On errors
-