1 31 32 package org.opencms.workplace.tools.accounts; 33 34 import org.opencms.file.CmsUser; 35 import org.opencms.jsp.CmsJspActionElement; 36 import org.opencms.main.CmsException; 37 38 import java.util.Map ; 39 40 import javax.servlet.http.HttpServletRequest ; 41 import javax.servlet.http.HttpServletResponse ; 42 import javax.servlet.jsp.PageContext ; 43 44 53 public class CmsEditUserDialog extends A_CmsEditUserDialog { 54 55 60 public CmsEditUserDialog(CmsJspActionElement jsp) { 61 62 super(jsp); 63 } 64 65 72 public CmsEditUserDialog(PageContext context, HttpServletRequest req, HttpServletResponse res) { 73 74 this(new CmsJspActionElement(context, req, res)); 75 } 76 77 80 protected CmsUser createUser(String name, String pwd, String desc, Map info) throws CmsException { 81 82 return getCms().createUser(name, pwd, desc, info); 83 } 84 85 88 protected String getListClass() { 89 90 return CmsUsersList.class.getName(); 91 } 92 93 96 protected String getListRootPath() { 97 98 return "/accounts/users"; 99 } 100 101 104 protected boolean isEditable(CmsUser user) { 105 106 return true; 107 } 108 109 112 protected void writeUser(CmsUser user) throws CmsException { 113 114 getCms().writeUser(user); 115 } 116 } | Popular Tags |