Thursday, March 18, 2021

BuildMap Rule

 BuildMap Rule    :

It's available for JDBC and Delimited File Connectors
# It's used for manipulating or changing schema attributes during iterations of file reading
# It will run during the Account Aggregations

e.g    : Changing or parsing account attributes (i.e., lastLogin ) to meet a specific date format

e.g    :    1

import sailpoint.object.Schema;
import sailpoint.connector.Connector;
import sailpoint.connector.DelimitedFileConnector;

private static final Logger LOGGER  = Logger.getLogger(“BuildMap Rule”);
if(schema.getObjectType().compareTo(Connector.TYPE_ACCOUNT) ==0)
{
HashMap map = DelimitedFileConnector.defaultBuildMap(cols,record);
LOGGER.debug("\n BuildMap before changing : "+map);

//Employee Rule sets EmployeeStatus to "Employee"
map.put("status","Employee");
LOGGER.debug\n BuildMap after changing : "+map);
return map;
}

e.g    :    2

import sailpoint.object.Schema;
import sailpoint.connector.Connector;
import sailpoint.connector.DelimitedFileConnector;

private static final Logger LOGGER  = Logger.getLogger(“BuildMap Rule”);
if(schema.getObjectType().compareTo(Connector.TYPE_ACCOUNT) ==0)
{
HashMap map = DelimitedFileConnector.defaultBuildMap(cols,record);
LOGGER.debug("\n BuildMap before changing : "+map);

//Employee Rule sets EmployeeStatus to "Contractor"
map.put("status","Contractor");
LOGGER.debug\n BuildMap after changing : "+map);
return map;
}

No comments:

Post a Comment

Access Intelligence Center

  Search Overview - SailPoint Identity Services https://documentation.sailpoint.com/saas/help/search/index.html