Previous Topic: class list Command Output SpecificationNext Topic: copy (Class Management)--Copy a Class


move (Class Management)--Move a Class

Move a class from one package to another or rename the class.

Syntax
class move source destination  
Parameters
source

Name of class that is to be moved

destination

New class name

Examples
class move /system:NAS sugarcrm/local:NAS

move class from global catalog to local application catalog

class move /system:NAS sugarcrm:NAS

move class from global catalog to application singleton

class move sugarcrm:NAS /system:NAS

move application singleton class to global catalog

Notes: The move command can move a class:

a) from one catalog to another;

b) from a catalog to a singleton;

c) from singleton to application catalog class.

The move command can be used to rename a class within a catalog or the application package.

A singleton assembly (an assembly class in the application package) cannot be moved to a catalog if any of its subordinates is a singleton. This is because having a singleton subordinate would prevent the instantiation of such class.

Also, moving a class will not automatically change the .class attribute of subordinates using this class - this needs to be done manually in all affected assemblies.