public abstract class SMSObject extends Object
AMConfig.properties
by setting the property
com.sun.identity.sm.sms_object_class_name
to the fully qualified class name (i.e., including the package name) without
the .class
extension. Only one instance of this class will be
instantiated within a single JVM, hence the function must be reentrant. The
implementation of this class must provide an empty constructor that will be
used to create an instance of this class.Constructor and Description |
---|
SMSObject() |
Modifier and Type | Method and Description |
---|---|
boolean |
cacheResults() |
abstract void |
create(SSOToken token,
String objName,
Map attributes)
Creates an entry in the persistent store.
|
Debug |
debug() |
abstract void |
delete(SSOToken token,
String objName)
Delete the entry in the datastore.
|
void |
deregisterCallbackHandler(String listenerID)
De-Registration of Notification Callbacks
|
abstract boolean |
entryExists(SSOToken token,
String objName)
Checks if the provided DN exists.
|
abstract String |
getAMSdkBaseDN()
Returns the AMSDK BaseDN for the UM objects.
|
String[] |
getAttributeNames()
Returns all the SMS attribute names
|
String |
getNamingAttribute()
Returns the naming attribute
|
String |
getOrgNamingAttribute()
Returns the organization naming attribute
|
abstract String |
getRootSuffix()
Returns the root suffix (i.e., base DN) for the SMS objects.
|
String |
getSearchFilter()
Returns search (LDAP) filter to search for SMS objects
|
String |
getServiceIdSearchFilter()
Returns search (LDAP) filter to search for SMS objects
|
void |
initialize(Map initParams)
Initialization parameters that are configured via system properties or
can be dynamically set during run-time.
|
abstract void |
modify(SSOToken token,
String objName,
ModificationItem[] mods)
Modifies the attributes to the object.
|
abstract Map<String,Set<String>> |
read(SSOToken token,
String objName)
Reads in the object from persistent store.
|
void |
registerCallbackHandler(SMSObjectListener changeListener)
Registration of Notification Callbacks
|
abstract Set<String> |
schemaSubEntries(SSOToken token,
String dn,
String filter,
String sidFilter,
int numOfEntries,
boolean sortResults,
boolean ascendingOrder)
Returns the sub-entries.
|
abstract Set<String> |
search(SSOToken token,
String startDN,
String filter,
int numOfEntries,
int timeLimit,
boolean sortResults,
boolean ascendingOrder)
Searchs the data store for objects that match the filter
|
abstract Iterator<SMSDataEntry> |
search(SSOToken token,
String startDN,
String filter,
int numOfEntries,
int timeLimit,
boolean sortResults,
boolean ascendingOrder,
Set<String> excludes)
Searchs the data store for objects that match the filter
|
abstract Set<String> |
searchOrganizationNames(SSOToken token,
String dn,
int numOfEntries,
boolean sortResults,
boolean ascendingOrder,
String serviceName,
String attrName,
Set values)
Returns the organization names.
|
abstract Set<String> |
searchSubOrgNames(SSOToken token,
String dn,
String filter,
int numOfEntries,
boolean sortResults,
boolean ascendingOrder,
boolean recursive)
Returns the suborganization names.
|
void |
shutdown() |
abstract Set<String> |
subEntries(SSOToken token,
String dn,
String filter,
int numOfEntries,
boolean sortResults,
boolean ascendingOrder)
Returns the sub-entries.
|
public void initialize(Map initParams) throws SMSException
SMSException
public abstract Map<String,Set<String>> read(SSOToken token, String objName) throws SMSException, SSOException
null
SMSException
SSOException
public abstract void create(SSOToken token, String objName, Map attributes) throws SMSException, SSOException
SMSException
SSOException
public abstract void modify(SSOToken token, String objName, ModificationItem[] mods) throws SMSException, SSOException
SMSException
SSOException
public abstract void delete(SSOToken token, String objName) throws SMSException, SSOException
SMSException
SSOException
public abstract 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.SMSException
SSOException
public abstract 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.SMSException
SSOException
public abstract 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.SMSException
SSOException
public abstract 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.SMSException
SSOException
public abstract Set<String> search(SSOToken token, String startDN, String filter, int numOfEntries, int timeLimit, boolean sortResults, boolean ascendingOrder) throws SMSException, SSOException
SMSException
SSOException
public abstract Iterator<SMSDataEntry> search(SSOToken token, String startDN, String filter, int numOfEntries, int timeLimit, boolean sortResults, boolean ascendingOrder, Set<String> excludes) throws SMSException, SSOException
SMSException
SSOException
public abstract boolean entryExists(SSOToken token, String objName)
public void registerCallbackHandler(SMSObjectListener changeListener) throws SMSException
SMSException
public void deregisterCallbackHandler(String listenerID)
public abstract String getRootSuffix()
public abstract String getAMSdkBaseDN()
public String getNamingAttribute()
public String getOrgNamingAttribute()
public String[] getAttributeNames()
public String getSearchFilter()
public String getServiceIdSearchFilter()
public Debug debug()
public boolean cacheResults()
public void shutdown()
Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.