Home

 

Configure profile types for attribute layout

To configure a profile type for profile attribute layout, you add the profile type containing the attribute layout to the profiles-config.xml file.

To edit configuration files, use wsadmin. See Start the wsadmin client for information about how to start the wsadmin command line tool.

To add a profile type for profile attribute layout, perform the following steps:

  1. Use wsadmin to access and check out the Profiles configuration files.

    1. Access the Profiles configuration files:

    2. Check out the Profiles configuration files...

      ProfilesConfigService.checkOutConfig("<working_directory>", "cell_name")

      where:

      • <working_directory> is the temporary working directory to which the configuration XML and XSD files are copied and are stored while you make changes to them. Use forward slashes to separate directories in the file path, even if you are using the Microsoft Windows operating system.

      • cell_name is the name of the WebSphere Application Server cell hosting the Profiles feature. This argument is required even in stand-alone deployments. This argument is case-sensitive, so type it with care. If you do not know the cell name, do one of the following to determine it:

        • Stand-alone deployment: See:

          WAS_HOME\profiles\profile_name\config\cells\

        • Network deployment: From wsadmin...

          print AdminControl.getCell()

      For example:

      • AIX/Linux:

          ProfilesConfigService.checkOutConfig("/opt/prof/temp","foo01Cell01")
          

    3. Microsoft Windows:

        ProfilesConfigService.checkOutConfig("c:/prof/temp","foo01Cell01")
        

  2. Save a copy of the profiles-config.xml file.

  3. Open the file in a text editor.

  4. Add a profile layout inside the <profileLayout> element, as in the following example:

      <layoutConfiguration>
         <profileLayout profileType="default">
            <jobInformation>
                <attribute showLabel="false" appendHtml="<br/&gt;">organizationTitle</attribute>
            </jobInformation>
      ...
         </profileLayout>
         <profileLayout profileType="teacher">
            <jobInformation>
                <attribute showLabel="false" appendHtml="<br/&gt;">organizationTitle</attribute>
            </jobInformation>
      ...
         </profileLayout>
                 <searchResultsLayout profileType="default">
                        <column>
                        ... 
                        </column>
                        <column>
                        ...
                        </column>
                        <column>
                        ...
                        </column>
                  </searchResultsLayout>
                  <searchResultsLayout profileType="teacher">
                        <column>
                        ... 
                        </column>
                        <column>
                        ...
                        </column>
                        <column>
                        ...
                        </column>		 		 		 
                   </searchResultsLayout>
                   <businessCardLayout profileType="default">
                        <attributes>
                        ...
                        </attributes>
                   </businessCardLayout>
                   <businessCardLayout profileType="teacher">
                        <attributes>
                        ...
                        </attributes>
                   </businessCardLayout>
         </layoutConfiguration>
      
           <apiConfiguration>
               <apiModel profileType="default">
               ...
               </apiModel>
               <apiModel profileType="teacher">
               ...
               </apiModel>
           </apiConfiguration>
      

  5. Save your changes and check the profiles-config.xml file back in...

    ProfilesConfigService.checkInConfig()

  6. To exit wsadmin, type

    exit

    at the prompt.

  7. Stop and restart the Profiles server.


Add profile types


+

Search Tips   |   Advanced Search