CentraSite 10.3 | CentraSite User’s Guide | Type Management | Managing Types through Command Line Interface | Changing an Asset's Type
 
Changing an Asset's Type
Pre-requisites:
To change the asset type of an existing asset through the CentraSite Command Line Interface, you must have the CentraSite Administrator role.
CentraSite provides a Java tool named AssetManager.jar for this purpose. The tool changes the type of an existing asset or a list of assets (saved search) to a specified user-defined virtual asset type or back to the specified base type.
*To change the type of an existing asset
*Run the Java tool AssetManager.jar.
The syntax is of the format:
*C:\SoftwareAG\CentraSite\utilities>CentraSiteToolbox.cmd AssetManager.jar <CentraSite URL> <admin user id> <password> set type <objectId> <type>
*C:\SoftwareAG\CentraSite\utilities>CentraSiteToolbox.cmd AssetManager.jar <CentraSite URL> <admin user id> <password> set type <saved search> <type>
The input parameters are:
Parameter
Description
CentraSite URL
The URL of the CentraSite registry. For example, http://localhost:53307/CentraSite/CentraSite.
admin user id
The user ID of a registered CentraSite user who has the CentraSite Administrator role. For example, Administrator.
password
The password for the CentraSite user identified by the parameter admin user id.
objectId
The ID of the asset whose type you want to change. You can specify the UDDI key of the asset.
For example, uddi:1e5aff10-f3e3-11df-86fc-a6e2fa0ea483e
saved search
The fully qualified name of the saved search. If the saved search name contains white spaces, enclose the name within "".
type
The fully qualified name of the user-defined virtual type or the base type. If the type name contains white spaces, enclose the name within "".
Examples (all in one line):
C:\SoftwareAG\CentraSite\utilities>CentraSiteToolbox.cmd AssetManager.jar http://localhost:53307/CentraSite/CentraSite Administrator manage set type uddi:1e5aff10-f3e3-11df-86fc-a6e2fa0ea483e Service
C:\SoftwareAG\CentraSite\utilities>CentraSiteToolbox.cmd AssetManager.jar http://localhost:53307/CentraSite/CentraSite Administrator manage set type uddi:1e5aff10-f3e3-11df-86fc-a6e2fa0ea483e "My Saved Search" Service