Class SCLMFileState

java.lang.Object
org.jenkinsci.plugins.IBM_zOS_Connector.SCLMFileState

public class SCLMFileState extends Object

SCLMFileState

Class describing file from SCLM.
Version:
1.0
Author:
Alexander Shcherbakov
  • Field Details

    • project

      public String project
      SCLM Project Name. Equivalent to @@FLMPRJ.
    • alternate

      public String alternate
      SCLM Alternate Project Definition. Equivalent to @@FLMALT.
    • group

      public String group
      SCLM Group. Equivalent to @@FLMGRP.
    • type

      public String type
      Member Type. Equivalent to @@FLMTYP.
    • name

      public String name
      Member Name. Equivalent to @@FLMMBR.
    • version

      public long version
      Member version. Equivalent to @@FLMMVR.
    • changeDate

      public Date changeDate
      Change Date and Time. Equivalent to combination of @@FLMCD4 and @@FLMCTM.
    • changeUserID

      public String changeUserID
      Change User ID. Equivalent to @@FLMCUS.
    • changeGroup

      public String changeGroup
      Change Group. Equivalent to @@FLMCLV.
    • editType

      public EditType editType
      Edit Type (not regarded during comparison).
    • changeComparator

      public static final Comparator<SCLMFileState> changeComparator
      Comparator for changes sorting.
      1. Change Date and Time (descending)
      2. Type
      3. Name
      4. Version (descending)
      5. Change User ID
      6. Change Group
  • Method Details

    • parseDate

      public static Date parseDate(String input)
      Parameters:
      input - String to convert into Date
      Returns:
      Date from input
    • dateToString

      public static String dateToString(Date input)
      Parameters:
      input - Date to make printable
      Returns:
      printable date
    • compareTo

      public int compareTo(SCLMFileState e)
      This function is later used for removing duplicates.
      The order of comparison:
      1. Project
      2. Alternate
      3. Group
      4. Type
      5. Name
      6. Version
      7. Change Date and time
      8. Change UserID
      9. Change Group
      Parameters:
      e - the SCLMAffectedFile object we are comparing to.
      Returns:
      -1:0:1 depending on the compare result.
    • toString

      public String toString()
      Simple toString method.
      Overrides:
      toString in class Object
      Returns:
      printable representation of SCLMFileState.
    • getPath

      public String getPath()
      Printable path.
      Returns:
      Printable path for SCLM file.
    • equals

      public boolean equals(Object o)
      Used for removing duplicate files (matching paths).
      Overrides:
      equals in class Object
      Parameters:
      o - Object for comparison.
      Returns:
      Whether the files are at the same location.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
      Returns:
      hash for the path