mirror of
https://github.com/Kingsrook/qqq.git
synced 2025-07-18 05:01:07 +00:00
Add some withers
This commit is contained in:
@ -452,4 +452,15 @@ public class QSession implements Serializable
|
||||
return (this.permissions);
|
||||
}
|
||||
|
||||
|
||||
/*******************************************************************************
|
||||
** Fluent setter for user
|
||||
*******************************************************************************/
|
||||
public QSession withUser(QUser user)
|
||||
{
|
||||
this.user = user;
|
||||
return (this);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
@ -84,4 +84,26 @@ public class QUser
|
||||
{
|
||||
return ("QUser{" + idReference + "," + fullName + "}");
|
||||
}
|
||||
|
||||
/*******************************************************************************
|
||||
** Fluent setter for idReference
|
||||
*******************************************************************************/
|
||||
public QUser withIdReference(String idReference)
|
||||
{
|
||||
this.idReference = idReference;
|
||||
return (this);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*******************************************************************************
|
||||
** Fluent setter for fullName
|
||||
*******************************************************************************/
|
||||
public QUser withFullName(String fullName)
|
||||
{
|
||||
this.fullName = fullName;
|
||||
return (this);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user