Previous Topic: export (Class Management)--Export a ClassNext Topic: get_desc (Class Management)--Display Class Descriptor


import (Class Management)--Import a Class

Import a class

Syntax
class import class dir [user=user [pwd=-]] [ --force ]  
Parameters
class

name of class to be imported. May specify one of the following:

application/local:class - import local application catalog class

/catalog:class - import global catalog class

dir

Name of exchange directory from which the class is to be imported. The directory may be one of the following:

- directory relative to /vol/_impex

- URL with the following format 'http://path'.

user

user name to use for authentication with the remote server

pwd=-

(Optional) Prompt for password to use for authentication purposes when importing the class from a URL. If the standard input is not a terminal device, it will not print a prompt and expect only one copy of the password on 'stdin' (this can be used for batch operations, to set the password from a file).

--force

Option to allow importing of class even if it is already present (that is, the class is removed and then imported)

Examples
class import sugarcrm/local:NAS nas

Import application local catalog class

class import /system:NAS nas

Import global catalog class