Kernel::System::ITSMConfigItem::XML::Type::ReferenceCI

Table of Contents

NAME

Kernel::System::ITSMConfigItem::XML::Type::ReferenceCI – xml backend module

SYNOPSIS

All xml functions of ReferenceCI objects

new()

create an object use Kernel::System::ObjectManager; local $Kernel::OM = Kernel::System::ObjectManager->new(); my $BackendObject = $ConfigItemObject->_LoadXMLTypeBackend( Type => 'ReferenceCI', );

ValueLookup()

get the xml data of a version

    my $Value = $BackendObject->ValueLookup(
        Value => 11, # (optional)
    );
StatsAttributeCreate()

create a attribute array for the stats framework

    my $Attribute = $BackendObject->StatsAttributeCreate(
        Key => 'Key::Subkey',
        Name => 'Name',
        Item => $ItemRef,
    );
ExportSearchValuePrepare()

prepare search value for export

    my $ArrayRef = $BackendObject->ExportSearchValuePrepare(
        Value => 11, # (optional)
    );
ExportValuePrepare()

prepare value for export

    my $Value = $BackendObject->ExportValuePrepare(
        Value => 11, # (optional)
    );
ImportSearchValuePrepare()

prepare search value for import

    my $ArrayRef = $BackendObject->ImportSearchValuePrepare(
        Value => 11, # (optional)
    );
ImportValuePrepare()

prepare value for import

    my $Value = $BackendObject->ImportValuePrepare(
        Value => 11, # (optional)
        IgnoreReferenceCIErrors => 1, # don't return undef if this param is filled
    );
_XMLSearchDataPrepare()

prepares the search parameter for the config item search

    my $Success = $BackendObject->_XMLSearchDataPrepare(
        XMLDefinition => $XMLDefinition->{DefinitionRef},  # definition of the config item
        What          => \@SearchDataPrepareWhat,          # return array for search parameter
        SearchData    => \%SearchDataPrepareData,          # hash with parameters you want to search for
    );

Returns:

my $Success = 1;

_XMLDataKeyValue()

prepares the search parameter for the config item search

    my $Value = $BackendObject->_XMLDataKeyValue(
        ImportExportKey => $ImportExportKey,                            # import export key of the xml definition
        XMLData         => $ConfigItem->{XMLData}->[1]->{Version}->[1], # latest version of the config item xml
        XMLDefinition   => $XMLDefinition->{DefinitionRef},             # definition of the config item
    );

Returns:

my $Value = '[Value of ImportExportKey]';

Scroll to Top