@@ -0,0 +1,2368 @@
+/**%0A * %0A */%0Apackage com.github.podd.resources;%0A%0Aimport java.util.Collections;%0Aimport java.util.HashMap;%0Aimport java.util.Map;%0Aimport java.util.Set;%0A%0Aimport org.openrdf.model.URI;%0Aimport org.restlet.data.MediaType;%0Aimport org.restlet.data.Status;%0Aimport org.restlet.representation.Representation;%0Aimport org.restlet.resource.Get;%0Aimport org.restlet.resource.ResourceException;%0Aimport org.restlet.security.Role;%0Aimport org.restlet.security.User;%0Aimport org.slf4j.Logger;%0Aimport org.slf4j.LoggerFactory;%0A%0Aimport com.github.podd.restlet.PoddAction;%0Aimport com.github.podd.restlet.PoddSesameRealm;%0Aimport com.github.podd.restlet.PoddWebServiceApplication;%0Aimport com.github.podd.restlet.RestletUtils;%0Aimport com.github.podd.utils.PoddUser;%0Aimport com.github.podd.utils.PoddWebConstants;%0A%0A/**%0A * %0A * User Add resource%0A * %0A * @author kutila%0A * %0A */%0Apublic class UserAddResourceImpl extends AbstractPoddResourceImpl%0A%7B%0A    %0A    private final Logger log = LoggerFactory.getLogger(this.getClass());%0A    %0A    @Get%0A    public Representation getUserDetailsPageHtml(final Representation entity) throws ResourceException%0A    %7B%0A        this.log.info(%22addUserHtml%22);%0A        %0A        final User user = this.getRequest().getClientInfo().getUser();%0A        this.log.info(%22authenticated user: %7B%7D%22, user);%0A        %0A        // identify needed Action%0A        PoddAction action = PoddAction.USER_CREATE;%0A        %0A        this.checkAuthentication(action, Collections.%3CURI%3E emptySet());%0A        // completed checking authorization%0A        %0A        final Map%3CString, Object%3E dataModel = RestletUtils.getBaseDataModel(this.getRequest());%0A        dataModel.put(%22contentTemplate%22, %22admin_createUser.html.ftl%22);%0A        dataModel.put(%22pageTitle%22, %22Add PODD User Page%22);%0A        dataModel.put(%22authenticatedUsername%22, user.getIdentifier());%0A        %0A        final PoddSesameRealm realm = ((PoddWebServiceApplication)this.getApplication()).getRealm();%0A        %0A        //FIXME - complete necessary info for Add User page%0A        %0A        %0A        // Output the base template, with contentTemplate from the dataModel defining the%0A        // template to use for the content in the body of the page%0A        return RestletUtils.getHtmlRepresentation(PoddWebConstants.PROPERTY_TEMPLATE_BASE, dataModel,%0A                MediaType.TEXT_HTML, this.getPoddApplication().getTemplateConfiguration());%0A    %7D%0A    %0A%7D

work in progress Add User Resource