|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnl.gx.webmanager.springmvc.FormBindableBase
nl.gx.webmanager.springmvc.panel.PanelTabFBO
nl.gx.webmanager.authorization.command.AuthorizationCommandObject
nl.gx.webmanager.authorization.command.UserCommandObject
public class UserCommandObject
This class is the command object for the user panel. Note that this command only is a Java representation of the content displayed in the HTML form. So it will only retrieve information from the JCR but never change any content. It does however contain navigation logic.
| Field Summary |
|---|
| Fields inherited from class nl.gx.webmanager.springmvc.FormBindableBase |
|---|
editViews |
| Constructor Summary | |
|---|---|
UserCommandObject()
|
|
| Method Summary | |
|---|---|
Role[] |
getRoles()
Returns the roles assigned the selected user. |
java.lang.String |
getSelectedUserId()
Return the id of the selected user. |
User |
getSelectedUserObject()
Return the selected user. |
java.lang.String |
getSortBy()
Return the property to sort on. |
java.lang.String |
getSortOrder()
Sets the sort order, ascending of descending. |
java.lang.String |
getUserFilter()
Returns the current user filter. |
User[] |
getUsers()
Returns all users that can be selected given the current filter. |
void |
initBinder(javax.servlet.http.HttpServletRequest request,
org.springframework.web.bind.ServletRequestDataBinder binder)
Callback for additional binder initialisations. |
void |
onBindAndValidate(javax.servlet.http.HttpServletRequest request,
java.lang.Object command,
org.springframework.validation.BindException arg2)
Callback for custom post-processing in terms of binding and validation. |
void |
onSubmit(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.Object command,
org.springframework.validation.BindException errors,
org.springframework.web.servlet.ModelAndView modelAndView)
This is method is called by the Spring framework after binding posted form values onto the form backing object and invoking the onBind and onBindAndValidate callback methods. |
java.util.Map |
referenceData(javax.servlet.http.HttpServletRequest request,
java.lang.Object command,
org.springframework.validation.Errors errors)
Does nothing but has te be implemented according to the component interface. |
void |
saveRoles()
Save the roles assigned to the user. |
void |
setRoles(Role[] roles)
Set the roles assigned the selected user. |
void |
setSelectedUserId(java.lang.String userid)
Set the id of the selected user. |
void |
setSelectedUserObject(User user)
Sets the selected user. |
void |
setSortBy(java.lang.String sortBy)
Sets the property to sort on. |
void |
setSortOrder(java.lang.String sortOrder)
Set the sort order, ascending of descending. |
void |
setUserFilter(java.lang.String userFilter)
Sets the current user filter. |
void |
setUsers(User[] users)
Set the roles assigned the selected user. |
| Methods inherited from class nl.gx.webmanager.authorization.command.AuthorizationCommandObject |
|---|
addUsedRoleId, getActionCommand, getCurrentUser, getCurrentUserAuthorizingRoles, getErrorMessage, getRoleByGroupObject, getRoleByHtmlObject, getRoles, getStaticBackendDir, getUserByHtmlObject, getWebid, setActionCommand, setErrorMessage, setWebid, sortPermissionCategories |
| Methods inherited from class nl.gx.webmanager.springmvc.panel.PanelTabFBO |
|---|
addToFBOMap, getEditViews, getFBOMap, getNestedPath, getNode, getPanel, getPanelAction, getPanelGotoTabId, getUUID, getWebContainerNode, setPanel, setPanelAction, setPanelGotoTabId |
| Methods inherited from class nl.gx.webmanager.springmvc.FormBindableBase |
|---|
addDisallowedField, addEditView, addValidator, formBackingObject, getControllerDelegationMap, getDelegatedController, getEditView, getEditViewByValue, getParentController, getResourceBaseNames, getValidators, initialize, onBind, setDelegatedController, setEditViews, setParentController, setValidators, showForm |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UserCommandObject()
| Method Detail |
|---|
public java.lang.String getSelectedUserId()
public void setSelectedUserId(java.lang.String userid)
userid - Id of the selected userpublic User getSelectedUserObject()
public void setSelectedUserObject(User user)
user - The newly selected userpublic java.lang.String getUserFilter()
public void setUserFilter(java.lang.String userFilter)
userFilter - The current user filterpublic java.lang.String getSortBy()
public void setSortBy(java.lang.String sortBy)
sortBy - property to sort onpublic java.lang.String getSortOrder()
public void setSortOrder(java.lang.String sortOrder)
sortOrder - 'asc' when sort order is ascending, 'desc' otherwisepublic Role[] getRoles()
public void setRoles(Role[] roles)
roles - assigned the selected userpublic void saveRoles()
public User[] getUsers()
public void setUsers(User[] users)
users - assigned the selected user
public void initBinder(javax.servlet.http.HttpServletRequest request,
org.springframework.web.bind.ServletRequestDataBinder binder)
throws java.lang.Exception
DelegatedController
initBinder in interface DelegatedControllerinitBinder in class AuthorizationCommandObjectrequest - current HTTP requestbinder - binder instance
java.lang.Exception - in case of invalid state or arguments
public void onBindAndValidate(javax.servlet.http.HttpServletRequest request,
java.lang.Object command,
org.springframework.validation.BindException arg2)
throws java.lang.Exception
DelegatedController
onBindAndValidate in interface DelegatedControlleronBindAndValidate in class FormBindableBaserequest - current HTTP requestcommand - the command object, still allowing for further bindingarg2 - errors holder, allowing for additional custom validation errors
java.lang.Exception - in case of invalid state or arguments
public void onSubmit(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.Object command,
org.springframework.validation.BindException errors,
org.springframework.web.servlet.ModelAndView modelAndView)
throws java.lang.Exception
FormBindableBase
onSubmit in interface DelegatedControlleronSubmit in class FormBindableBaserequest - current servlet requestresponse - current servlet responsecommand - form object with request parameters bound onto iterrors - Errors instance without errors (subclass can add errors if it wants to)modelAndView - model and view of the original main spring controller which handles the request
java.lang.Exception - in case of errors
public java.util.Map referenceData(javax.servlet.http.HttpServletRequest request,
java.lang.Object command,
org.springframework.validation.Errors errors)
throws java.lang.Exception
PanelTabFBO
referenceData in interface DelegatedControllerreferenceData in class AuthorizationCommandObjectrequest - current HTTP requestcommand - form object with request parameters bound onto iterrors - validation errors holder
null if none
java.lang.Exception - in case of invalid state or argumentsModelAndView
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||