Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Genesys PGR
Genesys Backend
Commits
9e6ead01
Commit
9e6ead01
authored
Oct 16, 2013
by
Matija Obreza
Browse files
Description of CreateContentListener
parent
36af99f1
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/org/genesys2/server/listener/sample/CreateContentListener.java
View file @
9e6ead01
...
...
@@ -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
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment