org.alfresco.web.ui.wcm.component
Class UIDeploymentServers
java.lang.Object
javax.faces.component.UIComponent
javax.faces.component.UIComponentBase
javax.faces.component.UIOutput
javax.faces.component.UIInput
org.alfresco.web.ui.wcm.component.UIDeploymentServers
- All Implemented Interfaces:
- javax.faces.component.EditableValueHolder, javax.faces.component.StateHolder, javax.faces.component.ValueHolder
public class UIDeploymentServers
- extends javax.faces.component.UIInput
JSF component that allows deployment servers to be added, edited and removed.
Fields inherited from class javax.faces.component.UIInput |
COMPONENT_FAMILY, COMPONENT_TYPE, CONVERSION_MESSAGE_ID, REQUIRED_MESSAGE_ID |
Methods inherited from class javax.faces.component.UIInput |
addValidator, addValueChangeListener, broadcast, compareValues, decode, getConvertedValue, getSubmittedValue, getValidator, getValidators, getValueChangeListener, getValueChangeListeners, isImmediate, isLocalValueSet, isRequired, isValid, processDecodes, processUpdates, processValidators, removeValidator, removeValueChangeListener, setImmediate, setLocalValueSet, setRequired, setSubmittedValue, setValid, setValidator, setValue, setValueChangeListener, updateModel, validate, validateValue |
Methods inherited from class javax.faces.component.UIOutput |
getConverter, getLocalValue, setConverter |
Methods inherited from class javax.faces.component.UIComponentBase |
addFacesListener, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientId, getFacesContext, getFacesListeners, getFacet, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getRendersChildren, getValueBinding, isRendered, isTransient, processRestoreState, processSaveState, queueEvent, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.faces.component.ValueHolder |
getConverter, getLocalValue, setConverter |
UIDeploymentServers
public UIDeploymentServers()
- Default constructor
getFamily
public java.lang.String getFamily()
- Overrides:
getFamily
in class javax.faces.component.UIInput
restoreState
public void restoreState(javax.faces.context.FacesContext context,
java.lang.Object state)
- Specified by:
restoreState
in interface javax.faces.component.StateHolder
- Overrides:
restoreState
in class javax.faces.component.UIInput
saveState
public java.lang.Object saveState(javax.faces.context.FacesContext context)
- Specified by:
saveState
in interface javax.faces.component.StateHolder
- Overrides:
saveState
in class javax.faces.component.UIInput
encodeBegin
public void encodeBegin(javax.faces.context.FacesContext context)
throws java.io.IOException
- Overrides:
encodeBegin
in class javax.faces.component.UIComponentBase
- Throws:
java.io.IOException
getValue
public java.util.List getValue()
- Specified by:
getValue
in interface javax.faces.component.ValueHolder
- Overrides:
getValue
in class javax.faces.component.UIInput
- Returns:
- List of deployment servers to show
setValue
public void setValue(java.util.List value)
- Parameters:
value
- The list of deployment servers to show
setCurrentServer
public void setCurrentServer(DeploymentServerConfig server)
- Parameters:
server
- The current deployment server being added or edited
getCurrentServer
public DeploymentServerConfig getCurrentServer()
- Returns:
- Deployment server currently being edited or added
getInAddMode
public boolean getInAddMode()
- Returns:
- true if the component should show a form to add a new server
setInAddMode
public void setInAddMode(boolean inAddMode)
- Parameters:
inAddMode
- Determines whether a new server should be added
getAddType
public java.lang.String getAddType()
- Returns:
- The type of reciever server to add
setAddType
public void setAddType(java.lang.String value)
- Parameters:
value
- The type of server receiver to add
renderServer
protected void renderServer(javax.faces.context.FacesContext context,
javax.faces.context.ResponseWriter out,
DeploymentServerConfig server)
throws java.io.IOException
- Throws:
java.io.IOException
renderServerForm
protected void renderServerForm(javax.faces.context.FacesContext context,
javax.faces.context.ResponseWriter out,
DeploymentServerConfig server,
boolean edit)
throws java.io.IOException
- Throws:
java.io.IOException
aquireEditServerAction
protected UIActionLink aquireEditServerAction(javax.faces.context.FacesContext context,
java.lang.String serverId)
aquireDeleteServerAction
protected UIActionLink aquireDeleteServerAction(javax.faces.context.FacesContext context,
java.lang.String serverId)
getDeployServerTypes
public java.util.List getDeployServerTypes()
- Returns:
- Options for the type of deployment server i.e. test or live
getDeploymentService
protected org.alfresco.service.cmr.avm.deploy.DeploymentService getDeploymentService()
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.