Refactoring a Resource

Follow these steps to refactor a resource or policy.

Updating a Resource Name and Its References

Follow these steps to update the name of a resource, or a policy, and its corresponding references in the project.
  1. Right-click on the package under the Resources folder and select Refactor > Rename Package Name. Optionally, right-click on the package under Policies folder and select Refactor > Rename Policy Package.
  2. Enter a new name for the resource, or policy, and select OK.
  3. In the Rename Package Name dialog, confirm the changes that will happen by ensuring the correct resources are selected. Select OK once you have finished.

Updating a Resource Location and Its References

Follow these steps to update the name of a resource, or a policy, and its corresponding references in the project.

Procedure

  1. Right-click on the package under the Resources folder and select Refactor > Rename Package Name. Optionally, right-click on the package under Policies folder and select Refactor > Rename Policy Package.
  2. Enter a new location for the resource, or policy, and select OK. For example, to change the location of a Basic Authentication policy residing in the refactoringproject.newPackage, modify the package name to refactoringproject.dd.newPackage. This creates a new package under the Policies folder named refactoringproject.dd.newPackage, and moves the Basic Authentication policy to the newly created package.
  3. In the Rename Package Name dialog, confirm the changes that will happen by ensuring the correct resources are selected. Select OK once you have finished.