-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0152e2c
commit e5e3743
Showing
26 changed files
with
1,727 additions
and
1,384 deletions.
There are no files selected for viewing
20 changes: 20 additions & 0 deletions
20
src/main/kotlin/eu/ibagroup/formainframe/dataops/SortableQuery.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/* | ||
* This program and the accompanying materials are made available under the terms of the | ||
* Eclipse Public License v2.0 which accompanies this distribution, and is available at | ||
* https://www.eclipse.org/legal/epl-v20.html | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
* | ||
* Copyright IBA Group 2020 | ||
*/ | ||
|
||
package eu.ibagroup.formainframe.dataops | ||
|
||
import eu.ibagroup.formainframe.dataops.sort.SortQueryKeys | ||
|
||
/** | ||
* Interface identifies what query is SortableQuery | ||
*/ | ||
interface SortableQuery { | ||
val sortKeys : List<SortQueryKeys> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
src/main/kotlin/eu/ibagroup/formainframe/dataops/sort/SortQueryKeys.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
/* | ||
* This program and the accompanying materials are made available under the terms of the | ||
* Eclipse Public License v2.0 which accompanies this distribution, and is available at | ||
* https://www.eclipse.org/legal/epl-v20.html | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
* | ||
* Copyright IBA Group 2020 | ||
*/ | ||
package eu.ibagroup.formainframe.dataops.sort | ||
|
||
/** | ||
* Enum class represents the sorting keys which is currently enabled for particular Node | ||
*/ | ||
enum class SortQueryKeys(private val sortType: String) { | ||
FILE_NAME("uss_file_name"), | ||
FILE_TYPE("uss_type"), | ||
FILE_MODIFICATION_DATE("uss_modification_date"), | ||
JOB_NAME("Job Name"), | ||
JOB_CREATION_DATE("Job Creation Date"), | ||
JOB_COMPLETION_DATE("Job Completion Date"), | ||
JOB_STATUS("Job Status"), | ||
JOB_OWNER("Job Owner"), | ||
JOB_ID("Job ID"), | ||
ASCENDING("Ascending"), | ||
DESCENDING("Descending"); | ||
|
||
override fun toString(): String { | ||
return sortType | ||
} | ||
} | ||
|
||
val typedSortKeys : List<SortQueryKeys> by lazy { | ||
return@lazy listOf(SortQueryKeys.FILE_NAME, SortQueryKeys.FILE_TYPE, SortQueryKeys.FILE_MODIFICATION_DATE, SortQueryKeys.JOB_NAME, SortQueryKeys.JOB_ID, SortQueryKeys.JOB_OWNER, SortQueryKeys.JOB_STATUS, SortQueryKeys.JOB_CREATION_DATE, SortQueryKeys.JOB_COMPLETION_DATE) | ||
} | ||
|
||
val orderingSortKeys : List<SortQueryKeys> by lazy { | ||
return@lazy listOf(SortQueryKeys.ASCENDING, SortQueryKeys.DESCENDING) | ||
} |
Oops, something went wrong.