Class AbstractPortalJspCollection

All Implemented Interfaces:
EditableData, JcmsConstants, ImportConstants, MashupConstants, Parent, PortalInterface, Searchable, Storable, JaliosConstants, LangPropertyArgument, TreeNode, Cloneable, Comparable<BasicStorable>

public abstract class AbstractPortalJspCollection extends Portal
  • Field Details

  • Constructor Details

    • AbstractPortalJspCollection

      public AbstractPortalJspCollection()
    • AbstractPortalJspCollection

      public AbstractPortalJspCollection(Publication other)
    • AbstractPortalJspCollection

      public AbstractPortalJspCollection(PortalElement other)
    • AbstractPortalJspCollection

      public AbstractPortalJspCollection(Portlet other)
    • AbstractPortalJspCollection

      public AbstractPortalJspCollection(PortletCollection other)
  • Method Details

    • 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
    • getTreeChildren

      public Collection getTreeChildren()
      Description copied from interface: TreeNode
      Returns a Collection of TreeNode children of the current node
      Specified by:
      getTreeChildren in interface PortalInterface
      Specified by:
      getTreeChildren in interface TreeNode
      Overrides:
      getTreeChildren in class Portal
      Returns:
      Collection of TreeNode
      See Also:
    • checkWrite

      public ControllerStatus checkWrite(int op, Member mbr, boolean checkIntegrity, 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 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(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 List<PortalElement> getChildrenList(String bindName)
      Returns a List of PortalElement matching the given binding
      Parameters:
      bindName - the binding name
      Returns:
      List of PortalElement
    • getChildrenList

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

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

      public LinkedHashMap<String,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 LinkedHashMap<String,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, String[] bindings)
      Update the Children BindingMap.
      Parameters:
      bindings - String[] of bindings or null
    • setChildrenMap

      public void setChildrenMap(Map<String,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
    • getChildren

      public abstract PortalElement[] getChildren()
    • setChildren

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

      public abstract String[] getChildrenBindings()
    • setChildrenBindings

      public abstract void setChildrenBindings(String[] v)