|
||||||||||
| 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
public class AuthorizationCommandObject
This class is the command object for the authorization 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 | |
|---|---|
AuthorizationCommandObject()
|
|
| Method Summary | |
|---|---|
protected void |
addUsedRoleId(java.lang.String usedRoleId)
Add a role to the list of used roles within the tab that should no longer be selectable within the tab. |
java.lang.String |
getActionCommand()
Return the action command. |
User |
getCurrentUser()
Return the current user login. |
Role[] |
getCurrentUserAuthorizingRoles()
Returns an array of roles which are assigned to the current user which provide access to the user maintenance tab. |
java.lang.String |
getErrorMessage()
Return error message. |
protected Role |
getRoleByGroupObject(nl.gx.siteworks.core.GroupObject roleObject)
Returns a Role class instance based on a GroupObject siteworks object. |
protected static Role |
getRoleByHtmlObject(nl.gx.siteworks.core.GroupObject groupObject)
Returns a User class instance based on a UserObject siteworks object. |
protected Role[] |
getRoles(boolean addUnassigned)
Returns all roles for the current webinitiatif. |
java.lang.String |
getStaticBackendDir()
Get the directory of the static directory. |
protected static User |
getUserByHtmlObject(nl.gx.siteworks.core.UserObject userObject)
Returns a User class instance based on a UserObject siteworks object. |
int |
getWebid()
Returns the siteworks object id of the current webinitiatif. |
void |
initBinder(javax.servlet.http.HttpServletRequest request,
org.springframework.web.bind.ServletRequestDataBinder binder)
Callback for additional binder initialisations. |
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 |
setActionCommand(java.lang.String action)
Set the action command to be performed (create, update, etc.). |
void |
setErrorMessage(java.lang.String error)
Sets an error message that occurs. |
void |
setWebid(int webid)
Set the siteworks object id of the current webinitiatif. |
protected PermissionCategory[] |
sortPermissionCategories(PermissionCategory[] categories)
Sort PermissionCategory array by name. |
| 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, onBindAndValidate, onSubmit, 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 AuthorizationCommandObject()
| Method Detail |
|---|
public void setActionCommand(java.lang.String action)
action - Action command to performpublic java.lang.String getActionCommand()
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 FormBindableBaserequest - current HTTP requestbinder - binder instance
java.lang.Exception - in case of invalid state or arguments
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 PanelTabFBOrequest - 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 argumentsModelAndViewprotected Role[] getRoles(boolean addUnassigned)
addUnassigned - Returns true if roles that are not already used within the
panel should be returned
protected Role getRoleByGroupObject(nl.gx.siteworks.core.GroupObject roleObject)
roleObject - GroupObject siteworks object
public int getWebid()
public void setWebid(int webid)
webid - The siteworks object id of the current webinitiatifpublic void setErrorMessage(java.lang.String error)
error - The error messagepublic java.lang.String getErrorMessage()
protected void addUsedRoleId(java.lang.String usedRoleId)
usedRoleId - Siteworks object id of a roleprotected static User getUserByHtmlObject(nl.gx.siteworks.core.UserObject userObject)
userObject - UserObject siteworks object
protected static Role getRoleByHtmlObject(nl.gx.siteworks.core.GroupObject groupObject)
groupObject - GroupObject siteworks object
public User getCurrentUser()
public Role[] getCurrentUserAuthorizingRoles()
public java.lang.String getStaticBackendDir()
protected PermissionCategory[] sortPermissionCategories(PermissionCategory[] categories)
categories - Array of PermissionCategory instances
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||