Package com.sun.identity.sm.jaxrpc
Class SMSJAXRPCObjectImpl
- java.lang.Object
-
- com.sun.identity.sm.jaxrpc.SMSJAXRPCObjectImpl
-
- All Implemented Interfaces:
SMSObjectIF,SMSObjectListener,Remote,EventListener
public class SMSJAXRPCObjectImpl extends Object implements SMSObjectIF, SMSObjectListener
-
-
Field Summary
-
Fields inherited from interface com.sun.identity.sm.SMSObjectListener
ADD, DELETE, MODIFY
-
-
Constructor Summary
Constructors Constructor Description SMSJAXRPCObjectImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidallObjectsChanged()This callback notifies the listener that all object should be marked as "changed" or "dirty".voidcheckForLocal()voidcreate(String tokenID, String objName, Map attributes)Creates an entry in the persistent store.voiddelete(String tokenID, String objName)Delete the entry in the datastore.voiddeRegisterNotificationURL(String id)booleanentryExists(String tokenID, String objName)Checks if the provided DN exists.StringgetAMSdkBaseDN()Returns the root suffix (i.e., amsdkbase DN) for the UMS objects.StringgetRootSuffix()Returns the root suffix (i.e., base DN) for the SMS objects.voidmodify(String tokenID, String objName, String mods)Modifies the attributes to the object.voidnotifyObjectChanged(String name, int type)Processes object changed events from other seversvoidobjectChanged(String name, int type)This callback method is called by the EventService when the Directory Server triggers a PersistentSearch notificationSetobjectsChanged(int time)Mapread(String tokenID, String objName)Returns the attribute names and values of the provided object using the identity of the provided SSO TokenStringregisterNotificationURL(String url)SetschemaSubEntries(String tokenID, String dn, String filter, String sidFilter, int numOfEntries, boolean sortResults, boolean ao)Returns the sub-entries matching the schema id.Setsearch(String tokenID, String startDN, String filter)Searchs the data store for objects that match the filterSetsearch2(String tokenID, String startDN, String filter, int numOfEntries, int timeLimit, boolean sortResults, boolean ascendingOrder)Searchs the data store for objects that match the filterSetsearch3(String tokenID, String startDN, String filter, int numOfEntries, int timeLimit, boolean sortResults, boolean ascendingOrder, Set excludes)Searches the data store for objects that match the filter with an exclude setSetsearchOrganizationNames(String tokenID, String dn, int numOfEntries, boolean sortResults, boolean ascendingOrder, String serviceName, String attrName, Set values)Returns the organization names.SetsearchSubOrgNames(String tokenID, String dn, String filter, int numOfEntries, boolean sortResults, boolean ascendingOrder, boolean recursive)Returns the suborganization names.SetsubEntries(String tokenID, String dn, String filter, int numOfEntries, boolean sortResults, boolean ascendingOrder)Returns the sub-entries.booleanvalidateServiceAttributes(String token, String validatorClass, Set values)Validates service configuration attributes.
-
-
-
Method Detail
-
checkForLocal
public void checkForLocal()
- Specified by:
checkForLocalin interfaceSMSObjectIF
-
read
public Map read(String tokenID, String objName) throws SMSException, SSOException, RemoteException
Returns the attribute names and values of the provided object using the identity of the provided SSO Token- Specified by:
readin interfaceSMSObjectIF- Throws:
SMSExceptionSSOExceptionRemoteException
-
create
public void create(String tokenID, String objName, Map attributes) throws SMSException, SSOException, RemoteException
Creates an entry in the persistent store. Throws an exception if the entry already exists- Specified by:
createin interfaceSMSObjectIF- Throws:
SMSExceptionSSOExceptionRemoteException
-
modify
public void modify(String tokenID, String objName, String mods) throws SMSException, SSOException, RemoteException
Modifies the attributes to the object.- Specified by:
modifyin interfaceSMSObjectIF- Throws:
SMSExceptionSSOExceptionRemoteException
-
delete
public void delete(String tokenID, String objName) throws SMSException, SSOException, RemoteException
Delete the entry in the datastore. This should delete sub-entries also- Specified by:
deletein interfaceSMSObjectIF- Throws:
SMSExceptionSSOExceptionRemoteException
-
searchSubOrgNames
public Set searchSubOrgNames(String tokenID, String dn, String filter, int numOfEntries, boolean sortResults, boolean ascendingOrder, boolean recursive) throws SMSException, SSOException
Returns the suborganization names. Returns a set of SMSEntry objects that are suborganization names. The paramternumOfEntriesidentifies the number of entries to return, if code>0 returns all the entries.- Specified by:
searchSubOrgNamesin interfaceSMSObjectIF- Throws:
SMSExceptionSSOException
-
searchOrganizationNames
public Set searchOrganizationNames(String tokenID, String dn, int numOfEntries, boolean sortResults, boolean ascendingOrder, String serviceName, String attrName, Set values) throws SMSException, SSOException
Returns the organization names. Returns a set of SMSEntry objects that are organization names. The paramternumOfEntriesidentifies the number of entries to return, if0returns all the entries.- Specified by:
searchOrganizationNamesin interfaceSMSObjectIF- Throws:
SMSExceptionSSOException
-
subEntries
public Set subEntries(String tokenID, String dn, String filter, int numOfEntries, boolean sortResults, boolean ascendingOrder) throws SMSException, SSOException
Returns the sub-entries. Returns a set of SMSEntry objects that are sub-entries. The paramternumOfEntriesidentifies the number of entries to return, if0returns all the entries.- Specified by:
subEntriesin interfaceSMSObjectIF- Throws:
SMSExceptionSSOException
-
schemaSubEntries
public Set schemaSubEntries(String tokenID, String dn, String filter, String sidFilter, int numOfEntries, boolean sortResults, boolean ao) throws SMSException, SSOException
Returns the sub-entries matching the schema id. Returns a set of SMSEntry objects that are sub-entries for the provided schema id. The paramternumOfEntriesidentifies the number of entries to return, if0returns all the entries.- Specified by:
schemaSubEntriesin interfaceSMSObjectIF- Throws:
SMSExceptionSSOException
-
search
public Set search(String tokenID, String startDN, String filter) throws SMSException, SSOException, RemoteException
Searchs the data store for objects that match the filter- Specified by:
searchin interfaceSMSObjectIF- Throws:
SMSExceptionSSOExceptionRemoteException
-
search2
public Set search2(String tokenID, String startDN, String filter, int numOfEntries, int timeLimit, boolean sortResults, boolean ascendingOrder) throws SMSException, SSOException, RemoteException
Searchs the data store for objects that match the filter- Specified by:
search2in interfaceSMSObjectIF- Throws:
SMSExceptionSSOExceptionRemoteException
-
search3
public Set search3(String tokenID, String startDN, String filter, int numOfEntries, int timeLimit, boolean sortResults, boolean ascendingOrder, Set excludes) throws SMSException, SSOException, RemoteException
Searches the data store for objects that match the filter with an exclude set- Specified by:
search3in interfaceSMSObjectIF- Throws:
SMSExceptionSSOExceptionRemoteException
-
entryExists
public boolean entryExists(String tokenID, String objName) throws SSOException, RemoteException
Checks if the provided DN exists. Used by PolicyManager.- Specified by:
entryExistsin interfaceSMSObjectIF- Throws:
SSOExceptionRemoteException
-
getRootSuffix
public String getRootSuffix() throws RemoteException
Returns the root suffix (i.e., base DN) for the SMS objects. All SMSEntries will end with this root suffix.- Specified by:
getRootSuffixin interfaceSMSObjectIF- Throws:
RemoteException
-
getAMSdkBaseDN
public String getAMSdkBaseDN() throws RemoteException
Returns the root suffix (i.e., amsdkbase DN) for the UMS objects. All UMSEntries will end with this root suffix.- Specified by:
getAMSdkBaseDNin interfaceSMSObjectIF- Throws:
RemoteException
-
validateServiceAttributes
public boolean validateServiceAttributes(String token, String validatorClass, Set values) throws SMSException, SSOException, RemoteException
Validates service configuration attributes.- Specified by:
validateServiceAttributesin interfaceSMSObjectIF- Parameters:
token- Single Sign On token.validatorClass- validator class name.values- Values to be validated.- Returns:
trueof values are valid.- Throws:
SMSException- if value is not valid.SSOException- if single sign on token is in valid.RemoteException- if remote method cannot be invoked.
-
objectsChanged
public Set objectsChanged(int time) throws RemoteException
- Specified by:
objectsChangedin interfaceSMSObjectIF- Throws:
RemoteException
-
objectChanged
public void objectChanged(String name, int type)
Description copied from interface:SMSObjectListenerThis callback method is called by the EventService when the Directory Server triggers a PersistentSearch notification- Specified by:
objectChangedin interfaceSMSObjectListener
-
allObjectsChanged
public void allObjectsChanged()
Description copied from interface:SMSObjectListenerThis callback notifies the listener that all object should be marked as "changed" or "dirty". This callback is only used in the case when Event Service looses the directory connection and does not know what could have changed in the directory.- Specified by:
allObjectsChangedin interfaceSMSObjectListener
-
registerNotificationURL
public String registerNotificationURL(String url) throws RemoteException
- Specified by:
registerNotificationURLin interfaceSMSObjectIF- Throws:
RemoteException
-
deRegisterNotificationURL
public void deRegisterNotificationURL(String id) throws RemoteException
- Specified by:
deRegisterNotificationURLin interfaceSMSObjectIF- Throws:
RemoteException
-
notifyObjectChanged
public void notifyObjectChanged(String name, int type) throws RemoteException
Processes object changed events from other severs- Specified by:
notifyObjectChangedin interfaceSMSObjectIF- Parameters:
name- DN of the object changedtype- change type- Throws:
RemoteException
-
-