Class AppWrapper

    • Field Detail

      • originalItem

        protected com.podio.item.Item originalItem
        Stores the original item, as retrieved by java-podio api.
      • podioId

        protected Integer podioId
        This represents the internal Podio id of the item.
      • podioRevision

        protected Integer podioRevision
        This represents the internal Podio revision of the item.
      • podioTitle

        protected String podioTitle
        This represents the Podio title of the item.
      • podioTags

        protected List<String> podioTags
        This represents the Podio tags of the item.
      • files

        protected List<com.podio.file.File> files
        Uploaded/associated files.
    • Constructor Detail

      • AppWrapper

        public AppWrapper()
    • Method Detail

      • setValue

        public void setValue​(com.podio.item.Item item)
                      throws ParseException
        Fills this objects values from item.
        Subclasses should extend this method!
        Parameters:
        item -
        Throws:
        ParseException
      • getOriginalItem

        public com.podio.item.Item getOriginalItem()
        Stores the original item, as retrieved by java-podio api. This could be a ItemOrItemBadge.
      • setOriginalItem

        public void setOriginalItem​(com.podio.item.Item originalItem)
        Stores the original item, as retrieved by java-podio api.
      • getPodioId

        public Integer getPodioId()
        This represents the internal Podio id of the item.
      • setPodioId

        public void setPodioId​(Integer podioId)
        This represents the internal Podio id of the item.
      • getPodioRevision

        public Integer getPodioRevision()
        This represents the internal Podio revision of the item.
      • setPodioRevision

        public void setPodioRevision​(Integer podioRevision)
        This represents the internal Podio revision of the item.
      • getPodioTitle

        public String getPodioTitle()
        This represents the Podio title of the item.
      • setPodioTitle

        public void setPodioTitle​(String podioTitle)
        This represents the Podio title of the item.
      • getPodioTags

        public List<String> getPodioTags()
        This represents the Podio tags of the item.
      • setPodioTags

        public void setPodioTags​(List<String> podioTags)
        This represents the Podio tags of the item.
      • getItemCreate

        public com.podio.item.ItemCreate getItemCreate()
        As ItemCreate inherits from ItemUpdate this method can be used to generate updates!
      • getAppExternalId

        public abstract String getAppExternalId()
      • getAppId

        public abstract Integer getAppId()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • getFieldValuesUpdateFromApp

        protected static com.podio.item.FieldValuesUpdate getFieldValuesUpdateFromApp​(List<Integer> ids,
                                                                                      String externalId)
      • getFielddValuesUpdateFromMultiCategory

        protected static <T extends PodioCategory> com.podio.item.FieldValuesUpdate getFielddValuesUpdateFromMultiCategory​(List<T> selections,
                                                                                                                           String externalId)
      • parseMultiCategoryField

        protected static <T extends Enum<T>> List<T> parseMultiCategoryField​(com.podio.item.FieldValuesView f,
                                                                             Class<T> enumtype)
      • getFieldValuesUpdateFromContacts

        protected static com.podio.item.FieldValuesUpdate getFieldValuesUpdateFromContacts​(List<com.podio.contact.Profile> profiles,
                                                                                           String externalId)
      • getFieldValuesUpdateFromEmbeds

        protected static com.podio.item.FieldValuesUpdate getFieldValuesUpdateFromEmbeds​(List<com.podio.embed.Embed> embeds,
                                                                                         String externalId)
      • parseFieldJson

        protected static <T> List<T> parseFieldJson​(com.podio.item.FieldValuesView f,
                                                    Class<T> type,
                                                    String elementKey)
        Parses f to type type by using JsonProperty annotations in type.
        Parameters:
        f -
        type -
        elementKey - key of elements, such as "value" or "embed"
        Returns:
        list of parsed fields - might be empty.