Kernel::System::ITSMChange::ITSMCondition::Object::ITSMChange - condition itsm change object lib
All ITSMChange object functions for conditions in ITSMChangeManagement.
new()
create an object
use Kernel::Config;
use Kernel::System::Encode;
use Kernel::System::Log;
use Kernel::System::DB;
use Kernel::System::Main;
use Kernel::System::Time;
use Kernel::System::ITSMChange::ITSMCondition::Object::ITSMChange;
my $ConfigObject = Kernel::Config->new();
my $EncodeObject = Kernel::System::Encode->new(
ConfigObject => $ConfigObject,
);
my $LogObject = Kernel::System::Log->new(
ConfigObject => $ConfigObject,
EncodeObject => $EncodeObject,
);
my $MainObject = Kernel::System::Main->new(
ConfigObject => $ConfigObject,
EncodeObject => $EncodeObject,
LogObject => $LogObject,
);
my $TimeObject = Kernel::System::Time->new(
ConfigObject => $ConfigObject,
LogObject => $LogObject,
);
my $DBObject = Kernel::System::DB->new(
ConfigObject => $ConfigObject,
EncodeObject => $EncodeObject,
LogObject => $LogObject,
MainObject => $MainObject,
);
my $ConditionObjectITSMChange = Kernel::System::ITSMChange::ITSMCondition::Object::ITSMChange->new(
ConfigObject => $ConfigObject,
EncodeObject => $EncodeObject,
LogObject => $LogObject,
MainObject => $MainObject,
TimeObject => $TimeObject,
DBObject => $DBObject,
);
DataGet()
Returns change data in an array reference.
my $ChangeDataRef = $ConditionObjectITSMChange->DataGet(
Selector => 1234,
UserID => 2345,
);
CompareValueList()
Returns a list of available CompareValues for the given attribute id of a change object as hash reference.
my $CompareValueList = $ConditionObjectITSMChange->CompareValueList(
AttributeName => 'PriorityID',
UserID => 1,
);
Returns a hash reference like this, for the change attribute 'Priority':
$CompareValueList = {
23 => '1 very low',
24 => '2 low',
25 => '3 normal',
26 => '4 high',
27 => '5 very high',
}
SelectorList()
Returns a list of all selectors available for the given change object id and condition id as hash reference
my $SelectorList = $ConditionObjectITSMChange->SelectorList(
ObjectID => 1234,
ConditionID => 5,
UserID => 1,
);
Returns a hash reference like this:
$SelectorList = {
456 => 'Change# 2010011610000618',
}
This software is part of the OTRS project (http://otrs.org/).
This software comes with ABSOLUTELY NO WARRANTY. For details, see the enclosed file COPYING for license information (AGPL). If you did not receive this file, see http://www.gnu.org/licenses/agpl.txt.
Hey! The above document had some coding errors, which are explained below:
Around line 129:
=cut found outside a pod block. Skipping to next block.