Class SelectParentContentControl

  • All Implemented Interfaces:
    java.util.Observer, javax.servlet.jsp.el.VariableResolver, IControl, IDataBoundControl, IDataControl, IRenderer
    Direct Known Subclasses:
    SelectContentParentContentControl

    public class SelectParentContentControl
    extends DataBoundControl<TableSource>
    Renders a control that allows the end user to select another content within the same service instance that represents the parent of the curent content.

    Example use: <control:lum_selectParentContent id="parentId" /> xml data available for xsl rendering: <control id="parentId" type="lum_selectParentContent"> <control cellspacing="0" id="8A488A03117B0D2D01117B6D926204DC" type="lum_table"> <tr> <td> <control id="parentId.view" type="lum_inputText" ... /> </td> <td style="padding-left:5px"> <control id="parentId.buttonSelect" type="lum_button" ... /> </td> <td style="padding-left:5px"> <control id="parentId.buttonRemove" type="lum_button" ... /> </td> </tr> </control> </control>
    Since:
    4.0.0
    Version:
    $Revision$ $Date$
    See Also:
    InputTextControl, ButtonControl
    • Field Detail

      • DOUI_CONTROL_TYPE

        public static final java.lang.String DOUI_CONTROL_TYPE
        The standard registered DOUI control type for this control.
        Since:
        15.0.0
        See Also:
        Constant Field Values
      • CONTENT_TREE_INTERFACE_ID

        protected static final java.lang.String CONTENT_TREE_INTERFACE_ID
        See Also:
        Constant Field Values
    • Constructor Detail

      • SelectParentContentControl

        public SelectParentContentControl()
    • Method Detail

      • addSelectParentPopupParameters

        protected void addSelectParentPopupParameters​(java.lang.String sourceId,
                                                      java.lang.String primaryKeyValue,
                                                      java.lang.String interfaceInstanceId,
                                                      java.lang.StringBuilder subControlsXmlString)
        Sets the parameters passed on to the select parent popup.
        Parameters:
        sourceId - the source identifier.
        primaryKeyValue - the primary key value in source.
        interfaceInstanceId - the interface instanceId of the caller.
        subControlsXmlString - String to append the parameters xml to.
      • getParentContentPrimaryName

        protected java.lang.String getParentContentPrimaryName​(java.lang.String currentParentContentValue,
                                                               TableSource source,
                                                               java.lang.String primaryNameFieldName)
                                                        throws PortalException
        Returns the primary name for the given value.
        Parameters:
        currentParentContentValue - the value for which to return a primary name.
        source - source of the value.
        primaryNameFieldName - field of the primary name.
        Returns:
        the primary name.
        Throws:
        PortalException