cprolemap

Copies a rolemap

Applicability

Product

Command type

VersionVault

cleartool subcommand

Platform

UNIX®

Linux®

Windows®

Synopsis

cprolemap [ -c comment | -cfile pname | -cq | -cqe | -nc ]
[ -replace ] [ -rolemap rolemap-selector ]
existing-rolemap-selector rolemap-selector

Description

The cprolemap command creates a copy of a rolemap.

Restrictions

An error occurs if one or more of these objects are locked: VOB, rolemap.

Authorization

The principal must have the following permissions: (principal needs read-info, read-name on source rolemap, and for replace needs read-info/read-name/mod-props on target rolemap)
  • read-info on VOB object
  • read-name, read-info on the source rolemap
  • For a cprolemap -replace operation: read-name and read-info on the source rolemap; read-info, read-name, and mod-props on the target rolemap

Locks

For the cprolemap -replace operation, an error occurs if the target rolemap is locked.

Mastership

(Replicated VOBs only) For the cprolemap -replace operation, the replica must master the target rolemap.

Options and arguments

Copying and replacing a rolemap

-replace
If rolemap-selector exists, it is replaced with a copy of existing-rolemap-selector.
-rolemap rolemap-selector
Specifies the rolemap that is to protect the copy of existing-rolemap-selector. By default, the copy is protected by the rolemap that protects existing-rolemap-selector.
existing-rolemap-selector
The rolemap that is to be copied.
rolemap-selector
The name of the copy of existing-rolemap-selector.

Event records and comments

Default
Creates one or more event records, with commenting controlled by your .versionvault_profile file (default: -cqe). See the comments reference page. Comments can be edited with chevent.
-c/omment comment | -cfi/le comment-file-pname |-cq/uery | -cqe/ach | -nc/omment
Overrides the default with the option you specify. See the comments reference page.

Examples

The UNIX system and Linux examples in this section are written for use in csh. If you use another shell, you may need to use different quoting and escaping conventions.

The Windows examples that include wildcards or quoting are written for use in cleartool interactive mode. If you use cleartool single-command mode, you may need to change the wildcards and quoting to make your command interpreter process the command appropriately.

In cleartool single-command mode, cmd-context represents the UNIX system and Linux shells or Windows command interpreter prompt, followed by the cleartool command. In cleartool interactive mode, cmd-context represents the interactive cleartool prompt.

  • Copy the policy DevRolemap to NewDevRolemap.

    cmd-context  cleartool cprolemap DevRolemap NewDevRolemap