Class AbstractPortalJspCollection

    • Field Detail

      • cachedChildrenMap

        protected transient java.util.LinkedHashMap<java.lang.String,​java.lang.String> cachedChildrenMap
      • cachedBindingMap

        protected transient java.util.LinkedHashMap<java.lang.String,​java.lang.String> cachedBindingMap
      • cachedChildren

        protected transient PortalElement[] cachedChildren
      • cachedBindings

        protected transient java.lang.String[] cachedBindings
    • Constructor Detail

      • AbstractPortalJspCollection

        public AbstractPortalJspCollection()
      • AbstractPortalJspCollection

        public AbstractPortalJspCollection​(Publication other)
      • AbstractPortalJspCollection

        public AbstractPortalJspCollection​(PortalElement other)
      • AbstractPortalJspCollection

        public AbstractPortalJspCollection​(Portlet other)
      • AbstractPortalJspCollection

        public AbstractPortalJspCollection​(PortletCollection other)
    • Method Detail

      • duplicateDeep

        protected void duplicateDeep​(WizardContext context,
                                     PortalElement parent)
        Description copied from class: PortalElement
        Performs a deep duplicate of the PortalElement in a WizardContext. Update prefix, workspace, category, groups, ...
        Overrides:
        duplicateDeep in class Portal
        Parameters:
        context - WizardContext describe the dupliate context
        parent - PortalElement parent of portlets to deeply duplicate
      • checkWrite

        public ControllerStatus checkWrite​(int op,
                                           Member mbr,
                                           boolean checkIntegrity,
                                           java.util.Map context)
        Description copied from class: Publication
        Checks if the given write operation can be performed
        Overrides:
        checkWrite in class Publication
        Parameters:
        op - the operation (OP_CREATE, OP_UPDATE, ...)
        mbr - the member which requests the write operation
        checkIntegrity - if true, requires the constraints integrity to be checked
        context - a map which contains context parameters (may be null)
        Returns:
        a ControllerStatus
      • getBinding

        public java.lang.String getBinding​(PortalElement portlet)
        Returns Label associated to given PortalElement or null if it has not been declared
        Parameters:
        portlet - the portlet to work with
        Returns:
        String label bind to given portlet
      • getChild

        public PortalElement getChild​(java.lang.String bindName)
        Returns the first PortalElement matching the given binding
        Parameters:
        bindName - the binding name
        Returns:
        PortalElement or Null if the binding do not match
      • getChildrenList

        public java.util.List<PortalElement> getChildrenList​(java.lang.String bindName)
        Returns a List of PortalElement matching the given binding
        Parameters:
        bindName - the binding name
        Returns:
        List of PortalElement
      • getChildrenList

        public java.util.List getChildrenList​(java.lang.String[] bindNames)
        Returns a List of PortalElement matching the given binding
        Parameters:
        bindNames - the binding name
        Returns:
        List of PortalElement
      • getChildren

        public PortalElement[] getChildren​(java.lang.String[] bindNames)
        Returns a List of PortalElement matching the given binding
        Parameters:
        bindNames - the binding name
        Returns:
        List of PortalElement
      • getCachedBindingMap

        public java.util.LinkedHashMap<java.lang.String,​java.lang.String> getCachedBindingMap()
        Returns a Map of Keys: String: Labels or PortalElement's ids Values: PortalElement or List of PortalElement WARNING: return internal Index not a copy !
        Returns:
        LinkedHashMap (String/PortalElement)
      • getCachedChildrenMap

        public java.util.LinkedHashMap<java.lang.String,​java.lang.String> getCachedChildrenMap()
        Returns a Map of Keys: String: PortalElement's ids Values: String: Label bind to given PortalElement WARNING: return internal Index not a copy !
        Returns:
        LinkedHashMap (String/String)
      • performChildrenBindings

        protected void performChildrenBindings​(PortalElement[] children,
                                               java.lang.String[] bindings)
        Update the Children BindingMap.
        Parameters:
        bindings - String[] of bindings or null
      • setChildrenMap

        public void setChildrenMap​(java.util.Map<java.lang.String,​java.lang.String> deltaMap)
        Convenient method to Partially update children/bindings arrays with the given Map of Id/Label.
        • Override label declared
        • Preserve labels not declared in the Map
        • Preserve binging not declared in the Map
        No store modification is performed, invoke on a collection copy and save your modification afterward.
        Parameters:
        deltaMap - Map of Id/Label
      • handleSortable

        public ControllerStatus handleSortable​(JcmsJspContext jcmsContext)
        Handle a sortable request (ie a DnD) received for this portlet
        Parameters:
        jcmsContext - the jcmsContext.
        Returns:
        the status of the update.
        Since:
        jcms-10.0.4
      • setChildren

        public abstract void setChildren​(PortalElement[] p)
      • getChildrenBindings

        public abstract java.lang.String[] getChildrenBindings()
      • setChildrenBindings

        public abstract void setChildrenBindings​(java.lang.String[] v)