keycloak-scim/services/src/main/java/org/keycloak/protocol/ProtocolMapper.java

72 lines
1.8 KiB
Java
Raw Normal View History

2015-02-20 14:22:49 +00:00
package org.keycloak.protocol;
import org.keycloak.provider.Provider;
import org.keycloak.provider.ProviderFactory;
2015-02-21 15:26:55 +00:00
import java.util.List;
2015-02-20 14:22:49 +00:00
/**
* @author <a href="mailto:bill@burkecentral.com">Bill Burke</a>
* @version $Revision: 1 $
*/
public interface ProtocolMapper extends Provider, ProviderFactory<ProtocolMapper> {
String getProtocol();
2015-02-27 23:21:42 +00:00
String getDisplayCategory();
2015-02-20 14:22:49 +00:00
String getDisplayType();
2015-02-27 23:21:42 +00:00
String getHelpText();
2015-02-21 15:26:55 +00:00
public static class ConfigProperty {
2015-03-03 02:39:43 +00:00
public static final String BOOLEAN_TYPE="boolean";
public static final String STRING_TYPE="String";
2015-03-06 23:29:36 +00:00
public static final String LIST_TYPE="List";
2015-03-03 02:39:43 +00:00
2015-02-21 15:26:55 +00:00
protected String name;
protected String label;
protected String helpText;
2015-03-03 02:39:43 +00:00
protected String type;
2015-03-06 23:29:36 +00:00
protected Object defaultValue;
2015-02-21 15:26:55 +00:00
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getLabel() {
return label;
}
public void setLabel(String label) {
this.label = label;
}
2015-03-03 02:39:43 +00:00
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
2015-03-06 23:29:36 +00:00
public Object getDefaultValue() {
2015-03-03 02:39:43 +00:00
return defaultValue;
}
2015-03-06 23:29:36 +00:00
public void setDefaultValue(Object defaultValue) {
2015-03-03 02:39:43 +00:00
this.defaultValue = defaultValue;
}
2015-02-21 15:26:55 +00:00
public String getHelpText() {
return helpText;
}
public void setHelpText(String helpText) {
this.helpText = helpText;
}
}
List<ConfigProperty> getConfigProperties();
2015-02-20 14:22:49 +00:00
}