Class LastModification
java.lang.Object
com.inductiveautomation.ignition.common.project.resource.LastModification
- 
Method Summary
Modifier and TypeMethodDescriptionstatic LastModificationfromJson(com.inductiveautomation.ignition.common.gson.JsonElement json) getActor()static Optional<LastModification>com.inductiveautomation.ignition.common.gson.JsonElementtoJson()static com.inductiveautomation.ignition.common.gson.JsonElementtoJson(LastModification lastModification) static ProjectResourceupdate(ProjectResource resource, String actor) Create a newProjectResourcewith a last modification entries in its attributes map.static booleanverify(ProjectResource resource) Verify thatresourcehas aLastModificationattribute and that the signature of that LastModification is still valid given the contents of the resource. 
- 
Method Details
- 
getActor
 - 
getTimestamp
 - 
toJson
public com.inductiveautomation.ignition.common.gson.JsonElement toJson() - 
fromJson
public static LastModification fromJson(com.inductiveautomation.ignition.common.gson.JsonElement json)  - 
toJson
public static com.inductiveautomation.ignition.common.gson.JsonElement toJson(LastModification lastModification)  - 
of
 - 
update
Create a newProjectResourcewith a last modification entries in its attributes map.- Parameters:
 resource- the originalProjectResourceto copy.actor- the actor that made the last modification.- Returns:
 - a new 
ProjectResourcewith a last modification entries in its attributes map. 
 - 
verify
Verify thatresourcehas aLastModificationattribute and that the signature of that LastModification is still valid given the contents of the resource.- Parameters:
 resource- theProjectResourceto verify.- Returns:
 trueifresourcehas aLastModificationattribute and its signature is valid.
 
 -