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 com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlElementWrapper;
22  import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
23  import java.util.ArrayList;
24  import java.util.List;
25  import javax.ws.rs.PathParam;
26  import org.apache.syncope.common.lib.types.SAML2BindingType;
27  
28  public class SAML2SP4UIIdPTO extends ItemContainer implements EntityTO {
29  
30      private static final long serialVersionUID = 4426527052873779881L;
31  
32      private String key;
33  
34      private String entityID;
35  
36      private String name;
37  
38      private String metadata;
39  
40      private SAML2BindingType bindingType;
41  
42      private boolean logoutSupported;
43  
44      private String requestedAuthnContextProvider;
45  
46      private boolean createUnmatching;
47  
48      private boolean updateMatching;
49  
50      private boolean selfRegUnmatching;
51  
52      private UserTO userTemplate;
53  
54      private final List<String> actions = new ArrayList<>();
55  
56      @Override
57      public String getKey() {
58          return key;
59      }
60  
61      @PathParam("key")
62      @Override
63      public void setKey(final String key) {
64          this.key = key;
65      }
66  
67      public String getEntityID() {
68          return entityID;
69      }
70  
71      public void setEntityID(final String entityID) {
72          this.entityID = entityID;
73      }
74  
75      public String getName() {
76          return name;
77      }
78  
79      public void setName(final String name) {
80          this.name = name;
81      }
82  
83      public String getMetadata() {
84          return metadata;
85      }
86  
87      public void setMetadata(final String metadata) {
88          this.metadata = metadata;
89      }
90  
91      public SAML2BindingType getBindingType() {
92          return bindingType;
93      }
94  
95      public void setBindingType(final SAML2BindingType bindingType) {
96          this.bindingType = bindingType;
97      }
98  
99      public boolean isLogoutSupported() {
100         return logoutSupported;
101     }
102 
103     public void setLogoutSupported(final boolean logoutSupported) {
104         this.logoutSupported = logoutSupported;
105     }
106 
107     public String getRequestedAuthnContextProvider() {
108         return requestedAuthnContextProvider;
109     }
110 
111     public void setRequestedAuthnContextProvider(final String requestedAuthnContextProvider) {
112         this.requestedAuthnContextProvider = requestedAuthnContextProvider;
113     }
114 
115     public boolean isCreateUnmatching() {
116         return createUnmatching;
117     }
118 
119     public void setCreateUnmatching(final boolean createUnmatching) {
120         this.createUnmatching = createUnmatching;
121     }
122 
123     public boolean isSelfRegUnmatching() {
124         return selfRegUnmatching;
125     }
126 
127     public void setSelfRegUnmatching(final boolean selfRegUnmatching) {
128         this.selfRegUnmatching = selfRegUnmatching;
129     }
130 
131     public boolean isUpdateMatching() {
132         return updateMatching;
133     }
134 
135     public void setUpdateMatching(final boolean updateMatching) {
136         this.updateMatching = updateMatching;
137     }
138 
139     public UserTO getUserTemplate() {
140         return userTemplate;
141     }
142 
143     public void setUserTemplate(final UserTO userTemplate) {
144         this.userTemplate = userTemplate;
145     }
146 
147     @JacksonXmlElementWrapper(localName = "actions")
148     @JacksonXmlProperty(localName = "action")
149     public List<String> getActions() {
150         return actions;
151     }
152 }