Class LastModification


  • public class LastModification
    extends java.lang.Object
    • Method Detail

      • getActor

        public java.lang.String getActor()
      • getTimestamp

        public java.util.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)
      • update

        public static ProjectResource update​(ProjectResource resource,
                                             java.lang.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.