Creating a new entity type and adding an existing property to it

Use the following data graph to create a new entity type ExtendedLogin and add an existing property type uid to it.

Input data graph

<?xml version="1.0" encoding="UTF-8"?>
<sdo:datagraph xmlns:sdo="commonj.sdo"
    xmlns:wim="http://www.ibm.com/websphere/wim">
  <wim:Root>
    <wim:schema>
      <wim:entitySchema nsURI="http://www.yourco.com/wim/yourext" entityName="ExtendedLoginAccount"
          parentEntityName="LoginAccount">
        <wim:properties name="uid">
          <wim:metaData/>
        </wim:properties>
        <wim:entityConfiguration defaultParent="cn=users,dc=yourco,dc=com" rdnProperty="uid">
          <wim:metaData name="objectClasses">
            <wim:values>eAccount</wim:values>
          </wim:metaData>
          <wim:metaData name="rdnAttributes">
            <wim:values>uid</wim:values>
          </wim:metaData>
        </wim:entityConfiguration>
      </wim:entitySchema>
    </wim:schema>
  </wim:Root>
</sdo:datagraph>

Output data graph

<?xml version="1.0" encoding="UTF-8"?>
<sdo:datagraph xmlns:sdo="commonj.sdo"
    xmlns:wim="http://www.ibm.com/websphere/wim">
  <wim:Root>
    <wim:schema>
      <wim:entitySchema nsURI="http://www.yourco.com/wim/yourext" entityName="ExtendedLoginAccount"
          parentEntityName="LoginAccount">
        <wim:repositoryIds>LDAP1</wim:repositoryIds>
        <wim:properties name="uid">
          <wim:metaData/>
        </wim:properties>
        <wim:entityConfiguration defaultParent="cn=users,dc=yourco,dc=com" rdnProperty="uid">
          <wim:metaData name="objectClasses">
            <wim:values>eAccount</wim:values>
          </wim:metaData>
          <wim:metaData name="rdnAttributes">
            <wim:values>uid</wim:values>
          </wim:metaData>
        </wim:entityConfiguration>
      </wim:entitySchema>
    </wim:schema>
  </wim:Root>
</sdo:datagraph>

wimxmlextension.xml file

After schema is created, the wimxmlextension.xml looks like the following:
<?xml version="1.0" encoding="UTF-8"?>
<sdo:datagraph xmlns:sdo="commonj.sdo"
    xmlns:wim="http://www.ibm.com/websphere/wim">
  <wim:schema>
    <wim:entitySchema nsURI="http://www.yourco.com/wim/yourext" entityName="ExtendedLoginAccount"
        parentEntityName="LoginAccount">
      <wim:properties name="uid"/>
    </wim:entitySchema>
  </wim:schema>
</sdo:datagraph>

wimconfig.xml file

After schema is created, the following section is added to wimconfig.xml:
<config:supportedEntityTypes defaultParent="cn=users,dc=yourco,dc=com" 
                             name="yourext:ExtendedLoginAccount">
      <config:rdnProperties>uid</config:rdnProperties>


      <config:ldapEntityTypes name="yourext:ExtendedLoginAccount">
        <config:objectClasses>eAccount</config:objectClasses>
      </config:ldapEntityTypes>


Terms of use | Feedback

http://publib.boulder.ibm.com/infocenter/wasinfo/v7r0/index.jsp?topic=/com.ibm.websphere.wim.doc/creatinganewentitytypeandaddinganexistingpropertytoit.html