Class ObjectCollectionImpl

    • Constructor Detail

      • 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 interface ObjectCollection
        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 interface PageableObjectCollection
        Parameters:
        offset - starting index
        count - 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 interface ObjectCollection
        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 interface ObjectCollection
        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 interface ObjectCollection
        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 interface ObjectCollection
        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 interface ObjectCollection
        Returns:
        the type
      • setUser

        public void setUser​(UserModel user)
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.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 interface ObjectCollection
        Parameters:
        iso - the iso
        Returns:
        the label
      • getModelService

        public static ModelService getModelService()