public class UIUserSandboxes
extends org.springframework.extensions.webscripts.ui.common.component.SelfRenderingComponent
implements java.io.Serializable
The list of users attached to the supplied Web Project noderef (must be of type wcm:avmfolder) are iterated and the various AVM services used to provide the list of modified files for each user in turn. Actions are rendering with appropriate permission evaluators next to each item. The status of workflows in progress are also checked against items when building the list of actions.
Multi-select functionality is provided for specific actions.
| Modifier and Type | Class and Description |
|---|---|
static class |
UIUserSandboxes.UserRoleWrapper
Class representing a user of the website and their role.
|
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
PARAM_FORM_NAME |
| Constructor and Description |
|---|
UIUserSandboxes() |
| Modifier and Type | Method and Description |
|---|---|
void |
decode(javax.faces.context.FacesContext context) |
void |
encodeBegin(javax.faces.context.FacesContext context) |
void |
encodeChildren(javax.faces.context.FacesContext context) |
java.lang.String |
getFamily() |
boolean |
getRendersChildren() |
java.util.List |
getSelectedNodes(int sandbox)
Get the selected nodes for a specified sandbox index
|
java.util.List |
getSelectedNodes(java.lang.String username)
Get the selected nodes for a specified sandbox user
|
org.alfresco.service.cmr.repository.NodeRef |
getValue()
Returns the NodeRef to the website to show the sandboxes for
|
java.lang.String |
getWebapp() |
void |
restoreState(javax.faces.context.FacesContext context,
java.lang.Object state) |
java.lang.Object |
saveState(javax.faces.context.FacesContext context) |
void |
setValue(org.alfresco.service.cmr.repository.NodeRef value)
Sets the NodeRef to the website to show the sandboxes for
|
void |
setWebapp(java.lang.String webapp) |
outputAttributeaddFacesListener, broadcast, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientId, getFacesContext, getFacesListeners, getFacet, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getValueBinding, isRendered, isTransient, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, queueEvent, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient, setValueBindingpublic static final java.lang.String PARAM_FORM_NAME
public java.lang.String getFamily()
getFamily in class javax.faces.component.UIComponentUIComponent.getFamily()public void restoreState(javax.faces.context.FacesContext context,
java.lang.Object state)
restoreState in interface javax.faces.component.StateHolderrestoreState in class javax.faces.component.UIComponentBasepublic java.lang.Object saveState(javax.faces.context.FacesContext context)
saveState in interface javax.faces.component.StateHoldersaveState in class javax.faces.component.UIComponentBasepublic boolean getRendersChildren()
getRendersChildren in class javax.faces.component.UIComponentBaseUIComponentBase.getRendersChildren()public void encodeChildren(javax.faces.context.FacesContext context)
throws java.io.IOException
encodeChildren in class javax.faces.component.UIComponentBasejava.io.IOExceptionUIComponentBase.encodeChildren(javax.faces.context.FacesContext)public void decode(javax.faces.context.FacesContext context)
decode in class javax.faces.component.UIComponentBaseUIComponentBase.decode(javax.faces.context.FacesContext)public void encodeBegin(javax.faces.context.FacesContext context)
throws java.io.IOException
encodeBegin in class javax.faces.component.UIComponentBasejava.io.IOExceptionUIComponentBase.encodeBegin(javax.faces.context.FacesContext)public org.alfresco.service.cmr.repository.NodeRef getValue()
public void setValue(org.alfresco.service.cmr.repository.NodeRef value)
value - The NodeRef to the website to show the sandboxes forpublic java.lang.String getWebapp()
public void setWebapp(java.lang.String webapp)
webapp - The webapp to filter file list bypublic java.util.List getSelectedNodes(java.lang.String username)
username - User in the user sandbox listpublic java.util.List getSelectedNodes(int sandbox)
sandbox - Index of sandbox in the user sandbox listCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.