Class SCLMFileState
java.lang.Object
org.jenkinsci.plugins.IBM_zOS_Connector.SCLMFileState
SCLMFileState
Class describing file from SCLM.- Version:
- 1.0
- Author:
- Alexander Shcherbakov
-
Field Summary
Modifier and TypeFieldDescriptionSCLM Alternate Project Definition.static final Comparator<SCLMFileState>
Comparator for changes sorting.Change Date and Time.Change Group.Change User ID.Edit Type (not regarded during comparison).SCLM Group.Member Name.SCLM Project Name.Member Type.long
Member version. -
Method Summary
-
Field Details
-
project
SCLM Project Name. Equivalent to @@FLMPRJ. -
alternate
SCLM Alternate Project Definition. Equivalent to @@FLMALT. -
group
SCLM Group. Equivalent to @@FLMGRP. -
type
Member Type. Equivalent to @@FLMTYP. -
name
Member Name. Equivalent to @@FLMMBR. -
version
public long versionMember version. Equivalent to @@FLMMVR. -
changeDate
Change Date and Time. Equivalent to combination of @@FLMCD4 and @@FLMCTM. -
changeUserID
Change User ID. Equivalent to @@FLMCUS. -
changeGroup
Change Group. Equivalent to @@FLMCLV. -
editType
Edit Type (not regarded during comparison). -
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
- Parameters:
input
- String to convert into Date- Returns:
- Date from input
-
dateToString
- Parameters:
input
- Date to make printable- Returns:
- printable date
-
compareTo
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
Simple toString method. -
getPath
Printable path.- Returns:
- Printable path for SCLM file.
-
equals
Used for removing duplicate files (matching paths). -
hashCode
public int hashCode()
-