An object that represents a portal item.
Creates a new portal item object with the specified type for a specified portal. This constructor is used if you wish to create a new item that you will add to a portal.
Creates a portal item object for a specified portal and a specified item ID. Use this constructor to instantiate a PortalItem from an existing item using its unique ID.
Creates a portal item object. Use this object to create a portal item from a URL. The supported URL formats are:
Adds a comment to the portal item. It is available only to authenticated users who have access to the item.
Cancels loading metadata for the Loadable object.
Makes a network request to fetch the comments for this portal item. The result is a list of PortalItemComments for this portal item.
Fetches the groups this portal item belongs to. Only those groups that are visible to the current portal user will be returned.
Fetches all related portal items with the specified relationship to this portal item.
Fetches all related portal items with any of the specified relationships to this portal item.
Sets the thumbnail of the item with the specified image.
Shares this PortalItem with the specified portal groups. It's not necessary to load the PortalGroup objects that are passed to this method.
Unshares this item with everyone which will make the item PortalAccess.Private.
Stops sharing this PortalItem with the specified list of portal groups. It's not necessary to load the PortalGroup objects that are passed to this method.
Update the portal item with the given PortalItemContentParameters.
Updates an item's properties in a file on disk when this item instance is a LocalItem. This method resides in the Item base class to match the public API, but within the C API it's implemented only on LocalItem and PortalItem simply throws an exception. The client APIs provide their own implementations of this method for PortalItems.
The type name of this portal item. Most generally the type name is the string representation of the enum PortalItemType returned by PortalItem.type. However if the type is PortalItemType.Unknown, the type name is set with the type found in the portal item JSON. This allows API to deal with new portal item types added since the latest API release.