public class AMClientCapData extends Object implements IDSEventListener
Modifier and Type | Field and Description |
---|---|
static String |
ADD_PROP_SEPARATOR |
static int |
ADDED
The type of modification
|
static String |
ADDITIONAL_PROPERTIES_ATTR |
static int |
EXTERNAL |
static int |
INTERNAL |
static int |
MODIFIED |
protected static int |
OPERATIONS |
static int |
REMOVED |
protected static String |
SEARCH_FILTER |
CHANGE_ADD, CHANGE_DELETE, CHANGE_MOD_LOCATION, CHANGE_MODIFY
Modifier and Type | Method and Description |
---|---|
int |
addClient(SSOToken token,
Map props)
Add a client.
|
void |
addListener(AMClientDataListener cdl)
register for listening to Client data changes
|
void |
allEntriesChanged()
This callback notifies listeners that EventService is restarting the
Persistent Search connections due to connection errors, and there is no
guarantee of what could have changed in the directory so mark all entries
as modified.
|
boolean |
canCreateInternalClients()
Checks the enableClientCliention attr in Service.
|
void |
entryChanged(DSEvent event)
This callback method is called by the EventService when the Directory
Server triggers a PersistentSearch notification
|
void |
eventError(String err)
This callback method is called by the EventService when an error is
encountered after setting a Persistent Search request in the Directory
Server
|
AttributeSchema |
getAttributeSchema(String propName)
Returns the schema for an property given the name.
|
String |
getBase() |
String[] |
getClassifications() |
static AMClientCapData |
getExternalInstance()
Singleton method to get an external instance
|
String |
getFilter() |
static AMClientCapData |
getInternalInstance()
Singleton method to get an internal instance
|
Set |
getMinimalClientInfo()
Gets a minimal set of client properties for all clients.
|
int |
getOperations() |
String |
getProfileManagerXML()
Gets the profile manager xlob as a string.
|
Map |
getProperties(String clientType)
Get a Map of all the properties for the Client.
|
Set |
getPropertyNames(String classification)
Get a Set of all the Property names for the classification.
|
static Set |
getSchemaElements()
This method returns the name of the "defined" client properties in the
Schema.
|
int |
getScope() |
String |
getServiceName() |
boolean |
isClientPresent(String clientType)
Checks if the clientType exists in the db.
|
Map |
loadMinimalClient(String clientType)
Gets the minimal client info for the specified client.
|
int |
modifyClient(SSOToken token,
Map props)
Modify the properties of the Client instance in externalDB.
|
int |
removeClient(SSOToken token,
String clientType)
Remove a Client - removes the client from the externalDB.
|
void |
setListeners(Map listener) |
public static final int INTERNAL
public static final int EXTERNAL
public static final int ADDED
public static final int REMOVED
public static final int MODIFIED
public static final String ADD_PROP_SEPARATOR
public static final String ADDITIONAL_PROPERTIES_ATTR
protected static final String SEARCH_FILTER
protected static final int OPERATIONS
public String getServiceName()
public static AMClientCapData getInternalInstance() throws AMClientCapException
AMClientCapException
public static AMClientCapData getExternalInstance() throws AMClientCapException
AMClientCapException
public Map getProperties(String clientType)
clientType
- Client Type Name.public Map loadMinimalClient(String clientType)
public String getProfileManagerXML()
public Set getPropertyNames(String classification)
public boolean isClientPresent(String clientType)
public int addClient(SSOToken token, Map props) throws AMClientCapException
token
- SSOToken to validate the userprops
- Map of profiles known to ClientCap. The Map "must" have a
property "clientType"AMClientCapException
- if Client could not be added - permission problems or if
the clientType property is mising in the Map.public int modifyClient(SSOToken token, Map props) throws AMClientCapException
token
- SSOToken to validate the user.props
- Map of profiles known to ClientCapabilities. The Map contains
key of property name(s) and Set for the values. It wont
overwrite the property names not in the Map. A key with an
empty Set for the values will delete the property (DSAME
cannot handle null values - throws NullPointerExcptn). The Map
"must" have a property "clientType"AMClientCapException
- if Client could not be modified - permission problems OR
if the clientType property is mising in the Map.public int removeClient(SSOToken token, String clientType) throws AMClientCapException
token
- SSOToken to validate the userclientType
- Client Type Name.AMClientCapException
- if Client could not be removed - permission problemspublic static Set getSchemaElements()
public AttributeSchema getAttributeSchema(String propName)
propName
- Name of the propertyAttributeSchema
public boolean canCreateInternalClients()
public void addListener(AMClientDataListener cdl)
public void eventError(String err)
IDSEventListener
eventError
in interface IDSEventListener
public void entryChanged(DSEvent event)
IDSEventListener
entryChanged
in interface IDSEventListener
public void allEntriesChanged()
IDSEventListener
allEntriesChanged
in interface IDSEventListener
public String[] getClassifications()
public Set getMinimalClientInfo()
public String getBase()
getBase
in interface IDSEventListener
public String getFilter()
getFilter
in interface IDSEventListener
public int getOperations()
getOperations
in interface IDSEventListener
public int getScope()
getScope
in interface IDSEventListener
public void setListeners(Map listener)
setListeners
in interface IDSEventListener
Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.