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
ConstructorDescriptionIdFMAdminUsersData
(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 boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of thehtmlTitle
record component.long
Returns the value of thepageCount
record component.Returns the value of thepageHeaderTitle
record component.boolean
Returns the value of thepageNextAvailable
record component.int
Returns the value of thepageNumber
record component.boolean
Returns the value of thepagePreviousAvailable
record component.search()
Returns the value of thesearch
record component.final String
toString()
Returns a string representation of this record class.users()
Returns the value of theusers
record 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:
toTemplateHash
in interfaceIdFMDataModelType
- Returns:
- The data as a freemarker template hash
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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
Returns the value of thehtmlTitle
record component.- Returns:
- the value of the
htmlTitle
record component
-
pageHeaderTitle
Returns the value of thepageHeaderTitle
record component.- Returns:
- the value of the
pageHeaderTitle
record component
-
users
Returns the value of theusers
record component.- Returns:
- the value of the
users
record component
-
pagePreviousAvailable
public boolean pagePreviousAvailable()Returns the value of thepagePreviousAvailable
record component.- Returns:
- the value of the
pagePreviousAvailable
record component
-
pageNextAvailable
public boolean pageNextAvailable()Returns the value of thepageNextAvailable
record component.- Returns:
- the value of the
pageNextAvailable
record component
-
pageNumber
public int pageNumber()Returns the value of thepageNumber
record component.- Returns:
- the value of the
pageNumber
record component
-
pageCount
public long pageCount()Returns the value of thepageCount
record component.- Returns:
- the value of the
pageCount
record component
-
search
Returns the value of thesearch
record component.- Returns:
- the value of the
search
record component
-