public class Reference extends ObjectPrinter
IGCRestClient.registerPOJO(Class)| Modifier and Type | Field and Description |
|---|---|
protected List<Reference> |
_context
Provides the context to the unique identity of this asset.
|
protected String |
_id
The '_id' property defines the unique Repository ID (RID) of the asset.
|
protected String |
_name
The '_name' property of a Reference is equivalent to its 'name' property, but will always be
populated on a reference ('name' may not yet be populated, depending on whether you have only a reference
to the asset, or the full asset itself).
|
protected String |
_type
The '_type' property defines the type of asset this Reference represents.
|
protected String |
_url
The '_url' property provides a navigable link directly to the full details of asset this Reference represents,
within a given IGC environment.
|
protected String |
createdBy |
protected Date |
createdOn |
protected String |
modifiedBy |
protected Date |
modifiedOn |
protected ItemList<Note> |
notes |
| Constructor and Description |
|---|
Reference()
Default constructor
|
Reference(String name,
String type)
Construct a simple stub representing an object instance in IGC.
|
Reference(String name,
String type,
String id)
Construct a simple stub representing an object instance in IGC.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
areModificationDetailsPopulated()
Indicates whether the item's modification details (if any) have already been populated (true) or not (false).
|
List<Reference> |
getContext()
Retrieve the context of the IGC object instance.
|
String |
getCreatedBy()
Retrieve the
created_by property (displayed as 'Created By') of the object. |
Date |
getCreatedOn()
Retrieve the
created_on property (displayed as 'Created On') of the object. |
String |
getId()
Retrieve the Repository ID (RID) of the object instance.
|
Identity |
getIdentity(IGCRestClient igcrest,
ObjectCache cache)
Retrieves the semantic identity of the asset.
|
String |
getModifiedBy()
Retrieve the
modified_by property (displayed as 'Modified By') of the object. |
Date |
getModifiedOn()
Retrieve the
modified_on property (displayed as 'Modified On') of the object. |
String |
getName()
Retrieve the name of the IGC object instance.
|
ItemList<Note> |
getNotes()
Retrieve the
notes property (displayed as 'Notes') of the object. |
String |
getType()
Retrieve the type of the IGC object instance.
|
String |
getUrl()
Retrieve the IGC REST API URL to the object instance's details.
|
boolean |
isEmbeddedAsset()
Indicates whether this item is an embedded asset (true) or not (false).
|
boolean |
isFullyRetrieved()
Determine whether this object instance is fully retrieved (true) or only partially (false).
|
boolean |
isIdentityPopulated()
Indicates whether this item's identity has already been populated (true) or not (false).
|
static boolean |
isSimpleType(Object obj)
Returns true iff the provided object is a simple type (String, Number, Boolean, Date, etc).
|
boolean |
isVirtualAsset()
Indicates whether this item is a virtual asset (true) or not (false).
|
void |
setContext(List<Reference> _context)
Set the context of the IGC object instance.
|
void |
setCreatedBy(String createdBy)
Set the
created_by property (displayed as Created By) of the object. |
void |
setCreatedOn(Date createdOn)
Set the
created_on property (displayed as Created On) of the object. |
void |
setFullyRetrieved()
Mark this object instance as fully-retrieved from IGC.
|
void |
setId(String _id)
Set the Repository ID (RID) of the object instance.
|
void |
setModifiedBy(String modifiedBy)
Set the
modified_by property (displayed as Modified By) of the object. |
void |
setModifiedOn(Date modifiedOn)
Set the
modified_on property (displayed as Modified On) of the object. |
void |
setName(String _name)
Set the name of the IGC object instance.
|
void |
setNotes(ItemList<Note> notes)
Set the
notes property (displayed as Notes) of the object. |
void |
setType(String _type)
Set the type of the IGC object instance.
|
void |
setUrl(String _url)
Set the IGC REST API URL of the object instance's details.
|
toStringprotected List<Reference> _context
protected String _name
protected String _type
IGCRestClient.registerPOJO(Class).protected String _id
protected String _url
protected String createdBy
protected Date createdOn
protected String modifiedBy
protected Date modifiedOn
public Reference()
public Reference(String name, String type)
name - name of the object instancetype - type of the object instancepublic List<Reference> getContext()
List<Reference>_contextpublic void setContext(List<Reference> _context)
_context - of the IGC object instance_contextpublic String getName()
_namepublic void setName(String _name)
_name - of the IGC object instance_namepublic String getType()
_typepublic void setType(String _type)
_type - of the IGC object instance_typepublic String getId()
_idpublic void setId(String _id)
_id - of the IGC object instance_idpublic String getUrl()
_urlpublic void setUrl(String _url)
_url - of the IGC object instance_urlpublic String getCreatedBy()
created_by property (displayed as 'Created By') of the object.
Note: not all objects in IGC have this information, but for re-usability purposes these are held at top-level.Stringpublic void setCreatedBy(String createdBy)
created_by property (displayed as Created By) of the object.
Note: not all objects in IGC have this information, but for re-usability purposes these are held at top-level.createdBy - the value to setpublic Date getCreatedOn()
created_on property (displayed as 'Created On') of the object.
Note: not all objects in IGC have this information, but for re-usability purposes these are held at top-level.Datepublic void setCreatedOn(Date createdOn)
created_on property (displayed as Created On) of the object.
Note: not all objects in IGC have this information, but for re-usability purposes these are held at top-level.createdOn - the value to setpublic String getModifiedBy()
modified_by property (displayed as 'Modified By') of the object.
Note: not all objects in IGC have this information, but for re-usability purposes these are held at top-level.Stringpublic void setModifiedBy(String modifiedBy)
modified_by property (displayed as Modified By) of the object.
Note: not all objects in IGC have this information, but for re-usability purposes these are held at top-level.modifiedBy - the value to setpublic Date getModifiedOn()
modified_on property (displayed as 'Modified On') of the object.
Note: not all objects in IGC have this information, but for re-usability purposes these are held at top-level.Datepublic void setModifiedOn(Date modifiedOn)
modified_on property (displayed as Modified On) of the object.
Note: not all objects in IGC have this information, but for re-usability purposes these are held at top-level.modifiedOn - the value to setpublic ItemList<Note> getNotes()
notes property (displayed as 'Notes') of the object.ItemList<Note>public void setNotes(ItemList<Note> notes)
notes property (displayed as Notes) of the object.notes - the value to setpublic boolean isFullyRetrieved()
public void setFullyRetrieved()
public static boolean isSimpleType(Object obj)
obj - the object to checkpublic boolean areModificationDetailsPopulated()
public boolean isIdentityPopulated()
public boolean isVirtualAsset()
public boolean isEmbeddedAsset()
public Identity getIdentity(IGCRestClient igcrest, ObjectCache cache) throws IGCConnectivityException, IGCParsingException, IGCIOException
igcrest - a REST API connection to use in confirming the identity of the assetcache - a cache of information that may already have been retrieved about the provided objectIGCConnectivityException - if there is any connectivity issue during the requestIGCParsingException - if there is any issue parsing the response from IGCIGCIOException - if there is any issue accessing the POJO defining the type and its propertiesCopyright © 2018–2021 ODPi. All rights reserved.