Class AppWrapper
- java.lang.Object
-
- com.java_podio.code_gen.static_classes.AppWrapper
-
- All Implemented Interfaces:
Serializable
public abstract class AppWrapper extends Object implements Serializable
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected List<com.podio.file.File>filesUploaded/associated files.protected com.podio.item.ItemoriginalItemStores the original item, as retrieved by java-podio api.protected IntegerpodioIdThis represents the internal Podio id of the item.protected IntegerpodioRevisionThis represents the internal Podio revision of the item.protected List<String>podioTagsThis represents the Podio tags of the item.protected StringpodioTitleThis represents the Podio title of the item.
-
Constructor Summary
Constructors Constructor Description AppWrapper()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidaddFileById(Integer fileId)Adds a (already uploaded) file by its id.booleanequals(Object obj)abstract StringgetAppExternalId()abstract IntegergetAppId()protected static <T extends PodioCategory>
com.podio.item.FieldValuesUpdategetFielddValuesUpdateFromMultiCategory(List<T> selections, String externalId)protected static com.podio.item.FieldValuesUpdategetFieldValuesUpdateFromApp(List<Integer> ids, String externalId)protected static com.podio.item.FieldValuesUpdategetFieldValuesUpdateFromContacts(List<com.podio.contact.Profile> profiles, String externalId)protected static com.podio.item.FieldValuesUpdategetFieldValuesUpdateFromEmbeds(List<com.podio.embed.Embed> embeds, String externalId)List<Integer>getFileIds()List<com.podio.file.File>getFiles()Uploaded/associated files.com.podio.item.ItemCreategetItemCreate()AsItemCreateinherits fromItemUpdatethis method can be used to generate updates!com.podio.item.ItemgetOriginalItem()Stores the original item, as retrieved by java-podio api.IntegergetPodioId()This represents the internal Podio id of the item.IntegergetPodioRevision()This represents the internal Podio revision of the item.List<String>getPodioTags()This represents the Podio tags of the item.StringgetPodioTitle()This represents the Podio title of the item.inthashCode()protected static List<Integer>parseAppField(com.podio.item.FieldValuesView fieldValue)protected static <T> List<T>parseFieldJson(com.podio.item.FieldValuesView f, Class<T> type, String elementKey)Parsesfto typetypeby usingJsonPropertyannotations intype.protected static <T extends Enum<T>>
List<T>parseMultiCategoryField(com.podio.item.FieldValuesView f, Class<T> enumtype)voidsetFiles(List<com.podio.file.File> files)Uploaded/associated files.voidsetOriginalItem(com.podio.item.Item originalItem)Stores the original item, as retrieved by java-podio api.voidsetPodioId(Integer podioId)This represents the internal Podio id of the item.voidsetPodioRevision(Integer podioRevision)This represents the internal Podio revision of the item.voidsetPodioTags(List<String> podioTags)This represents the Podio tags of the item.voidsetPodioTitle(String podioTitle)This represents the Podio title of the item.voidsetValue(com.podio.item.Item item)Fills this objects values fromitem.
Subclasses should extend this method!StringtoString()
-
-
-
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.
-
files
protected List<com.podio.file.File> files
Uploaded/associated files.
-
-
Method Detail
-
setValue
public void setValue(com.podio.item.Item item) throws ParseExceptionFills this objects values fromitem.
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 aItemOrItemBadge.
-
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.
-
setPodioTags
public void setPodioTags(List<String> podioTags)
This represents the Podio tags of the item.
-
getFiles
public List<com.podio.file.File> getFiles()
Uploaded/associated files.- Returns:
- See Also:
setFiles(List),addFileById(Integer),getFileIds()
-
setFiles
public void setFiles(List<com.podio.file.File> files)
Uploaded/associated files. For adding a (new) file seeaddFileById(Integer).- Parameters:
fileIds-- See Also:
getFiles(),addFileById(Integer),getFileIds()
-
addFileById
public void addFileById(Integer fileId)
Adds a (already uploaded) file by its id.- Parameters:
fileId-- See Also:
setFiles(List),getFiles(),getFileIds()
-
getFileIds
public List<Integer> getFileIds()
- Returns:
- all ids of associated files. Is never
null- even iffilesisnull. - See Also:
setFiles(List),getFiles(),addFileById(Integer)
-
getItemCreate
public com.podio.item.ItemCreate getItemCreate()
AsItemCreateinherits fromItemUpdatethis method can be used to generate updates!
-
getAppExternalId
public abstract String getAppExternalId()
-
getAppId
public abstract Integer getAppId()
-
parseAppField
protected static List<Integer> parseAppField(com.podio.item.FieldValuesView fieldValue) throws ParseException
- Returns:
- a list of referenced item ids
- Throws:
ParseException
-
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)
Parsesfto typetypeby usingJsonPropertyannotations intype.- Parameters:
f-type-elementKey- key of elements, such as "value" or "embed"- Returns:
- list of parsed fields - might be empty.
-
-