Record Class IdFMAdminUsersData
java.lang.Object
java.lang.Record
com.io7m.idstore.server.service.templating.IdFMAdminUsersData
- Record Components:
htmlTitle- The page titlepageHeaderTitle- The page header titleusers- The userspagePreviousAvailable- There is a previous pagepageNextAvailable- There is a next pagepageNumber- The page numberpageCount- The page countsearch- The search query
- All Implemented Interfaces:
IdFMDataModelType
public record IdFMAdminUsersData(String htmlTitle, String pageHeaderTitle, List<IdUserSummary> users, boolean pagePreviousAvailable, boolean pageNextAvailable, int pageNumber, long pageCount, Optional<String> search)
extends Record
implements IdFMDataModelType
Data for the "users" admin screen template.
-
Constructor Summary
ConstructorsConstructorDescriptionIdFMAdminUsersData(String htmlTitle, String pageHeaderTitle, List<IdUserSummary> users, boolean pagePreviousAvailable, boolean pageNextAvailable, int pageNumber, long pageCount, Optional<String> search) Data for the "users" admin screen template. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thehtmlTitlerecord component.longReturns the value of thepageCountrecord component.Returns the value of thepageHeaderTitlerecord component.booleanReturns the value of thepageNextAvailablerecord component.intReturns the value of thepageNumberrecord component.booleanReturns the value of thepagePreviousAvailablerecord component.search()Returns the value of thesearchrecord component.final StringtoString()Returns a string representation of this record class.users()Returns the value of theusersrecord component.
-
Constructor Details
-
IdFMAdminUsersData
public IdFMAdminUsersData(String htmlTitle, String pageHeaderTitle, List<IdUserSummary> users, boolean pagePreviousAvailable, boolean pageNextAvailable, int pageNumber, long pageCount, Optional<String> search) Data for the "users" admin screen template.- Parameters:
htmlTitle- The page titlepageHeaderTitle- The page header titleusers- The userspagePreviousAvailable- There is a previous pagepageNextAvailable- There is a next pagepageNumber- The page numberpageCount- The page countsearch- The search query
-
-
Method Details
-
toTemplateHash
- Specified by:
toTemplateHashin interfaceIdFMDataModelType- Returns:
- The data as a freemarker template hash
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
htmlTitle
-
pageHeaderTitle
Returns the value of thepageHeaderTitlerecord component.- Returns:
- the value of the
pageHeaderTitlerecord component
-
users
-
pagePreviousAvailable
public boolean pagePreviousAvailable()Returns the value of thepagePreviousAvailablerecord component.- Returns:
- the value of the
pagePreviousAvailablerecord component
-
pageNextAvailable
public boolean pageNextAvailable()Returns the value of thepageNextAvailablerecord component.- Returns:
- the value of the
pageNextAvailablerecord component
-
pageNumber
public int pageNumber()Returns the value of thepageNumberrecord component.- Returns:
- the value of the
pageNumberrecord component
-
pageCount
-
search
-