linktype Command

A Linktype is an admin type that has a name and common admin properties (i.e. property, modified date, history, etc) that supports both static and dynamic relationships.

This page discusses:

While defining a Linktype, you can associate it with the specific type of the owner object such as a business object or a relationship. This allows schema owners to control which type of objects can use a given Linktype. Tidy vault ADMINISTRATION deletes linktypes that are marked as deleted.

Linktype does not support hidden. Hidden is deprecated in all admin types.

User Level:

System Administrator

Syntax:

[add|delete|list|modify|print] linktype NAME [ADD_ITEM{Add_ITEM}];

Notes:
  • Linktype supports a maximum of four attributes.
  • String attributes are not supported.
  • Local attributes are supported.

Add Linktype

Use the add linktype to define a linktype.

Syntax:

add linktype NAME [ADD_ITEM {ADD_ITEM}];

where ADD_ITEM is:

| description VALUE                     |
    | attribute NAME {,NAME}                |
    | type | TYPE_NAME {,TYPE_NAME}         |
           | all                            |
    | relationship | TYPE_NAME {,TYPE_NAME} |
                   | all                    |
    | property NAME [value STRING]          |
    | property NAME to ADMIN [value STRING] |

Modify Linktype

After a Linktype is defined, you can change the definition using the modify Linktype command.

Syntax:

modify linktype NAME [MOD_ITEM {MOD_ITEM}];

where MOD_ITEM is:

 | name NAME                                      |
    | description VALUE                              |
    | add    | attribute NAME                        |
    |        | property NAME to ADMIN [value STRING] |
    |        | property NAME [value STRING]          |
    |        | type | TYPE_NAME {,TYPE_NAME}         |
    |        |      | all                            |
    |        | relationship | TYPE_NAME {,TYPE_NAME} |
    |        |              | all                    |
    | remove | attribute NAME                        |
    |        | property NAME to ADMIN                |
    |        | property NAME                         |
    |        | type | TYPE_NAME {,TYPE_NAME}         |
    |        |      | all                            |
    |        | relationship | TYPE_NAME {,TYPE_NAME} |
    |        |              | all                    |
    | property NAME to ADMIN [value STRING]          |
    | property NAME [value STRING]                   |
Note: If you are removing types or relationships from an existing linktype, this action is allowed if there are existing links with owners of the type that is being removed.

List Linktype

Use the list linktype command to retrieve details about the specified linktype.

Syntax:

list linktype [modified MOD_CLAUSE] [SCOPE] NAME_PATTERN [where WHERE_CLAUSE] [SELECT [DUMP [RECORDSEP]]] [tcl] [output FILENAME];

To list linktypes modified within a range of dates, use the MOD_CLAUSE.

where MOD_CLAUSE is:

 | after DATE |
 | between DATE DATE |

To list only global or local linktypes, use the SCOPE clause.

where SCOPE is:

 | globalonly |
 | tenantonly |

Print Linktype

Use this command to print linktypes.

Syntax:

print linktype NAME [SELECT] [DUMP] [tcl] [output FILENAME];

where SELECT is:

| select FIELD_NAME {FIELD_NAME} |

where FIELD_NAME is:

SUB_FIELD[.SUB_FIELD{.SUB_FIELD}]

where SUB_FIELD is:

 | string |
 | string[string] |

where DUMP is:

dump [SEPARATOR_STRING]

where RECORDSEP is:

recordseparator [SEPARATOR_STRING]

Delete Linktype

Use the delete linktype command to delete an existing linktype.

Syntax:

delete linktype NAME;