Velocity Templates
The reg-apps makes use of the velocity library on several occasions. Velocity is a templating engine. It makes use of variables that are defined as an environmet for the template rendering process. These variables are set if they are available at the point of the rendering. Ie. the e-mail template, which can be sent on the initial user creation, only contains the user object. As for the e-mail template, which can be sent on a service registration, contains the user, service and regisry object.
Template language
How the velocity template language works is described on the project homepage: Velocity 1.7 Documentation
Variable names
Name | Class | Availability |
---|---|---|
user | edu.kit.scc.webreg.entity.UserEntity | user creation, service (de-)register, registry status change, LDAP templates |
service | edu.kit.scc.webreg.entity.ServiceEntity | service (de-)register, registry status change |
registry | edu.kit.scc.webreg.entity.RegistryEntity | service (de-)register, registry status change |
homeId | String | LDAP templates (contains the bwidmOrgId) |
homeUid | String | LDAP templates (contains the UserID) |
reconMap | Map<String, String> | LDAP templates (contains resolved values) |