public class UIAssociationEditor extends BaseAssociationEditor
BaseAssociationEditor.AssocEditorEvent
Modifier and Type | Field and Description |
---|---|
static String |
MSG_WARN_CANNOT_VIEW_TARGET_DETAILS |
static String |
MSG_WARN_USER_WAS_DELETED |
added, associationName, availableOptions, availableOptionsSize, changingAssociation, disabled, highlightedRow, noSelectedItemsMsg, originalAssocs, removed, searchTerm, selectedItemsMsg, selectItemMsg, selectItemsMsg, showAvailable
COMPONENT_FAMILY, COMPONENT_TYPE, CONVERSION_MESSAGE_ID, REQUIRED_MESSAGE_ID
Constructor and Description |
---|
UIAssociationEditor() |
Modifier and Type | Method and Description |
---|---|
protected void |
addTarget(Node node,
String[] toAdd)
Updates the component and node state to reflect an association being added
|
String |
getFamily() |
protected void |
populateAssocationMaps(Node node,
org.alfresco.service.cmr.repository.NodeService nodeService)
Populates all the internal Maps with the appropriate association reference objects
|
protected void |
removeTarget(Node node,
String targetRef)
Updates the component and node state to reflect an association being removed
|
protected void |
renderExistingAssociations(FacesContext context,
ResponseWriter out,
org.alfresco.service.cmr.repository.NodeService nodeService,
boolean allowManyChildren)
Renders the existing associations in an editable form
|
protected void |
renderReadOnlyAssociations(FacesContext context,
ResponseWriter out,
org.alfresco.service.cmr.repository.NodeService nodeService)
Renders the existing associations in a read-only form
|
broadcast, decode, encodeBegin, generateFormSubmit, getAssociationDefinition, getAssociationName, getAvailableOptions, getAvailableOptionsSize, getHiddenFieldName, getNoSelectedItemsMsg, getSelectedItemsMsg, getSelectItemMsg, getSelectItemsMsg, isDisabled, renderAvailableOptions, renderExistingAssociation, renderNone, renderSearchField, restoreState, saveState, setAssociationName, setAvailableOptionsSize, setDisabled, setNoSelectedItemsMsg, setSelectedItemsMsg, setSelectItemMsg, setSelectItemsMsg
addValidator, addValueChangeListener, 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
getConverter, getLocalValue, setConverter
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getConverter, getLocalValue, setConverter
public static final String MSG_WARN_CANNOT_VIEW_TARGET_DETAILS
public static final String MSG_WARN_USER_WAS_DELETED
public String getFamily()
getFamily
in class UIInput
UIComponent.getFamily()
protected void populateAssocationMaps(Node node, org.alfresco.service.cmr.repository.NodeService nodeService)
BaseAssociationEditor
populateAssocationMaps
in class BaseAssociationEditor
node
- The Node we are dealing withnodeService
- The NodeServiceBaseAssociationEditor.populateAssocationMaps(org.alfresco.web.bean.repository.Node, org.alfresco.service.cmr.repository.NodeService)
protected void renderExistingAssociations(FacesContext context, ResponseWriter out, org.alfresco.service.cmr.repository.NodeService nodeService, boolean allowManyChildren) throws IOException
BaseAssociationEditor
renderExistingAssociations
in class BaseAssociationEditor
context
- FacesContextout
- ResponseWriternodeService
- The NodeServiceallowManyChildren
- Whether multiple associations are allowedIOException
BaseAssociationEditor.renderExistingAssociations(javax.faces.context.FacesContext, javax.faces.context.ResponseWriter, org.alfresco.service.cmr.repository.NodeService, boolean)
protected void renderReadOnlyAssociations(FacesContext context, ResponseWriter out, org.alfresco.service.cmr.repository.NodeService nodeService) throws IOException
BaseAssociationEditor
renderReadOnlyAssociations
in class BaseAssociationEditor
context
- FacesContextout
- ResponseWriternodeService
- The NodeServiceIOException
BaseAssociationEditor.renderReadOnlyAssociations(javax.faces.context.FacesContext, javax.faces.context.ResponseWriter, org.alfresco.service.cmr.repository.NodeService)
protected void removeTarget(Node node, String targetRef)
removeTarget
in class BaseAssociationEditor
node
- The node we are dealing withtargetRef
- The noderef of the child to removeprotected void addTarget(Node node, String[] toAdd)
addTarget
in class BaseAssociationEditor
node
- The node we are dealing withtoAdd
- The noderefs of the children to addCopyright © 2005–2017 Alfresco Software. All rights reserved.