Class DefaultReferenceCollectionEditorModel

java.lang.Object
de.hybris.platform.cockpit.model.referenceeditor.AbstractCollectionEditorModel
de.hybris.platform.cockpit.model.referenceeditor.impl.DefaultReferenceCollectionEditorModel
All Implemented Interfaces:
CollectionEditorModel
Direct Known Subclasses:
DefaultMediaReferenceCollectionEditorModel

@Deprecated public class DefaultReferenceCollectionEditorModel extends AbstractCollectionEditorModel
Deprecated.
since 6.3, use instead DefaultCollectionEditorModel.
  • Field Details

  • Constructor Details

    • DefaultReferenceCollectionEditorModel

      public DefaultReferenceCollectionEditorModel(ObjectType rootType)
      Deprecated.
  • Method Details

    • setParameters

      public void setParameters(Map<String,? extends Object> parameters)
      Deprecated.
    • getReferenceSelectorModel

      public DefaultReferenceSelectorModel getReferenceSelectorModel()
      Deprecated.
      Returns:
      the referenceSelectorModel
    • getCollectionItems

      public List<Object> getCollectionItems()
      Deprecated.
    • setCollectionItems

      public void setCollectionItems(List<Object> collectionItems)
      Deprecated.
    • addCollectionItem

      public void addCollectionItem(Object item)
      Deprecated.
    • addCollectionItems

      public void addCollectionItems(Collection<? extends Object> collection)
      Deprecated.
    • removeCollectionItem

      public boolean removeCollectionItem(int index)
      Deprecated.
    • removeCollectionItem

      public boolean removeCollectionItem(Object item)
      Deprecated.
    • removeCollectionItems

      public boolean removeCollectionItems(Collection indexes)
      Deprecated.
    • moveCollectionItem

      public boolean moveCollectionItem(int fromIndex, int toIndex)
      Deprecated.
    • clearCollectionItems

      public void clearCollectionItems()
      Deprecated.
    • getItemLabel

      public String getItemLabel(Object item)
      Deprecated.
    • getRootType

      public ObjectType getRootType()
      Deprecated.
      Description copied from interface: CollectionEditorModel
      Returns the root type of this reference collection editor i.e. the type of the items which this editor should hold references to.

      Note: If the root search type differs from the root type, this editor will actually hold items of the type returned by CollectionEditorModel.getRootSearchType(). In this case information about the root type is generally needed for value handling.

      Returns:
      the root type of this editor
      See Also:
    • setRootType

      public void setRootType(ObjectType rootType)
      Deprecated.
      Sets the root type of this reference selector i.e. the type of the items which this editor should hold references to.

      Note: Unless search type has been set explicitly, getRootSearchType() will return the same type as getRootType().

      Parameters:
      rootType - reference type
      See Also:
    • getRootSearchType

      public ObjectType getRootSearchType()
      Deprecated.
      Description copied from interface: CollectionEditorModel
      Returns the type for which this reference collection editor should search for.

      Generally, if no root search type has been explicitly set, this method returns the same type as CollectionEditorModel.getRootType().

      Note: The root search type is actually the type of the items held by this editor, whereas root type is the type which should be used for persisting values.
      Returns:
      the type for which this reference collection editor should search for
      See Also:
    • setRootSearchType

      public void setRootSearchType(ObjectType rootSearchType)
      Deprecated.
      Sets the type for which this reference selector should search for. If rootSearchType is null getRootSearchType() will return the same type as getRootType().
      Parameters:
      rootSearchType - the type of the items to search for
      See Also:
    • initializeReferenceSelectorModel

      protected void initializeReferenceSelectorModel(ObjectType rootType)
      Deprecated.
    • getTypeService

      public TypeService getTypeService()
      Deprecated.