Class LastModification
- java.lang.Object
- 
- com.inductiveautomation.ignition.common.project.resource.LastModification
 
- 
 public class LastModification extends java.lang.Object
- 
- 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LastModificationfromJson(com.inductiveautomation.ignition.common.gson.JsonElement json)java.lang.StringgetActor()java.util.DategetTimestamp()static java.util.Optional<LastModification>of(ProjectResource r)com.inductiveautomation.ignition.common.gson.JsonElementtoJson()static com.inductiveautomation.ignition.common.gson.JsonElementtoJson(LastModification lastModification)static ProjectResourceupdate(ProjectResource resource, java.lang.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 Detail- 
getActorpublic java.lang.String getActor() 
 - 
getTimestamppublic java.util.Date getTimestamp() 
 - 
toJsonpublic com.inductiveautomation.ignition.common.gson.JsonElement toJson() 
 - 
fromJsonpublic static LastModification fromJson(com.inductiveautomation.ignition.common.gson.JsonElement json) 
 - 
toJsonpublic static com.inductiveautomation.ignition.common.gson.JsonElement toJson(LastModification lastModification) 
 - 
ofpublic static java.util.Optional<LastModification> of(ProjectResource r) 
 - 
updatepublic static ProjectResource update(ProjectResource resource, java.lang.String actor) Create a newProjectResourcewith a last modification entries in its attributes map.- Parameters:
- resource- the original- ProjectResourceto copy.
- actor- the actor that made the last modification.
- Returns:
- a new ProjectResourcewith a last modification entries in its attributes map.
 
 - 
verifypublic static boolean verify(ProjectResource resource) Verify thatresourcehas aLastModificationattribute and that the signature of that LastModification is still valid given the contents of the resource.- Parameters:
- resource- the- ProjectResourceto verify.
- Returns:
- trueif- resourcehas a- LastModificationattribute and its signature is valid.
 
 
- 
 
-