java.lang.Object
com.inductiveautomation.ignition.common.project.resource.LastModification

public class LastModification extends Object
  • Method Details

    • getActor

      public String getActor()
    • getTimestamp

      public Date 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

      public static Optional<LastModification> of(ProjectResource r)
    • update

      public static ProjectResource update(ProjectResource resource, String actor)
      Create a new ProjectResource with a last modification entries in its attributes map.
      Parameters:
      resource - the original ProjectResource to copy.
      actor - the actor that made the last modification.
      Returns:
      a new ProjectResource with a last modification entries in its attributes map.
    • verify

      public static boolean verify(ProjectResource resource)
      Verify that resource has a LastModification attribute and that the signature of that LastModification is still valid given the contents of the resource.
      Parameters:
      resource - the ProjectResource to verify.
      Returns:
      true if resource has a LastModification attribute and its signature is valid.