1.1 Configure Password Printing Adapter

This topic provides information on Configure Password Printing Adapter.

  1. After successfully storing password in System, same will be available for printing to administrator.
  2. Currently when admin performs password printing for user, password printing data stored in system in blob using adapter.
  3. To override existing password printing implementation, you need to perform following steps:
    • Add adapter that implements com.ofss.digx.app.sms.user.printinformation.provider.IUserInformationPrintAdapter. Here you can add implementation for printing document for a user. PasswordPrintInformationDTO object will contain username, password and other documents(Password Letter/Welcome Letter).

      Example:

      package com.ofss.digx.app.sms.user.printinformation.provider; 
      import com.ofss.digx.app.sms.dto.user.printInformation.PasswordPrintInformationDTO;
      import com.ofss.digx.infra.exceptions.Exception; 
      publicclass CustomUserInformationPrintAdapter implements IUserInformationPrintAdapter 
       {        
        @Override publicvoid print
          (
          PasswordPrintInformationDTO userprintDTO    
           ) 
          throws Exception 
          {             
           // TODO Auto-generated method stub        
           } 
        }
    • Add one entry in database table digx_cfg_config_all_b for prop_id =’UserManagementConfig.USER_INFORMATION_PRINT_PROVIDER'.
      INSERT INTO DIGX_CFG_CONFIG_ALL_B (PROP_ID, PROFILE, PROP_VALUE, ENTITY_SPECIFIC, EDITABLE, MANDATORY_OVERRIDE, PROPERTY_GROUP, CREATED_BY, CREATION_DATE, LAST_UPDATED_BY, LAST_UPDATED_DATE, OBJECT_VERSION_NUMBER, MODULE, SEQUENCE, VALIDATION, IS_ENUMERATED) VALUES ('UserManagementConfig.USER_INFORMATION_PRINT_PROVIDER', 'DEV', 'com.ofss.digx.app.sms.user.printinformation.provider.CustomUserInformationPrintAdapter', 'N', 'N', 'N', 'User Management', 'SYSTEM', sysdate, 'SYS', sysdate, 1, 'sms', '-1', '.*', 'N');

Note:

If above configuration is done, it will use CustomUserInformationPrintAdapter for user Password Information printing. Currently by default com.ofss.digx.app.sms.user.printinformation.provider.UserInformationPrintAdapter adapter will used if does not found any configuration.