View Javadoc
1   /*
2    * Licensed to the Apache Software Foundation (ASF) under one
3    * or more contributor license agreements.  See the NOTICE file
4    * distributed with this work for additional information
5    * regarding copyright ownership.  The ASF licenses this file
6    * to you under the Apache License, Version 2.0 (the
7    * "License"); you may not use this file except in compliance
8    * with the License.  You may obtain a copy of the License at
9    *
10   *   http://www.apache.org/licenses/LICENSE-2.0
11   *
12   * Unless required by applicable law or agreed to in writing,
13   * software distributed under the License is distributed on an
14   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15   * KIND, either express or implied.  See the License for the
16   * specific language governing permissions and limitations
17   * under the License.
18   */
19  package org.apache.syncope.common.lib.to;
20  
21  import io.swagger.v3.oas.annotations.media.Schema;
22  import java.time.OffsetDateTime;
23  import javax.ws.rs.PathParam;
24  import org.apache.syncope.common.lib.request.AnyCR;
25  import org.apache.syncope.common.lib.request.AnyUR;
26  import org.apache.syncope.common.lib.types.ResourceOperation;
27  
28  public class RemediationTO implements EntityTO {
29  
30      private static final long serialVersionUID = 3983540425142284975L;
31  
32      private String key;
33  
34      private String anyType;
35  
36      private ResourceOperation operation;
37  
38      private AnyCR anyCRPayload;
39  
40      private AnyUR anyURPayload;
41  
42      private String keyPayload;
43  
44      private String error;
45  
46      private OffsetDateTime instant;
47  
48      private String pullTask;
49  
50      private String resource;
51  
52      private String remoteName;
53  
54      @Override
55      public String getKey() {
56          return key;
57      }
58  
59      @PathParam("key")
60      @Override
61      public void setKey(final String key) {
62          this.key = key;
63      }
64  
65      @Schema(accessMode = Schema.AccessMode.READ_ONLY)
66      public String getAnyType() {
67          return anyType;
68      }
69  
70      public void setAnyType(final String anyType) {
71          this.anyType = anyType;
72      }
73  
74      @Schema(accessMode = Schema.AccessMode.READ_ONLY)
75      public ResourceOperation getOperation() {
76          return operation;
77      }
78  
79      public void setOperation(final ResourceOperation operation) {
80          this.operation = operation;
81      }
82  
83      @Schema(accessMode = Schema.AccessMode.READ_ONLY)
84      public AnyCR getAnyCRPayload() {
85          return anyCRPayload;
86      }
87  
88      public void setAnyCRPayload(final AnyCR anyCRPayload) {
89          this.anyCRPayload = anyCRPayload;
90      }
91  
92      @Schema(accessMode = Schema.AccessMode.READ_ONLY)
93      public AnyUR getAnyURPayload() {
94          return anyURPayload;
95      }
96  
97      public void setAnyURPayload(final AnyUR anyURPayload) {
98          this.anyURPayload = anyURPayload;
99      }
100 
101     @Schema(accessMode = Schema.AccessMode.READ_ONLY)
102     public String getKeyPayload() {
103         return keyPayload;
104     }
105 
106     public void setKeyPayload(final String keyPayload) {
107         this.keyPayload = keyPayload;
108     }
109 
110     @Schema(accessMode = Schema.AccessMode.READ_ONLY)
111     public String getError() {
112         return error;
113     }
114 
115     public void setError(final String error) {
116         this.error = error;
117     }
118 
119     @Schema(accessMode = Schema.AccessMode.READ_ONLY)
120     public OffsetDateTime getInstant() {
121         return instant;
122     }
123 
124     public void setInstant(final OffsetDateTime instant) {
125         this.instant = instant;
126     }
127 
128     @Schema(accessMode = Schema.AccessMode.READ_ONLY)
129     public String getPullTask() {
130         return pullTask;
131     }
132 
133     public void setPullTask(final String pullTask) {
134         this.pullTask = pullTask;
135     }
136 
137     @Schema(accessMode = Schema.AccessMode.READ_ONLY)
138     public String getResource() {
139         return resource;
140     }
141 
142     public void setResource(final String resource) {
143         this.resource = resource;
144     }
145 
146     @Schema(accessMode = Schema.AccessMode.READ_ONLY)
147 
148     public String getRemoteName() {
149         return remoteName;
150     }
151 
152     public void setRemoteName(final String remoteName) {
153         this.remoteName = remoteName;
154     }
155 }