The Component object represents either a Base Component or a Component Version. When deploying an Application, Components are pushed onto the stack after each Endpoint. They can also be pushed onto the stack by using a comploop, retrieved from an Application by using ${Application.Components} or retrieved by calling getComponent.


The following properties can be accessed for a Component object:


Property

Type

Description

id

Integer

Component id, as used in the database.

name

String

Component name.

fqdomain

String

Fully qualified domain name.

summary

String

Summary text.

domain

Object

Domain in which the Component is contained.

owner

Object

User or UserGroup that owns the Component.

parent

Object

The Base Component.

predecessor

Object

Predecessor Component Version (the version on which this version is based).

items

Array

An array of Component Item objects. These represent the items that make up this Component.

servers

Array

An array of Endpoint objects. These are the Endpoints to which this Component has been deployed.

requests

Array

Array of Change Request objects – the change requests associated with this Component.

lastbuild

Integer

The last build number for this Component. 0 if never built.

creator

User

User Object representing the user who created this Component.

modifier

User

User Object representing the user who last modified this Component.

ctime

Date

Date Object representing the date/time the Component was created.

mtime

Date

Date Object representing the date/time the Component was last modified.

attributes

Array

Array of Strings, keyed by Attribute Name


Attributes such as owner and parent return Objects. These objects have their own attributes. So, for example, one can get the owner name of a Component by writing:


set owner = ${Component.owner};

echo ${owner.name};


or, more simply:


echo ${Component.owner.name};