Package nzilbb.labbcat.model
Class Role
- java.lang.Object
-
- nzilbb.labbcat.model.Role
-
public class Role extends Object
User role record.- Author:
- Robert Fromont robert@fromont.net.nz
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDescription()Getter fordescription: Description of the role.StringgetRoleId()Getter forroleId: Role name/ID.RolesetDescription(String newDescription)Setter fordescription: Description of the role.RolesetRoleId(String newRoleId)Setter forroleId: Role name/ID.javax.json.JsonObjecttoJson()Serializes the object to JSON.
-
-
-
Method Detail
-
getRoleId
public String getRoleId()
Getter forroleId: Role name/ID.- Returns:
- Role name/ID.
-
setRoleId
public Role setRoleId(String newRoleId)
Setter forroleId: Role name/ID.- Parameters:
newRoleId- Role name/ID.- Returns:
- A reference to this object, so that setters can be chained.
-
getDescription
public String getDescription()
Getter fordescription: Description of the role.- Returns:
- Description of the role.
-
setDescription
public Role setDescription(String newDescription)
Setter fordescription: Description of the role.- Parameters:
newDescription- Description of the role.- Returns:
- A reference to this object, so that setters can be chained.
-
toJson
public javax.json.JsonObject toJson()
Serializes the object to JSON.- Returns:
- A JSON serialization of the object.
-
-