public class SMSEmbeddedLdapObject extends SMSObjectDB implements SMSObjectListener
This class is used both to read and write information into the directory server. The appropriate constructors discusses it is done.
There can be only three types of SMS entries in the directory (i) entry with organizationUnit object class (attribute: ou) (ii) entry with sunService object class (attributes: ou, labeledURI, sunServiceSchema, sunPluginSchema, and sunKeyValue (sunXMLKeyValue, in the future) (iii) entry with sunServiceComponent object class (attributes: ou, sunServiceID, sunSMSPriority, sunKeyValue. All the schema, configuration and plugin entries will be stored using the above entries.
ADD, DELETE, MODIFY
Constructor and Description |
---|
SMSEmbeddedLdapObject()
Public constructor for SMSEmbeddedLdapObject
|
Modifier and Type | Method and Description |
---|---|
void |
allObjectsChanged()
This callback notifies the listener that all object should be marked as
"changed" or "dirty".
|
void |
create(SSOToken token,
String dn,
Map attrs)
Create an entry in the directory
|
void |
delete(SSOToken token,
String dn)
Delete the entry in the directory.
|
void |
deregisterCallbackHandler(String id)
De-Registration of Notification Callbacks
|
boolean |
entryExists(SSOToken token,
String dn)
Checks if the provided DN exists.
|
void |
modify(SSOToken token,
String dn,
ModificationItem[] mods)
Save the entry using the token provided.
|
void |
objectChanged(String dn,
int type)
This callback method is called by the EventService when the Directory
Server triggers a PersistentSearch notification
|
Map |
read(SSOToken token,
String dn)
Reads in the object from persistent store, assuming that the guid and the
SSOToken are valid
|
void |
registerCallbackHandler(SMSObjectListener changeListener)
Registration of Notification Callbacks
|
Set<String> |
schemaSubEntries(SSOToken token,
String dn,
String filter,
String sidFilter,
int numOfEntries,
boolean sortResults,
boolean ascendingOrder)
Returns the sub-entry names.
|
Set<String> |
search(SSOToken token,
String startDN,
String filter,
int numOfEntries,
int timeLimit,
boolean sortResults,
boolean ascendingOrder)
Returns LDAP entries that match the filter, using the start DN provided
in method
|
Iterator<SMSDataEntry> |
search(SSOToken token,
String startDN,
String filter,
int numOfEntries,
int timeLimit,
boolean sortResults,
boolean ascendingOrder,
Set excludes)
Searchs the data store for objects that match the filter
|
Set<String> |
searchOrganizationNames(SSOToken token,
String dn,
int numOfEntries,
boolean sortResults,
boolean ascendingOrder,
String serviceName,
String attrName,
Set values)
Returns the organization names.
|
Set<String> |
searchSubOrgNames(SSOToken token,
String dn,
String filter,
int numOfEntries,
boolean sortResults,
boolean ascendingOrder,
boolean recursive)
Returns the suborganization names.
|
void |
shutdown() |
Set<String> |
subEntries(SSOToken token,
String dn,
String filter,
int numOfEntries,
boolean sortResults,
boolean ascendingOrder)
Returns the sub-entry names.
|
String |
toString() |
getAMSdkBaseDN, getRootSuffix
cacheResults, debug, getAttributeNames, getNamingAttribute, getOrgNamingAttribute, getSearchFilter, getServiceIdSearchFilter, initialize
public SMSEmbeddedLdapObject() throws SMSException
SMSException
public Map read(SSOToken token, String dn) throws SMSException, SSOException
read
in class SMSObject
SMSException
SSOException
public void create(SSOToken token, String dn, Map attrs) throws SMSException, SSOException
create
in class SMSObject
SMSException
SSOException
public void modify(SSOToken token, String dn, ModificationItem[] mods) throws SMSException, SSOException
modify
in class SMSObject
SMSException
SSOException
public void delete(SSOToken token, String dn) throws SMSException, SSOException
delete
in class SMSObject
SMSException
SSOException
public Set<String> subEntries(SSOToken token, String dn, String filter, int numOfEntries, boolean sortResults, boolean ascendingOrder) throws SMSException, SSOException
numOfEntries
identifies the number of entries
to return, if 0
returns all the entries.subEntries
in class SMSObject
SMSException
SSOException
public Set<String> schemaSubEntries(SSOToken token, String dn, String filter, String sidFilter, int numOfEntries, boolean sortResults, boolean ascendingOrder) throws SMSException, SSOException
numOfEntries
identifies the number of entries
to return, if 0
returns all the entries.schemaSubEntries
in class SMSObject
SMSException
SSOException
public Iterator<SMSDataEntry> search(SSOToken token, String startDN, String filter, int numOfEntries, int timeLimit, boolean sortResults, boolean ascendingOrder, Set excludes) throws SSOException, SMSException
SMSObject
search
in class SMSObject
SSOException
SMSException
public Set<String> search(SSOToken token, String startDN, String filter, int numOfEntries, int timeLimit, boolean sortResults, boolean ascendingOrder) throws SSOException, SMSException
search
in class SMSObject
SSOException
SMSException
public boolean entryExists(SSOToken token, String dn)
entryExists
in class SMSObject
token
- Admin token.dn
- The DN to check.true
if the entry exists, false
otherwise.public void registerCallbackHandler(SMSObjectListener changeListener) throws SMSException
registerCallbackHandler
in class SMSObject
SMSException
public void deregisterCallbackHandler(String id)
SMSObject
deregisterCallbackHandler
in class SMSObject
public void objectChanged(String dn, int type)
SMSObjectListener
objectChanged
in interface SMSObjectListener
public void allObjectsChanged()
SMSObjectListener
allObjectsChanged
in interface SMSObjectListener
public Set<String> searchSubOrgNames(SSOToken token, String dn, String filter, int numOfEntries, boolean sortResults, boolean ascendingOrder, boolean recursive) throws SMSException, SSOException
numOfEntries
identifies
the number of entries to return, if 0
returns all the
entries.searchSubOrgNames
in class SMSObject
SMSException
SSOException
public Set<String> searchOrganizationNames(SSOToken token, String dn, int numOfEntries, boolean sortResults, boolean ascendingOrder, String serviceName, String attrName, Set values) throws SMSException, SSOException
numOfEntries
identifies
the number of entries to return, if 0
returns all the
entries.searchOrganizationNames
in class SMSObject
SMSException
SSOException
Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.