renameObjClass

Verfügbar für: Content Management Server (from Version 6.6.1)

Aufgabe: This procedure renames a file format and reindexes the files to which this format is assigned. Furthermore, the command outputs the list of files that contain this format name. These files are not modified.

Syntax:

renameObjClass oldName newName

Function parameters:

  • oldName is the current name of the file format.

  • newName is the new name of the file format.

Return value if successful: none.

Necessary permissions: The user must have the permissionGlobalRTCEdit permission.

Example:

root@localhost:3001 default(CM)> renameObjClass publication Folder

Updating index
------------------------------------------------------------------------------
performing updateInIndex
done.    

Searching for config files that contain references to the original object class name 'publication'.
------------------------------------------------------------------------------
/Fiona/instance/default/config/content.xml:28  <defaultPublication>publication</defaultPublication>
/Fiona/instance/default/config/webDav.xml:4    via WebDAV. Default is "publication". -->
/Fiona/instance/default/config/webDav.xml:5    <defaultPublicationClass>publication</defaultPublicationClass>
...

Searching for templates that contain references to the original object class name 'publication'.
------------------------------------------------------------------------------
/mastertemplate (o:2010,c:2084,l:2) <npsobj caseCond="isEqual" value="publication">


Commands to search again for occurrences
------------------------------------------------------------------------------
Config files:
  grepInConfig {\ypublication\y}

Templates:
  grepInTemplates {\ypublication\y}