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 boolean
equals(java.lang.Object obj)
java.util.Date
getCreationTime()
java.lang.String
getDescription()
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.String
getLabel()
Gets the label that is the string that is displayed as a collection name in the cockpit.java.lang.String
getLabel(java.lang.String iso)
Gets the label for the specified language code.static ModelService
getModelService()
java.util.Date
getModificationTime()
static ObjectCollectionService
getObjectCollectionService()
PK
getPK()
Gets the pK.java.lang.String
getQualifier()
Gets the qualifier of the collection.int
getTotalCount()
Gets the total count of the collection.java.lang.String
getType()
Gets the type of the collection which is a descriptive string (quickcollection, blacklist, clipboard).UserModel
getUser()
Gets the user that created this collection.void
setAllLabels(java.util.Map<java.lang.String,java.lang.String> labels)
void
setDescription(java.lang.String description)
void
setElements(java.util.List<TypedObject> elements)
Deprecated.since 6.3void
setLabel(java.lang.String label)
void
setQualifier(java.lang.String qualifier)
void
setUser(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:ObjectCollection
Gets the elements of the collection in the order they were added to the collection.- Specified by:
getElements
in 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:PageableObjectCollection
Returns list of elements starting from the offset. Size is limited to count.- Specified by:
getElements
in 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:ObjectCollection
Gets the qualifier of the collection.- Specified by:
getQualifier
in interfaceObjectCollection
- Returns:
- the qualifier
-
setQualifier
public void setQualifier(java.lang.String qualifier)
-
getLabel
public java.lang.String getLabel()
Description copied from interface:ObjectCollection
Gets the label that is the string that is displayed as a collection name in the cockpit.- Specified by:
getLabel
in 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:ObjectCollection
Gets the description of the collection. Is not displayed anywhere for this moment.- Specified by:
getDescription
in interfaceObjectCollection
- Returns:
- the description
-
setDescription
public void setDescription(java.lang.String description)
-
getTotalCount
public int getTotalCount()
Description copied from interface:ObjectCollection
Gets the total count of the collection. It is displayed in the parentheses after the collection label in the cockpit.- Specified by:
getTotalCount
in 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:ObjectCollection
Gets the type of the collection which is a descriptive string (quickcollection, blacklist, clipboard).- Specified by:
getType
in interfaceObjectCollection
- Returns:
- the type
-
getPK
public PK getPK()
Description copied from interface:ObjectCollection
Gets the pK.- Specified by:
getPK
in interfaceObjectCollection
- Returns:
- the pK
-
setUser
public void setUser(UserModel user)
-
getUser
public UserModel getUser()
Description copied from interface:ObjectCollection
Gets the user that created this collection.- Specified by:
getUser
in interfaceObjectCollection
- Returns:
- the user
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
getLabel
public java.lang.String getLabel(java.lang.String iso)
Description copied from interface:ObjectCollection
Gets the label for the specified language code.- Specified by:
getLabel
in interfaceObjectCollection
- Parameters:
iso
- the iso- Returns:
- the label
-
getModelService
public static ModelService getModelService()
-
getObjectCollectionService
public static ObjectCollectionService getObjectCollectionService()
-
-