Class ConnectorRestClient
- java.lang.Object
-
- org.apache.syncope.client.console.rest.BaseRestClient
-
- org.apache.syncope.client.console.rest.ConnectorRestClient
-
- All Implemented Interfaces:
Serializable
,RestClient
public class ConnectorRestClient extends BaseRestClient
Console client for invoking Rest Connectors services.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.apache.syncope.client.console.rest.BaseRestClient
LOG
-
-
Constructor Summary
Constructors Constructor Description ConnectorRestClient()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<ConnIdObjectClass>
buildObjectClassInfo(ConnInstanceTO connInstanceTO, boolean includeSpecial)
boolean
check(String coreAddress, String domain, String jwt, String key)
Pair<Boolean,String>
check(ConnInstanceTO connectorTO)
ConnInstanceTO
create(ConnInstanceTO connectorTO)
ConnInstanceTO
delete(String key)
protected List<ConnConfProperty>
filterProperties(Collection<ConnConfProperty> properties)
List<ConnIdBundle>
getAllBundles()
List<ConnInstanceTO>
getAllConnectors()
List<String>
getExtAttrNames(String adminRealm, String objectClass, String connectorKey, Collection<ConnConfProperty> conf)
List<String>
getObjectClasses(String connectorKey)
ConnInstanceTO
read(String key)
Load an already existent connector by its name.void
reload()
void
update(ConnInstanceTO connectorTO)
-
Methods inherited from class org.apache.syncope.client.console.rest.BaseRestClient
getObject, getService, getService, getStatus, getSyncopeService, resetClient, toOrderBy
-
-
-
-
Method Detail
-
getAllConnectors
public List<ConnInstanceTO> getAllConnectors()
-
create
public ConnInstanceTO create(ConnInstanceTO connectorTO)
-
getExtAttrNames
public List<String> getExtAttrNames(String adminRealm, String objectClass, String connectorKey, Collection<ConnConfProperty> conf)
-
read
public ConnInstanceTO read(String key)
Load an already existent connector by its name.- Parameters:
key
- the id- Returns:
- ConnInstanceTO
-
update
public void update(ConnInstanceTO connectorTO)
-
delete
public ConnInstanceTO delete(String key)
-
getAllBundles
public List<ConnIdBundle> getAllBundles()
-
filterProperties
protected List<ConnConfProperty> filterProperties(Collection<ConnConfProperty> properties)
-
check
public boolean check(String coreAddress, String domain, String jwt, String key) throws IOException
- Throws:
IOException
-
check
public Pair<Boolean,String> check(ConnInstanceTO connectorTO)
-
buildObjectClassInfo
public List<ConnIdObjectClass> buildObjectClassInfo(ConnInstanceTO connInstanceTO, boolean includeSpecial)
-
reload
public void reload()
-
-