RT::Extension::Converter::RT3

RT::Extension::Converter::RT3 is a Perl module to handle the RT3 side of a conversion.
Download

RT::Extension::Converter::RT3 Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Kevin Falcone
  • Publisher web site:
  • http://search.cpan.org/~falcone/

RT::Extension::Converter::RT3 Tags


RT::Extension::Converter::RT3 Description

RT::Extension::Converter::RT3 is a Perl module to handle the RT3 side of a conversion. RT::Extension::Converter::RT3 is a Perl module to handle the RT3 side of a conversion.SYNOPSIS use RT::Extension::Converter::RT3; my $converter = RT::Extension::Converter::RT3->new;METHODSnewReturns a converter object after setting up things such as the configconfigReturns a config objectcreate_userCreates a new user, expects a hash of valid values for RT3's User::Create method plus one special SuperUser argument that will cause SuperUser rights to be granted after creationreturns an RT::User object, or undef on failurecreate_queueCreates a new queue, expects a hash of valid values for RT3's Queue::Create methodreturns an RT::Queue object, or undef on failurecreate_queue_areaTakes Queue => RT::Queue, Area => Area's nameReturns an error message if making the appropriate custom fields fails. Otherwise returns the empty stringThis is rather RT1 specific. RT2 has a more hierarchical Keyword option that translates into CFs. Areas are the RT1 "custom field" but there was only one of them, so we just make an RT3 Custom Field called Area and whack a simple select list into it_create_queue_area_cfWraps up the nasty logic of loading/creating a CF for the areacreate_queue_aclTakes Queue => RT::Queue Acl => acl data from RT1Sets a number of new rights based on the old display/manipulate/admin categories. This should probably be reworked manually to use groups once RT3 is being tested. But, if you have a lot of users, this will at least get you converted.XXX Possibly create 3 groups, granting rights on the queues and adding users to the groups, rather than doing individual rightscreate_ticketTakes arguments similar to RT3::Ticket's Create. Will take a Requestors argument and try to chop it up into individual Requestor values.create_transactionstakes Path => /path/to/transaction/file, Ticket => RT::Ticket, Transactions => _find_transaction_fileRT1 would sometimes get confused about timezones and store a file in tomorrow or yesterday's path. Go find the file._process_transaction_fileWe need to turn the RT1 files back into MIME objects This means converting the old Headers Follow line and the broken MIME headers into something MIME::Parser won't choke on._load_or_create_userGiven an EmailAddress, Name (username) will try to load the user by username first and then by EmailAddress. If that fails, a new unprivileged user will be created with Name => Name|EmailAddressWill carp if loading AND creating fail Otherwise returns a valid user objectcreate_linkscreates all accumulated links. We do this at the end so that all the tickets will exist, rather than doing it during ticket creation and having to work around future tickets not being imported yet._merge_listprivate data storage routine to hold what tickets are merged where_mergestakes ticket => id, into => otherid tracks what merges need doing after we're done creating all the tickets.When called without arguments, returns a hashref containing ticketid => ticket to merge into_encode_dataUsed to make sure data gets properly unicode'd for RT3.6. Failure to use this in places will make non-americans unhappyTakes a hashref of arguments, returns an encoded hashref. Requirements: · Perl


RT::Extension::Converter::RT3 Related Software