| |
|
| org.opencms.workplace.CmsDialog org.opencms.workplace.CmsWidgetDialog org.opencms.workplace.tools.accounts.A_CmsEditUserDialog
All known Subclasses: com.alkacon.opencms.newsletter.admin.CmsEditSubscriberDialog, org.opencms.workplace.tools.accounts.CmsEditUserDialog,
A_CmsEditUserDialog | abstract public class A_CmsEditUserDialog extends CmsWidgetDialog (Code) | | Dialog to edit new or existing user in the administration view.
author: Michael Moossen version: $Revision: 1.12 $ since: 6.0.0 |
Field Summary | |
final public static String | KEY_PREFIX localized messages Keys prefix. | final public static String[] | PAGES Defines which pages are valid for this dialog. | final public static String | PARAM_USERID Request parameter name for the user id. | protected CmsUser | m_user The user object that is edited on this dialog. |
KEY_PREFIX | final public static String KEY_PREFIX(Code) | | localized messages Keys prefix.
|
PAGES | final public static String[] PAGES(Code) | | Defines which pages are valid for this dialog.
|
PARAM_USERID | final public static String PARAM_USERID(Code) | | Request parameter name for the user id.
|
m_user | protected CmsUser m_user(Code) | | The user object that is edited on this dialog.
|
A_CmsEditUserDialog | public A_CmsEditUserDialog(CmsJspActionElement jsp)(Code) | | Public constructor with JSP action element.
Parameters: jsp - an initialized JSP action element |
actionCommit | public void actionCommit()(Code) | | Commits the edited user to the db.
|
createDialogHtml | protected String createDialogHtml(String dialog)(Code) | | Creates the dialog HTML for all defined widgets of the named dialog (page).
This overwrites the method from the super class to create a layout variation for the widgets.
Parameters: dialog - the dialog (page) to get the HTML for the dialog HTML for all defined widgets of the named dialog (page) |
createUser | abstract protected CmsUser createUser(String name, String pwd, String desc, Map info) throws CmsException(Code) | | Creates a new user.
Parameters: name - the name Parameters: pwd - the password Parameters: desc - the description Parameters: info - the additional information map the new user throws: CmsException - if something goes wrong |
defineWidgets | protected void defineWidgets()(Code) | | Creates the list of widgets for this dialog.
|
getAssignedOu | public String getAssignedOu()(Code) | | Returns the description of the parent ou.
the description of the parent ou |
getDescription | public String getDescription()(Code) | | Returns the localized description of the user if the description is a key.
the localized description of the user if the description is a key |
getGroup | public String getGroup()(Code) | | Returns the group.
the group |
getLanguage | public String getLanguage()(Code) | | Returns the language.
the language |
getListClass | abstract protected String getListClass()(Code) | | Returns the dialog class name of the list to refresh.
the list dialog class name |
getListRootPath | abstract protected String getListRootPath()(Code) | | Returns the root path for the list tool.
the root path |
getName | public String getName()(Code) | | Returns the simple name of the user object.
the simple name of the user object |
getParamOufqn | public String getParamOufqn()(Code) | | Returns the organizational unit fqn parameter value.
the organizational unit fqn parameter value |
getParamUserid | public String getParamUserid()(Code) | | Returns the user id parameter value.
the user id parameter value |
getPwdInfo | public CmsPasswordInfo getPwdInfo()(Code) | | Returns the password information.
the password information |
getSite | public String getSite()(Code) | | Returns the site.
the site |
initUserObject | protected void initUserObject()(Code) | | Initializes the user object to work with depending on the dialog state and request parameters.
Two initializations of the user object on first dialog call are possible:
- edit an existing user
- create a new user
|
isEditable | abstract protected boolean isEditable(CmsUser user)(Code) | | Tests if the given user is editable or not.
Not editable means that the user can only be activated and deactivated.
Parameters: user - the user to test the editable flag |
isNewUser | protected boolean isNewUser()(Code) | | Checks if the new user dialog has to be displayed.
true if the new user dialog has to be displayed |
isPwdChangeAllowed | protected boolean isPwdChangeAllowed(CmsUser user)(Code) | | Indicates if the pwd can be edited or not.
Parameters: user - the edited cms user true if the pwd can be edited |
isSelfManagement | public boolean isSelfManagement()(Code) | | Returns the selfManagement.
the selfManagement |
setAssignedOu | public void setAssignedOu(String assignedOu)(Code) | | This method is only needed for displaying reasons.
Parameters: assignedOu - nothing to do with this parameter |
setDescription | public void setDescription(String description)(Code) | | Sets the description for the user.
Parameters: description - the description for the user |
setGroup | public void setGroup(String group)(Code) | | Sets the group.
Parameters: group - the group to set |
setLanguage | public void setLanguage(String language)(Code) | | Sets the language.
Parameters: language - the language to set |
setName | public void setName(String name)(Code) | | Sets the name of the user object.
Parameters: name - the name of the user object |
setParamOufqn | public void setParamOufqn(String ouFqn)(Code) | | Sets the organizational unit fqn parameter value.
Parameters: ouFqn - the organizational unit fqn parameter value |
setParamUserid | public void setParamUserid(String userId)(Code) | | Sets the user id parameter value.
Parameters: userId - the user id parameter value |
setSelfManagement | public void setSelfManagement(boolean selfManagement)(Code) | | Sets the selfManagement.
Parameters: selfManagement - the selfManagement to set |
setSite | public void setSite(String site)(Code) | | Sets the site.
Parameters: site - the site to set |
writeUser | abstract protected void writeUser(CmsUser user) throws CmsException(Code) | | Writes a user to the db.
Parameters: user - the user to write throws: CmsException - if something goes wrong |
Methods inherited from org.opencms.workplace.CmsWidgetDialog | public void actionCancel()(Code)(Java Doc) abstract public void actionCommit() throws IOException, ServletException(Code)(Java Doc) public void actionToggleElement()(Code)(Java Doc) protected void addCommitError(Exception error)(Code)(Java Doc) protected void addWidget(CmsWidgetDialogParameter param)(Code)(Java Doc) public String buildAddElement(String elementName, int insertAfter, boolean enabled)(Code)(Java Doc) public String buildDialogForm()(Code)(Java Doc) public String buildRemoveElement(String elementName, int index, boolean enabled)(Code)(Java Doc) public void clearDialogObject()(Code)(Java Doc) protected boolean closeDialogOnCommit()(Code)(Java Doc) protected List commitWidgetValues()(Code)(Java Doc) protected List commitWidgetValues(String dialogPage)(Code)(Java Doc) protected String createDialogHtml()(Code)(Java Doc) protected String createDialogHtml(String dialog)(Code)(Java Doc) protected String createDialogRowHtml(CmsWidgetDialogParameter base)(Code)(Java Doc) protected String createDialogRowsHtml(int startIndex, int endIndex)(Code)(Java Doc) protected String createWidgetBlockEnd()(Code)(Java Doc) protected String createWidgetBlockStart(String headline)(Code)(Java Doc) protected String createWidgetErrorHeader()(Code)(Java Doc) protected String createWidgetTableEnd()(Code)(Java Doc) protected String createWidgetTableStart()(Code)(Java Doc) protected String defaultActionHtml() throws JspException(Code)(Java Doc) protected String defaultActionHtmlContent()(Code)(Java Doc) protected String defaultActionHtmlEnd()(Code)(Java Doc) protected String defaultActionHtmlStart() throws JspException(Code)(Java Doc) abstract protected void defineWidgets()(Code)(Java Doc) public String dialogBlockEnd()(Code)(Java Doc) public String dialogBlockStart(String headline)(Code)(Java Doc) public String dialogButtonsCustom()(Code)(Java Doc) public void displayDialog() throws JspException, IOException, ServletException(Code)(Java Doc) public void displayDialog(boolean writeLater) throws JspException, IOException, ServletException(Code)(Java Doc) protected void fillWidgetValues(HttpServletRequest request)(Code)(Java Doc) public int getButtonStyle()(Code)(Java Doc) public List getCommitErrors()(Code)(Java Doc) public Object getDialogObject()(Code)(Java Doc) protected String getDialogTitle()(Code)(Java Doc) public Set getHelpMessageIds()(Code)(Java Doc) abstract protected String[] getPageArray()(Code)(Java Doc) protected List getPages()(Code)(Java Doc) public String getParamElementIndex()(Code)(Java Doc) public String getParamElementName()(Code)(Java Doc) public String getParamPage()(Code)(Java Doc) public String getParamValue(String name)(Code)(Java Doc) public String getParamValue(String name, int index)(Code)(Java Doc) protected CmsWidgetDialogParameter getParameterDefinition(String name)(Code)(Java Doc) protected Map getParameters()(Code)(Java Doc) public String getUserAgent()(Code)(Java Doc) protected List getValidationErrorList()(Code)(Java Doc) protected String getWidget(CmsWidgetDialogParameter param)(Code)(Java Doc) public String getWidgetHtmlEnd()(Code)(Java Doc) public String getWidgetIncludes() throws JspException(Code)(Java Doc) public String getWidgetInitCalls() throws JspException(Code)(Java Doc) public String getWidgetInitMethods() throws JspException(Code)(Java Doc) protected List getWidgets()(Code)(Java Doc) protected boolean hasCommitErrors()(Code)(Java Doc) protected boolean hasValidationErrors()(Code)(Java Doc) protected void initWorkplaceRequestValues(CmsWorkplaceSettings settings, HttpServletRequest request)(Code)(Java Doc) public String paramsAsHidden()(Code)(Java Doc) protected void setCommitErrors(List errors)(Code)(Java Doc) public void setDialogObject(Object dialogObject)(Code)(Java Doc) protected void setKeyPrefix(String prefix)(Code)(Java Doc) protected void setPages(List pages)(Code)(Java Doc) public void setParamElementIndex(String elementIndex)(Code)(Java Doc) public void setParamElementName(String elementName)(Code)(Java Doc) public void setParamPage(String paramPage)(Code)(Java Doc) protected void setValidationErrorList(List errors)(Code)(Java Doc) protected void validateParamaters() throws Exception(Code)(Java Doc) public String widgetParamsAsHidden()(Code)(Java Doc) public String widgetParamsAsHidden(String excludeDialogPage)(Code)(Java Doc) public void writeDialog() throws IOException, JspException(Code)(Java Doc)
|
Methods inherited from org.opencms.workplace.CmsDialog | public void actionCloseDialog() throws JspException(Code)(Java Doc) protected String appendDelimiter(String attribute)(Code)(Java Doc) public String buildAjaxResultContainer(String title)(Code)(Java Doc) protected String buildAjaxWaitMessage()(Code)(Java Doc) public String buildLockAdditionalOptions()(Code)(Java Doc) public String buildLockConfirmationMessageJS()(Code)(Java Doc) public String buildLockDialog() throws CmsException(Code)(Java Doc) public String buildLockDialog(CmsLockFilter nonBlockingFilter, CmsLockFilter blockingFilter, int hiddenTimeout, boolean includeRelated) throws CmsException(Code)(Java Doc) public String buildLockHeaderBox() throws CmsException(Code)(Java Doc) protected boolean checkResourcePermissions(CmsPermissionSet required, boolean neededForFolder)(Code)(Java Doc) protected boolean checkResourcePermissions(CmsPermissionSet required, boolean neededForFolder, CmsMessageContainer errorMessage)(Code)(Java Doc) protected String computeCurrentFolder()(Code)(Java Doc) public String dialog(int segment, String attributes)(Code)(Java Doc) public String dialogBlock(int segment, String headline, boolean error)(Code)(Java Doc) public String dialogBlockEnd()(Code)(Java Doc) public String dialogBlockStart(String headline)(Code)(Java Doc) public String dialogButtonRow(int segment)(Code)(Java Doc) public String dialogButtonRowEnd()(Code)(Java Doc) public String dialogButtonRowStart()(Code)(Java Doc) public String dialogButtons(int[] buttons, String[] attributes)(Code)(Java Doc) public String dialogButtonsClose()(Code)(Java Doc) public String dialogButtonsClose(String closeAttribute)(Code)(Java Doc) public String dialogButtonsCloseDetails(String closeAttribute, String detailsAttribute)(Code)(Java Doc) protected void dialogButtonsHtml(StringBuffer result, int button, String attribute)(Code)(Java Doc) public String dialogButtonsOk()(Code)(Java Doc) public String dialogButtonsOk(String okAttribute)(Code)(Java Doc) public String dialogButtonsOkCancel()(Code)(Java Doc) public String dialogButtonsOkCancel(String okAttributes, String cancelAttributes)(Code)(Java Doc) public String dialogButtonsOkCancelAdvanced(String okAttributes, String cancelAttributes, String advancedAttributes)(Code)(Java Doc) public String dialogButtonsSetOkCancel(String setAttributes, String okAttributes, String cancelAttributes)(Code)(Java Doc) public String dialogContent(int segment, String title)(Code)(Java Doc) public String dialogContentEnd()(Code)(Java Doc) public String dialogContentStart(String title)(Code)(Java Doc) public String dialogEnd()(Code)(Java Doc) public String dialogHead(String title)(Code)(Java Doc) public String dialogHorizontalSpacer(int width)(Code)(Java Doc) public String dialogLockButtons()(Code)(Java Doc) public String dialogRow(int segment)(Code)(Java Doc) public String dialogRowEnd()(Code)(Java Doc) public String dialogRowStart()(Code)(Java Doc) public String dialogScriptSubmit()(Code)(Java Doc) public String dialogSeparator()(Code)(Java Doc) public String dialogSpacer()(Code)(Java Doc) public String dialogStart()(Code)(Java Doc) public String dialogStart(String attributes)(Code)(Java Doc) public String dialogSubheadline(String headline)(Code)(Java Doc) public String dialogToggleStart(String headline, String id, boolean show)(Code)(Java Doc) public String dialogWhiteBox(int segment)(Code)(Java Doc) public String dialogWhiteBoxEnd()(Code)(Java Doc) public String dialogWhiteBoxStart()(Code)(Java Doc) public int getAction()(Code)(Java Doc) protected String getAdministrationBackLink()(Code)(Java Doc) public String getCancelAction()(Code)(Java Doc) public String getDialogRealUri()(Code)(Java Doc) public String getDialogUri()(Code)(Java Doc) public String getOnlineHelpUriCustom()(Code)(Java Doc) public String getParamAction()(Code)(Java Doc) public String getParamCloseLink()(Code)(Java Doc) public String getParamDialogtype()(Code)(Java Doc) public String getParamFramename()(Code)(Java Doc) public String getParamIsPopup()(Code)(Java Doc) public String getParamMessage()(Code)(Java Doc) public String getParamOriginalParams()(Code)(Java Doc) public String getParamPreActionDone()(Code)(Java Doc) public String getParamRedirect()(Code)(Java Doc) public String getParamResource()(Code)(Java Doc) public String getParamTitle()(Code)(Java Doc) public String getState() throws CmsException(Code)(Java Doc) public boolean hasCorrectLockstate()(Code)(Java Doc) public boolean hasSiblings()(Code)(Java Doc) public String htmlStart()(Code)(Java Doc) public String htmlStart(String helpUrl)(Code)(Java Doc) public String htmlStart(String helpUrl, String title)(Code)(Java Doc) public String htmlStartStyle(String title, String stylesheet)(Code)(Java Doc) public void includeErrorpage(CmsWorkplace wp, Throwable t) throws JspException(Code)(Java Doc) public static CmsDialog initCmsDialog(PageContext context, HttpServletRequest req, HttpServletResponse res)(Code)(Java Doc) protected void initWorkplaceRequestValues(CmsWorkplaceSettings settings, HttpServletRequest request)(Code)(Java Doc) public boolean isPopup()(Code)(Java Doc) public boolean isPreEditor()(Code)(Java Doc) public String pageHtml(int segment, String helpUrl)(Code)(Java Doc) public String pageHtml(int segment, String helpUrl, String title)(Code)(Java Doc) protected void setAction(int value)(Code)(Java Doc) public void setOnlineHelpUriCustom(String uri)(Code)(Java Doc) public void setParamAction(String value)(Code)(Java Doc) public void setParamCloseLink(String value)(Code)(Java Doc) public void setParamDialogtype(String value)(Code)(Java Doc) public void setParamFramename(String value)(Code)(Java Doc) public void setParamIsPopup(String value)(Code)(Java Doc) public void setParamMessage(String value)(Code)(Java Doc) public void setParamOriginalParams(String paramOriginalParams)(Code)(Java Doc) public void setParamPreActionDone(String paramPreActionDone)(Code)(Java Doc) public void setParamRedirect(String redirect)(Code)(Java Doc) public void setParamResource(String value)(Code)(Java Doc) public void setParamTitle(String value)(Code)(Java Doc)
|
|
|
|