S - The type of the builder instance.public static class RoleDTO.Builder<S extends RoleDTO.Builder>
extends java.lang.Object
| Modifier and Type | Field and Description | 
|---|---|
| protected AuditDTO | auditThe audit information of the role. | 
| protected java.lang.String | nameThe name of the role. | 
| protected java.util.Map<java.lang.String,java.lang.String> | propertiesThe properties of the role. | 
| protected SecurableObjectDTO[] | securableObjectsThe securable objects of the role. | 
| Constructor and Description | 
|---|
| Builder() | 
| Modifier and Type | Method and Description | 
|---|---|
| RoleDTO | build()Builds an instance of RoleDTO using the builder's properties. | 
| S | withAudit(AuditDTO audit)Sets the audit information of the role. | 
| S | withName(java.lang.String name)Sets the name of the role. | 
| S | withProperties(java.util.Map<java.lang.String,java.lang.String> properties)Sets the properties of the role. | 
| S | withSecurableObjects(SecurableObjectDTO[] securableObjects)Sets the securable objects of the role. | 
protected java.lang.String name
protected AuditDTO audit
protected java.util.Map<java.lang.String,java.lang.String> properties
protected SecurableObjectDTO[] securableObjects
public S withName(java.lang.String name)
name - The name of the role.public S withProperties(java.util.Map<java.lang.String,java.lang.String> properties)
properties - The properties of the role.public S withSecurableObjects(SecurableObjectDTO[] securableObjects)
securableObjects - The securable objects of the role.public S withAudit(AuditDTO audit)
audit - The audit information of the role.public RoleDTO build()
java.lang.IllegalArgumentException - If the name or audit are not set.