Commit 9e6ead01 authored by Matija Obreza's avatar Matija Obreza
Browse files

Description of CreateContentListener

parent 36af99f1
......@@ -33,6 +33,25 @@ import org.springframework.stereotype.Component;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
/**
* This startup listener enumerates the resources in "default-content" directory
* of this package. Each resource name represents a content slug (URL) of a
* global content article and the contents is a JSON map of languages with
* {"title":"..", "body":".."} values.
*
* <pre>
* {
* "en": {
* "title": "Your user account is created",
* "body": "The user account is now registered. You may use it to log in."
* }, "sl": {
* ...
* }
* }
* </pre>
*
* @author mobreza
*/
@Component
public class CreateContentListener extends RunAsAdminListener {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment