+

Search Tips   |   Advanced Search

ConfigEngine tasks for creating a new profile based on a template and an existing profile in the system

We can extend the theme module framework with a new ConfigEngine task.

We can create a profile from a profile template and an existing profile. The config task reads the existing profile, takes the deferred and non-deferred theme modules from it, and creates a profile in WebDAV based on the template and the theme modules in the existing profile.

Use these ConfigEngine tasks only for theme profile files stored in the WebDAV file store.

Use the following parameters with the create-profile-based-on-template ConfigEngine tasks.

    WasUserid
    The WebSphere Application Server user ID.

    WasPassword
    The WebSphere Application Server user ID.

    PortalAdminId
    The WebSphere Portal administrator user ID.

    PortalAdminPwd
    The WebSphere Portal administrator password.

    ThemeUniqueName
    The unique name of the theme containing the profile to update.

    TemplateProfileFilePath
    The file path to the local template profile that we want the new profile be based on.

    TargetProfileFileName
    The name of the target profile file to create.

    TemplateModuleListProfileFileName
    The name of the existing profile to fetch the list of theme modules from.

    OverwriteProfile
    Can be true or false. Defines whether the profile in WebDAV should be overwritten if it already exists.

Use the following command to create profile with the name...

    profile_new_deferred.json

...in the theme with the unique name...

...which is based on the template that exists on the local hard drive in...

    /opt/WebSphere/profile_new_template.json

Once it is created in WebDAV, it has the list of modules from the profile...

... which already exists. The example assumes the WebSphere portal credentials are defined in wkplc.properties.

./ConfigEngine.sh create-profile-based-on-template \
    -DThemeUniqueName=ibm.portal.85Theme \
    -DTemplateProfileFilePath=/opt/WebSphere/profile_new_template.json \
    -DTargetProfileFileName=profile_new_deferred.json \
    -DTemplateModuleListProfileFileName=profile_deferred.json \
    -DOverwriteProfile=true


Parent The module framework

Related concepts:

Manage theme capabilities