org.alfresco.web.ui.wcm.component
Class UIDeployWebsite

java.lang.Object
  extended by javax.faces.component.UIComponent
      extended by javax.faces.component.UIComponentBase
          extended by javax.faces.component.UIOutput
              extended by javax.faces.component.UIInput
                  extended by org.alfresco.web.ui.wcm.component.UIDeployWebsite
All Implemented Interfaces:
javax.faces.component.EditableValueHolder, javax.faces.component.StateHolder, javax.faces.component.ValueHolder

public class UIDeployWebsite
extends javax.faces.component.UIInput

JSF component that allows a user to select which servers to deploy a website to and provides monitoring of the deployments selected


Field Summary
protected  java.lang.String deployMode
           
protected  java.lang.Boolean monitorDeployment
           
protected  java.util.List monitorIds
           
protected  java.lang.Integer snapshotVersion
           
protected  java.lang.String store
           
protected  org.alfresco.service.cmr.repository.NodeRef webProjectRef
           
 
Fields inherited from class javax.faces.component.UIInput
COMPONENT_FAMILY, COMPONENT_TYPE, CONVERSION_MESSAGE_ID, REQUIRED_MESSAGE_ID
 
Constructor Summary
UIDeployWebsite()
          Default constructor
 
Method Summary
 void decode(javax.faces.context.FacesContext context)
           
 void encodeBegin(javax.faces.context.FacesContext context)
           
 java.lang.String getDeployMode()
           
 java.lang.String getFamily()
           
 boolean getMonitor()
           
 java.util.List getMonitorIds()
           
 int getSnapshotVersion()
           
 java.lang.String getStore()
           
 org.alfresco.service.cmr.repository.NodeRef getWebsite()
           
 void restoreState(javax.faces.context.FacesContext context, java.lang.Object state)
           
 java.lang.Object saveState(javax.faces.context.FacesContext context)
           
 void setDeployMode(java.lang.String deployMode)
           
 void setMonitor(boolean monitor)
           
 void setMonitorIds(java.util.List monitorIds)
           
 void setSnapshotVersion(int snapshotVersion)
           
 void setStore(java.lang.String store)
           
 void setWebsite(org.alfresco.service.cmr.repository.NodeRef value)
           
 
Methods inherited from class javax.faces.component.UIInput
addValidator, addValueChangeListener, broadcast, compareValues, getConvertedValue, getSubmittedValue, getValidator, getValidators, getValue, 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
 

Field Detail

webProjectRef

protected org.alfresco.service.cmr.repository.NodeRef webProjectRef

snapshotVersion

protected java.lang.Integer snapshotVersion

monitorDeployment

protected java.lang.Boolean monitorDeployment

monitorIds

protected java.util.List monitorIds

deployMode

protected java.lang.String deployMode

store

protected java.lang.String store
Constructor Detail

UIDeployWebsite

public UIDeployWebsite()
Default constructor

Method Detail

getFamily

public java.lang.String getFamily()
Overrides:
getFamily in class javax.faces.component.UIInput

decode

public void decode(javax.faces.context.FacesContext context)
Overrides:
decode 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

getWebsite

public org.alfresco.service.cmr.repository.NodeRef getWebsite()
Returns:
The NodeRef representation of the web project to show the deployment reports for

setWebsite

public void setWebsite(org.alfresco.service.cmr.repository.NodeRef value)
Parameters:
value - The NodeRef representation of the web project to show the deployment reports for

getMonitor

public boolean getMonitor()
Returns:
true if the component should monitor a deployment

setMonitor

public void setMonitor(boolean monitor)
Parameters:
monitor - Determines whether a deployment should be monitored

getMonitorIds

public java.util.List getMonitorIds()
Returns:
The list of deployment monitor IDs

setMonitorIds

public void setMonitorIds(java.util.List monitorIds)
Parameters:
monitorIds - List of monitor IDs to look for

getSnapshotVersion

public int getSnapshotVersion()
Returns:
The version of the snapshot being deployed

setSnapshotVersion

public void setSnapshotVersion(int snapshotVersion)
Parameters:
snapshotVersion - The version of the snapshot being deployed

getDeployMode

public java.lang.String getDeployMode()
Returns:
The type of server being deployed to, 'live' or 'test'

setDeployMode

public void setDeployMode(java.lang.String deployMode)
Parameters:
deployMode - The type of server to deploy to, 'live' or 'test'

getStore

public java.lang.String getStore()
Returns:
The store being deployed to

setStore

public void setStore(java.lang.String store)
Parameters:
store - The store to deploy to


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.