This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Authenticated("my-authenticator") | |
@Route(method = HttpMethod.GET, uri = "/protected") | |
public Result protectedArea() { | |
return ok(render(protectedView, "user", new UserHelper())); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Component | |
@Provides | |
@Instantiate | |
public class MyAuthenticator implements Authenticator { | |
/** | |
* The famous {@link org.slf4j.Logger} | |
*/ | |
private static final Logger logger = LoggerFactory.getLogger(MyAuthenticator.class); | |
@Override |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head lang="en"> | |
<meta charset="UTF-8"/> | |
<title>Protected area</title> | |
<meta charset="UTF-8"/> | |
<meta name="viewport" content="width=device-width, initial-scale=1"/> | |
</head> | |
<body> | |
<p th:if="${user.isAdmin()}">I'm the admin so be nice with me</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
org.thymeleaf.exceptions.TemplateProcessingException: Unable to resolve class: mypackage.helper.UserHelper (application:64) | |
at org.wisdom.template.thymeleaf.impl.WisdomTemplateEngine.process(WisdomTemplateEngine.java:101) ~[na:na] | |
at org.wisdom.template.thymeleaf.impl.ThymeLeafTemplateImplementation.render(ThymeLeafTemplateImplementation.java:119) ~[na:na] | |
at org.wisdom.api.templates.Template$$Proxy.render(Unknown Source) ~[na:na] | |
at org.wisdom.api.DefaultController.render(DefaultController.java:178) ~[wisdom-api-0.6.2.jar:na] | |
at mypackage.UserController.__M_index(UserController.java:56) ~[na:na] | |
at mypackage.UserController.index(UserController.java) ~[na:na] | |
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_05] | |
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_05] | |
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_05] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
org.thymeleaf.exceptions.TemplateProcessingException: Unable to resolve class: mypackage.helper.UserHelper (application:64) | |
at org.wisdom.template.thymeleaf.impl.WisdomTemplateEngine.process(WisdomTemplateEngine.java:101) ~[na:na] | |
at org.wisdom.template.thymeleaf.impl.ThymeLeafTemplateImplementation.render(ThymeLeafTemplateImplementation.java:119) ~[na:na] | |
at org.wisdom.api.templates.Template$$Proxy.render(Unknown Source) ~[na:na] | |
at org.wisdom.api.DefaultController.render(DefaultController.java:178) ~[wisdom-api-0.6.2.jar:na] | |
at mypackage.UserController.__M_index(UserController.java:56) ~[na:na] | |
at mypackage.UserController.index(UserController.java) ~[na:na] | |
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_05] | |
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_05] | |
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_05] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### | |
# Build: | |
# docker build -t wisdom/acme-sample . | |
# | |
# Run: | |
# docker run -d -p 9000:9000 wisdom/acme-sample | |
# | |
# Optional volumes: | |
# - Logs: /root/wisdom/logs | |
# - Applications (where app bundles live): /root/wisdom/application |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<profiles> | |
<profile> | |
<id>deploy</id> | |
<properties> | |
<beanstalker-serverId>aws.amazon.com</beanstalker-serverId> | |
<beanstalker.region>eu-west-1</beanstalker.region> | |
<maven.install.skip>true</maven.install.skip> | |
<maven.deploy.skip>true</maven.deploy.skip> | |
<beanstalk.applicationName>cloud-test</beanstalk.applicationName> | |
<beanstalk.cnamePrefix>cloudtest-env</beanstalk.cnamePrefix> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM dockerfile/java:oracle-java8 | |
# Add the wisdom distribution | |
ADD . /root/wisdom | |
# Expose the port 9000 | |
EXPOSE 9000 | |
# Volumes | |
VOLUME /root/wisdom/logs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM dockerfile/java:oracle-java8 | |
# Add the wisdom distribution | |
ADD . /root/wisdom | |
# Expose the port 9000 | |
EXPOSE 9000 | |
# Volumes | |
VOLUME /root/wisdom/logs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "cloud-repository", | |
"workspaces": { | |
"predefined": ["otherWorkspace"], | |
"default": "default", | |
"allowCreation": true | |
}, | |
"security": { | |
"anonymous": { | |
"roles": ["readonly", "readwrite", "admin"], |