| 1 | package OpusVL::AppKit::RolesFor::Schema::AppKitAuthDB; | ||
| 2 | |||
| 3 | |||
| 4 | use Moose::Role; | ||
| 5 | |||
| 6 | requires 'load_namespaces'; | ||
| 7 | |||
| 8 | sub merge_authdb | ||
| 9 | { | ||
| 10 | my $class = shift; | ||
| 11 | $class->load_namespaces( | ||
| 12 | result_namespace => '+OpusVL::AppKit::Schema::AppKitAuthDB::Result', | ||
| 13 | resultset_namespace => '+OpusVL::AppKit::Schema::AppKitAuthDB::ResultSet', | ||
| 14 | ); | ||
| 15 | } | ||
| 16 | |||
| 17 | 1; | ||
| 18 | |||
| 19 | __END__ | ||
| 20 | |||
| 21 | =pod | ||
| 22 | |||
| 23 | =encoding UTF-8 | ||
| 24 | |||
| 25 | =head1 NAME | ||
| 26 | |||
| 27 | OpusVL::AppKit::RolesFor::Schema::AppKitAuthDB | ||
| 28 | |||
| 29 | =head1 VERSION | ||
| 30 | |||
| 31 | version 1 | ||
| 32 | |||
| 33 | =head1 SYNOPSIS | ||
| 34 | |||
| 35 | with 'OpusVL::AppKit::RolesFor::Schema::AppKitAuthDB'; | ||
| 36 | |||
| 37 | __PACKAGE__->merge_authdb; | ||
| 38 | |||
| 39 | =head1 DESCRIPTION | ||
| 40 | |||
| 41 | The role allows the simple importing of the AppKitAuthDB into your own schema so that you can join | ||
| 42 | to the objects. Simply use the role and call merge_authdb (via __PACKAGE__). | ||
| 43 | |||
| 44 | =head1 NAME | ||
| 45 | |||
| 46 | OpusVL::AppKit::RolesFor::Schema::AppKitAuthDB | ||
| 47 | |||
| 48 | =head1 METHODS | ||
| 49 | |||
| 50 | =head2 merge_authdb | ||
| 51 | |||
| 52 | This loads the results and resultsets from the AppKitAuthDB into your schema. | ||
| 53 | |||
| 54 | =head1 LICENSE AND COPYRIGHT | ||
| 55 | |||
| 56 | Copyright 2011 OpusVL. | ||
| 57 | |||
| 58 | This software is licensed according to the "IP Assignment Schedule" provided with the development project. | ||
| 59 | |||
| 60 | =head1 AUTHOR | ||
| 61 | |||
| 62 | Colin Newell <colin@opusvl.com> | ||
| 63 | |||
| 64 | =head1 COPYRIGHT AND LICENSE | ||
| 65 | |||
| 66 | This software is copyright (c) 2016 by OpusVL. | ||
| 67 | |||
| 68 | This is free software; you can redistribute it and/or modify it under | ||
| 69 | the same terms as the Perl 5 programming language system itself. | ||
| 70 | |||
| 71 | =cut |