Class ObjectCollectionImpl
- java.lang.Object
-
- de.hybris.platform.cockpit.model.collection.impl.ObjectCollectionImpl
-
- All Implemented Interfaces:
ObjectCollection,PageableObjectCollection
public class ObjectCollectionImpl extends java.lang.Object implements PageableObjectCollection
-
-
Constructor Summary
Constructors Constructor Description ObjectCollectionImpl(CockpitObjectAbstractCollectionModel collectionModel)ObjectCollectionImpl(java.util.List<TypedObject> elements, java.lang.String qualifier, java.lang.String label, java.util.Map<java.lang.String,java.lang.String> allLabels, java.lang.String description, PK pk, UserModel user)Deprecated.since 6.3ObjectCollectionImpl(java.util.List<TypedObject> elements, java.lang.String qualifier, java.lang.String label, java.util.Map<java.lang.String,java.lang.String> allLabels, java.lang.String description, PK pk, UserModel user, java.lang.String type)Deprecated.since 6.3
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.util.DategetCreationTime()java.lang.StringgetDescription()Gets the description of the collection.java.util.List<TypedObject>getElements()Gets the elements of the collection in the order they were added to the collection.java.util.List<TypedObject>getElements(int offset, int count)Returns list of elements starting from the offset.java.lang.StringgetLabel()Gets the label that is the string that is displayed as a collection name in the cockpit.java.lang.StringgetLabel(java.lang.String iso)Gets the label for the specified language code.static ModelServicegetModelService()java.util.DategetModificationTime()static ObjectCollectionServicegetObjectCollectionService()PKgetPK()Gets the pK.java.lang.StringgetQualifier()Gets the qualifier of the collection.intgetTotalCount()Gets the total count of the collection.java.lang.StringgetType()Gets the type of the collection which is a descriptive string (quickcollection, blacklist, clipboard).UserModelgetUser()Gets the user that created this collection.voidsetAllLabels(java.util.Map<java.lang.String,java.lang.String> labels)voidsetDescription(java.lang.String description)voidsetElements(java.util.List<TypedObject> elements)Deprecated.since 6.3voidsetLabel(java.lang.String label)voidsetQualifier(java.lang.String qualifier)voidsetUser(UserModel user)
-
-
-
Constructor Detail
-
ObjectCollectionImpl
public ObjectCollectionImpl(CockpitObjectAbstractCollectionModel collectionModel)
-
ObjectCollectionImpl
@Deprecated public ObjectCollectionImpl(java.util.List<TypedObject> elements, java.lang.String qualifier, java.lang.String label, java.util.Map<java.lang.String,java.lang.String> allLabels, java.lang.String description, PK pk, UserModel user)
Deprecated.since 6.3
-
ObjectCollectionImpl
@Deprecated public ObjectCollectionImpl(java.util.List<TypedObject> elements, java.lang.String qualifier, java.lang.String label, java.util.Map<java.lang.String,java.lang.String> allLabels, java.lang.String description, PK pk, UserModel user, java.lang.String type)
Deprecated.since 6.3
-
-
Method Detail
-
getElements
public java.util.List<TypedObject> getElements()
Description copied from interface:ObjectCollectionGets the elements of the collection in the order they were added to the collection.- Specified by:
getElementsin interfaceObjectCollection- Returns:
- the elements
-
setElements
@Deprecated public void setElements(java.util.List<TypedObject> elements)
Deprecated.since 6.3
-
getElements
public java.util.List<TypedObject> getElements(int offset, int count)
Description copied from interface:PageableObjectCollectionReturns list of elements starting from the offset. Size is limited to count.- Specified by:
getElementsin interfacePageableObjectCollection- Parameters:
offset- starting indexcount- maximum count of elements to be fetched- Returns:
- list of elements according to given offset and count
-
getQualifier
public java.lang.String getQualifier()
Description copied from interface:ObjectCollectionGets the qualifier of the collection.- Specified by:
getQualifierin interfaceObjectCollection- Returns:
- the qualifier
-
setQualifier
public void setQualifier(java.lang.String qualifier)
-
getLabel
public java.lang.String getLabel()
Description copied from interface:ObjectCollectionGets the label that is the string that is displayed as a collection name in the cockpit.- Specified by:
getLabelin interfaceObjectCollection- Returns:
- the label
-
setLabel
public void setLabel(java.lang.String label)
-
setAllLabels
public void setAllLabels(java.util.Map<java.lang.String,java.lang.String> labels)
-
getDescription
public java.lang.String getDescription()
Description copied from interface:ObjectCollectionGets the description of the collection. Is not displayed anywhere for this moment.- Specified by:
getDescriptionin interfaceObjectCollection- Returns:
- the description
-
setDescription
public void setDescription(java.lang.String description)
-
getTotalCount
public int getTotalCount()
Description copied from interface:ObjectCollectionGets the total count of the collection. It is displayed in the parentheses after the collection label in the cockpit.- Specified by:
getTotalCountin interfaceObjectCollection- Returns:
- the total count
-
getCreationTime
public java.util.Date getCreationTime()
-
getModificationTime
public java.util.Date getModificationTime()
-
getType
public java.lang.String getType()
Description copied from interface:ObjectCollectionGets the type of the collection which is a descriptive string (quickcollection, blacklist, clipboard).- Specified by:
getTypein interfaceObjectCollection- Returns:
- the type
-
getPK
public PK getPK()
Description copied from interface:ObjectCollectionGets the pK.- Specified by:
getPKin interfaceObjectCollection- Returns:
- the pK
-
setUser
public void setUser(UserModel user)
-
getUser
public UserModel getUser()
Description copied from interface:ObjectCollectionGets the user that created this collection.- Specified by:
getUserin interfaceObjectCollection- Returns:
- the user
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
getLabel
public java.lang.String getLabel(java.lang.String iso)
Description copied from interface:ObjectCollectionGets the label for the specified language code.- Specified by:
getLabelin interfaceObjectCollection- Parameters:
iso- the iso- Returns:
- the label
-
getModelService
public static ModelService getModelService()
-
getObjectCollectionService
public static ObjectCollectionService getObjectCollectionService()
-
-