Thursday, November 26, 2015

OFBIZ ADMIN USER CREATION (WITH SEED DATA)

<Party partyId=”admin” partyTypeId=”PERSON”/>
<Person firstName=”THE” lastName=”ADMINISTRATOR” partyId=”admin” personalTitle=”Mr.”/>
<PartyRole partyId=”admin” roleTypeId=”_NA_”/>
<ContactMech contactMechId=”admin” contactMechTypeId=”EMAIL_ADDRESS” infoString=”alam8899@gmail.com”/>
<PartyContactMech partyId=”admin” contactMechId=”admin” fromDate=”2013-01-01 00:00:00.0″/>
<PartyContactMechPurpose partyId=”admin” contactMechId=”admin” contactMechPurposeTypeId=”PRIMARY_EMAIL” fromDate=”2013-01-01 00:00:00″/>
<UserLogin userLoginId=”admin” partyId=”admin” currentPassword=”$SHA$qW5r$LKAElV7cMrlVkUm_JkKizBARp_o” passwordHint=”sampleadmin”/>
<!– make admin an employee of Company –>
<PartyRole partyId=”admin” roleTypeId=”CONTACT”/>
<UserLoginSecurityGroup groupId=”HUMANRES_APPROVER” userLoginId=”admin” fromDate=”2013-01-01 12:00:00.0″/>
<UserLoginSecurityGroup groupId=”HUMANRES_ADMIN” userLoginId=”admin” fromDate=”2013-01-01 12:00:00.0″/>
<UserLoginSecurityGroup groupId=”PARTYADMIN” userLoginId=”admin” fromDate=”2013-01-01 12:00:00.0″/>
<UserLoginSecurityGroup groupId=”FULLADMIN” userLoginId=”admin” fromDate=”2013-01-01 12:00:00.0″/>
<UserPreference userLoginId=”admin” userPrefTypeId=”ORGANIZATION_PARTY” userPrefGroupTypeId=”GLOBAL_PREFERENCES” userPrefValue=”Company”/>
<PartyRole partyId=”admin” roleTypeId=”EMPLOYEE”/>