Kernel::System::LinkObject::Appointment
Appointment backend for the appointment link object.
create an object. Do not use it directly, instead use:
use Kernel::System::ObjectManager; local $Kernel::OM = Kernel::System::ObjectManager->new(); my $LinkObjectAppointmentObject = $Kernel::OM->Get('Kernel::System::LinkObject::Appointment');
fill up the link list with data
$Success = $LinkObject->LinkListWithData( LinkList => $HashRef, IgnoreLinkedTicketStateTypes => 0|1, # (optional) default 0 UserID => 1, );
checks read permission for a given object and UserID.
$Permission = $LinkObject->ObjectPermission( Object => 'Appointment', Key => 123, UserID => 1, );
return a hash of object descriptions
Return %Description = ( Normal => 123, Long => "The Appointment Title", );
%Description = $LinkObject->ObjectDescriptionGet( Key => 123, Mode => 'Temporary', # (optional) UserID => 1, );
Return a hash list of the search results.
Returns:
$SearchList = { NOTLINKED => { Source => { 12 => $DataOfItem12, 212 => $DataOfItem212, 332 => $DataOfItem332, }, }, }; $SearchList = $LinkObject->ObjectSearch( SubObject => 'Bla', # (optional) SearchParams => $HashRef, # (optional) UserID => 1, );
link add pre event module
$True = $LinkObject->LinkAddPre( Key => 123, SourceObject => 'Appointment', SourceKey => 321, Type => 'Normal', State => 'Valid', UserID => 1, ); or $True = $LinkObject->LinkAddPre( Key => 123, TargetObject => 'Appointment', TargetKey => 321, Type => 'Normal', State => 'Valid', UserID => 1, );
link add pre event module
$True = $LinkObject->LinkAddPost( Key => 123, SourceObject => 'Appointment', SourceKey => 321, Type => 'Normal', State => 'Valid', UserID => 1, ); or $True = $LinkObject->LinkAddPost( Key => 123, TargetObject => 'Appointment', TargetKey => 321, Type => 'Normal', State => 'Valid', UserID => 1, );
link delete pre event module
$True = $LinkObject->LinkDeletePre( Key => 123, SourceObject => 'Appointment', SourceKey => 321, Type => 'Normal', State => 'Valid', UserID => 1, ); or $True = $LinkObject->LinkDeletePre( Key => 123, TargetObject => 'Appointment', TargetKey => 321, Type => 'Normal', State => 'Valid', UserID => 1, );
link delete post event module
$True = $LinkObject->LinkDeletePost( Key => 123, SourceObject => 'Appointment', SourceKey => 321, Type => 'Normal', State => 'Valid', UserID => 1, ); or $True = $LinkObject->LinkDeletePost( Key => 123, TargetObject => 'Appointment', TargetKey => 321, Type => 'Normal', State => 'Valid', UserID => 1, );
This software is part of the OTRS project (https://otrs.org/).
This software comes with ABSOLUTELY NO WARRANTY. For details, see the enclosed file COPYING for license information (GPL). If you did not receive this file, see https://www.gnu.org/licenses/gpl-3.0.txt.