Commit a214ccdb by Nilu Committed by Harsh Shah

Added intercom utils. Code formatting

parent 7ad8aae6
package performa.intercom.utils;
import oneit.appservices.config.ConfigMgr;
import oneit.security.SecUser;
import performa.intercom.resources.CustomAttribute;
import performa.intercom.resources.Intercom;
import performa.intercom.resources.User;
public class IntercomUtils
{
static
{
Intercom.setApiKey(ConfigMgr.getKeyfileString("intercom.appId", ""));
Intercom.setToken(ConfigMgr.getKeyfileString("intercom.token", ""));
}
public static void createIntercomUser(SecUser secUser, String role)
{
User user = new User()
.setEmail(secUser.getEmail())
.setUserId(secUser.getIdentification())
.addCustomAttribute(CustomAttribute.newStringAttribute("role", role));
User.create(user);
}
}
package performa.orm;
import java.io.*;
import java.util.*;
import oneit.appservices.config.*;
import oneit.logging.*;
import oneit.objstore.*;
import oneit.utils.*;
import performa.orm.types.*;
import oneit.business.shopping.orm.*;
public class Client extends BaseClient
{
......@@ -27,5 +11,3 @@ public class Client extends BaseClient
// Do not add any code to this, always put it in initialiseNewObject
}
}
\ No newline at end of file
package performa.orm;
import java.io.*;
import java.util.*;
import oneit.appservices.config.*;
import oneit.logging.*;
import oneit.objstore.*;
import oneit.utils.*;
import performa.orm.types.*;
public class Company extends BaseCompany
{
......@@ -25,5 +11,3 @@ public class Company extends BaseCompany
// Do not add any code to this, always put it in initialiseNewObject
}
}
\ No newline at end of file
......@@ -33,5 +33,3 @@ public class CompanyUser extends BaseCompanyUser
return null;
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment