|
17 | 17 |
|
18 | 18 | package com.strongdm.api;
|
19 | 19 |
|
| 20 | +import java.time.Duration; |
20 | 21 | import java.util.List;
|
21 | 22 |
|
22 | 23 | /**
|
|
25 | 26 | * either but automatic approval or a set of users authorized to approve the requests.
|
26 | 27 | */
|
27 | 28 | public class Workflow {
|
| 29 | + private Duration accessRequestFixedDuration; |
| 30 | + /** |
| 31 | + * Fixed Duration of access requests bound to this workflow. If fixed duration is provided, max |
| 32 | + * duration must be empty. If neither max nor fixed duration are provided, requests that bind to |
| 33 | + * this workflow will use the organization-level settings. |
| 34 | + */ |
| 35 | + public Duration getAccessRequestFixedDuration() { |
| 36 | + return this.accessRequestFixedDuration; |
| 37 | + } |
| 38 | + /** |
| 39 | + * Fixed Duration of access requests bound to this workflow. If fixed duration is provided, max |
| 40 | + * duration must be empty. If neither max nor fixed duration are provided, requests that bind to |
| 41 | + * this workflow will use the organization-level settings. |
| 42 | + */ |
| 43 | + public void setAccessRequestFixedDuration(Duration in) { |
| 44 | + this.accessRequestFixedDuration = in; |
| 45 | + } |
| 46 | + |
| 47 | + private Duration accessRequestMaxDuration; |
| 48 | + /** |
| 49 | + * Maximum Duration of access requests bound to this workflow. If max duration is provided, fixed |
| 50 | + * duration must be empty. If neither max nor fixed duration are provided, requests that bind to |
| 51 | + * this workflow will use the organization-level settings. |
| 52 | + */ |
| 53 | + public Duration getAccessRequestMaxDuration() { |
| 54 | + return this.accessRequestMaxDuration; |
| 55 | + } |
| 56 | + /** |
| 57 | + * Maximum Duration of access requests bound to this workflow. If max duration is provided, fixed |
| 58 | + * duration must be empty. If neither max nor fixed duration are provided, requests that bind to |
| 59 | + * this workflow will use the organization-level settings. |
| 60 | + */ |
| 61 | + public void setAccessRequestMaxDuration(Duration in) { |
| 62 | + this.accessRequestMaxDuration = in; |
| 63 | + } |
| 64 | + |
28 | 65 | private List<AccessRule> accessRules;
|
29 | 66 | /**
|
30 | 67 | * AccessRules is a list of access rules defining the resources this Workflow provides access to.
|
|
0 commit comments