com.waveset.adapter.jms
Class PasswordSyncMessageMapper

java.lang.Object
  extended bycom.waveset.adapter.jms.PasswordSyncMessageMapper
All Implemented Interfaces:
JmsMessageMapper

public class PasswordSyncMessageMapper
extends java.lang.Object
implements JmsMessageMapper

This class is deigned to convert messages comming in from a jms password sync source and put them in a java Map. Attributes that are required include: resourceAccountGUID : guid of the user that change a password resourceAccountId : dn or acctid of the user that change a password password : the new password userEmailAddress : email address of user that change a password In addition to the attributes comming infrom the jms message this class also resolves additional attributes for use by the workflow. These attributes are inputs to the Password Synchronization workflow and involve resolving things from IDM. IDMAccountId : resolved user id from resourceAccountGUID or resourceAccountId userEmail : if userEmailAddress is not specified, we use the one found in IDM sourceResource : resource name where the account was found lastSourcePasswordUpdate : Long representing the last time the password was changed on the source resource. PasswordSyncThreshold : Number of seconds by default to allow between resets before triggering a synchonrization. This is to shield us from recursive password changes when the IDM is the source of the password change. This value is retrieved from the system configuration attribute named PasswordSyncThreshold PasswordSyncResourceExcludeList : List of resources that should never be included in password synchronization requests. This is retrieved from the system configuration attribute named PasswordSyncResourceExcludeList. After this the mapping takes place, active sync process takes over and the attributes are sent to the configured form for transformations. We provide a default form for which moves these attributes from the activeSync namespace to the top level.


Constructor Summary
PasswordSyncMessageMapper()
           
 
Method Summary
 java.util.Map map(java.util.Map ctx, javax.jms.Message message)
          Returned a map of values found in a JMS message
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PasswordSyncMessageMapper

public PasswordSyncMessageMapper()
Method Detail

map

public java.util.Map map(java.util.Map ctx,
                         javax.jms.Message message)
                  throws java.lang.Exception
Returned a map of values found in a JMS message

Specified by:
map in interface JmsMessageMapper
Parameters:
ctx - a Map of objects helpful in building the resulting output Map. The map entries include:
KeyValue
"adapter"The instance of com.waveset.adapter.ResourceAdapterBase corresponding to the adapter class

message - the incoming JMS Message
Returns:
the map of values gleaned from the message
Throws:
java.lang.Exception