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 Summary
Fields Modifier and Type Field Description String
alternate
SCLM Alternate Project Definition.static Comparator<SCLMFileState>
changeComparator
Comparator for changes sorting.Date
changeDate
Change Date and Time.String
changeGroup
Change Group.String
changeUserID
Change User ID.EditType
editType
Edit Type (not regarded during comparison).String
group
SCLM Group.String
name
Member Name.String
project
SCLM Project Name.String
type
Member Type.long
version
Member version.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(SCLMFileState e)
This function is later used for removing duplicates.static String
dateToString(Date input)
boolean
equals(Object o)
Used for removing duplicate files (matching paths).String
getPath()
Printable path.int
hashCode()
static Date
parseDate(String input)
String
toString()
Simple toString method.
-
-
-
Field Detail
-
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 Detail
-
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.
-
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).
-
-