Setting Up an Eclipse Java Project for Action Implementation
Pre-requisites:
To set up an Eclipse Java project for action template implementation through CentraSite Command Line Interface, you must have the CentraSite Administrator role.
CentraSite provides a command tool named setup Custom Actions for this purpose.
To set up an Eclipse Java project for the implementation of action template
Run the command setup Custom Actions. The syntax is of the format: C:\SoftwareAG\CentraSite\utilities>CentraSiteCommand.cmd setup Custom Actions [-url <CENTRASITE-URL>] -user <USER-ID> -password <PASSWORD> -packageName <PACKAGE-NAME> -className <CLASS-NAME> -file <CONFIG-FILE>
The input parameters are:
Parameter | Description |
CENTRASITE-URL | (Optional). The URL of the CentraSite registry. For example, http://localhost:53307/CentraSite/CentraSite. |
USER-ID | The user ID of a registered CentraSite user who has the CentraSite Administrator role. For example, Administrator. |
PASSWORD | The password for the registered CentraSite user identified by the parameter USER-ID. |
PACKAGE-NAME | Name of the package that contains the Java implementation for an action template. |
CLASS-NAME | Name of the Java class file name. Note: | Project name will be the same as the Java class file name. |
|
CONFIG-FILE | Name of the output directory to set up the Eclipse Java project. |
Examples (all in one line):
C:\SoftwareAG\CentraSite\utilities>CentraSiteCommand.cmd setup Custom Actions -url http://localhost:53307/CentraSite/CentraSite –user Administrator –password manage -id uddi:95f79c00-52a9-11e4-969c-d398081308d4 -packageName com.softwareag.policy.custom.action.impl -className CustomActionImpl -file D:\temp\customAction\CustomActionImpl
The response to this command could be:
Executing the command : setup Custom Actions
Custom policy action setup successful
at D:\temp\customAction\CustomActionImpl
Successfully executed the command : setup Custom Actions