Class UserResource
- java.lang.Object
-
- no.priv.bang.authservice.web.security.resources.HtmlTemplateResource
-
- no.priv.bang.authservice.web.security.resources.LoggedInUserResource
-
- no.priv.bang.authservice.web.security.resources.UserResource
-
@Path("/user") public class UserResource extends LoggedInUserResource
-
-
Field Summary
Fields Modifier and Type Field Description (package private) String
htmlFile
(package private) org.osgi.service.log.LogService
logservice
(package private) no.priv.bang.osgiservice.users.UserManagementService
useradmin
-
Constructor Summary
Constructors Constructor Description UserResource()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) org.jsoup.nodes.FormElement
fillFormValues(org.jsoup.nodes.Document html, String email, String firstname, String lastname)
javax.ws.rs.core.Response
get()
private org.jsoup.nodes.Document
loadHtmlFileAndFillForm(no.priv.bang.osgiservice.users.User user)
(package private) static void
setMessage(org.jsoup.nodes.Document html, String message)
javax.ws.rs.core.Response
submit(String email, String firstname, String lastname)
-
Methods inherited from class no.priv.bang.authservice.web.security.resources.LoggedInUserResource
findLoggedInUser
-
Methods inherited from class no.priv.bang.authservice.web.security.resources.HtmlTemplateResource
getClasspathResource, loadHtmlFile, loadHtmlFileAndSetMessage, setError
-
-
-
-
Field Detail
-
htmlFile
String htmlFile
-
logservice
@Inject org.osgi.service.log.LogService logservice
-
useradmin
@Inject no.priv.bang.osgiservice.users.UserManagementService useradmin
-
-
Method Detail
-
get
@GET @Produces("text/html") public javax.ws.rs.core.Response get()
-
submit
@POST @Produces("text/html") public javax.ws.rs.core.Response submit(@FormParam("email") String email, @FormParam("firstname") String firstname, @FormParam("lastname") String lastname)
-
fillFormValues
org.jsoup.nodes.FormElement fillFormValues(org.jsoup.nodes.Document html, String email, String firstname, String lastname)
-
loadHtmlFileAndFillForm
private org.jsoup.nodes.Document loadHtmlFileAndFillForm(no.priv.bang.osgiservice.users.User user) throws IOException
- Throws:
IOException
-
setMessage
static void setMessage(org.jsoup.nodes.Document html, String message)
-
-