| 1 | package Elive::Entity::Meeting; | ||||||||||||||||||||||||||||||||||||||||||||||
| 2 | 21 | ▶ | use warnings; use strict; | ||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||||||
| 3 | |||||||||||||||||||||||||||||||||||||||||||||||
| 4 | 21 | ▶ | use Mouse; | ||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||||||
| 5 | 21 | ▶ | use Mouse::Util::TypeConstraints; | ||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||||||
| 6 | |||||||||||||||||||||||||||||||||||||||||||||||
| 7 | 21 | extends 'Elive::Entity'; | |||||||||||||||||||||||||||||||||||||||||||||
| 8 | |||||||||||||||||||||||||||||||||||||||||||||||
| 9 | 21 | ▶ | use Elive::Util; | ||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||||||
| 10 | 21 | ▶ | use Elive::Entity::Preload; | ||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||||||
| 11 | 21 | ▶ | use Elive::Entity::Preloads; | ||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||||||
| 12 | 21 | ▶ | use Elive::Entity::Recording; | ||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||||||
| 13 | 21 | ▶ | use Elive::Entity::MeetingParameters; | ||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||||||
| 14 | 21 | ▶ | use Elive::Entity::ServerParameters; | ||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||||||
| 15 | 21 | ▶ | use Elive::Entity::ParticipantList; | ||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||||||
| 16 | |||||||||||||||||||||||||||||||||||||||||||||||
| 17 | 21 | ▶ | use YAML::Syck; | ||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||||||
| 18 | |||||||||||||||||||||||||||||||||||||||||||||||
| 19 | =head1 NAME | ||||||||||||||||||||||||||||||||||||||||||||||
| 20 | |||||||||||||||||||||||||||||||||||||||||||||||
| 21 | Elive::Entity::Meeting - Elluminate Meeting instance class | ||||||||||||||||||||||||||||||||||||||||||||||
| 22 | |||||||||||||||||||||||||||||||||||||||||||||||
| 23 | =head1 DESCRIPTION | ||||||||||||||||||||||||||||||||||||||||||||||
| 24 | |||||||||||||||||||||||||||||||||||||||||||||||
| 25 | This is the main entity class for meetings. | ||||||||||||||||||||||||||||||||||||||||||||||
| 26 | |||||||||||||||||||||||||||||||||||||||||||||||
| 27 | =cut | ||||||||||||||||||||||||||||||||||||||||||||||
| 28 | |||||||||||||||||||||||||||||||||||||||||||||||
| 29 | 21 | __PACKAGE__->entity_name('Meeting'); | |||||||||||||||||||||||||||||||||||||||||||||
| 30 | 21 | __PACKAGE__->collection_name('Meetings'); | |||||||||||||||||||||||||||||||||||||||||||||
| 31 | 21 | __PACKAGE__->params( | |||||||||||||||||||||||||||||||||||||||||||||
| 32 | displayName => 'Str', | ||||||||||||||||||||||||||||||||||||||||||||||
| 33 | endDate => 'HiResDate', | ||||||||||||||||||||||||||||||||||||||||||||||
| 34 | preloadId => 'Int', | ||||||||||||||||||||||||||||||||||||||||||||||
| 35 | recurrenceCount => 'Int', | ||||||||||||||||||||||||||||||||||||||||||||||
| 36 | recurrenceDays => 'Int', | ||||||||||||||||||||||||||||||||||||||||||||||
| 37 | seats => 'Int', | ||||||||||||||||||||||||||||||||||||||||||||||
| 38 | startDate => 'HiResDate', | ||||||||||||||||||||||||||||||||||||||||||||||
| 39 | timeZone => 'Str', | ||||||||||||||||||||||||||||||||||||||||||||||
| 40 | sessionRole => 'Int', | ||||||||||||||||||||||||||||||||||||||||||||||
| 41 | version => 'Str', | ||||||||||||||||||||||||||||||||||||||||||||||
| 42 | userId => 'Str', | ||||||||||||||||||||||||||||||||||||||||||||||
| 43 | userName => 'Str', | ||||||||||||||||||||||||||||||||||||||||||||||
| 44 | ); | ||||||||||||||||||||||||||||||||||||||||||||||
| 45 | |||||||||||||||||||||||||||||||||||||||||||||||
| 46 | coerce 'Elive::Entity::Meeting' => from 'HashRef' | ||||||||||||||||||||||||||||||||||||||||||||||
| 47 | 1 | ▶ | => via {Elive::Entity::Meeting->new($_) }; | ||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||||||
| 48 | |||||||||||||||||||||||||||||||||||||||||||||||
| 49 | # help out elive_query; expansion of 'select ** from meeting...' | ||||||||||||||||||||||||||||||||||||||||||||||
| 50 | 21 | __PACKAGE__->derivable( | |||||||||||||||||||||||||||||||||||||||||||||
| 51 | recordings => 'list_recordings', | ||||||||||||||||||||||||||||||||||||||||||||||
| 52 | preloads => 'list_preloads', | ||||||||||||||||||||||||||||||||||||||||||||||
| 53 | url => 'web_url'); | ||||||||||||||||||||||||||||||||||||||||||||||
| 54 | |||||||||||||||||||||||||||||||||||||||||||||||
| 55 | 21 | has 'meetingId' => (is => 'rw', isa => 'Int', required => 1); | |||||||||||||||||||||||||||||||||||||||||||||
| 56 | 21 | __PACKAGE__->primary_key('meetingId'); | |||||||||||||||||||||||||||||||||||||||||||||
| 57 | |||||||||||||||||||||||||||||||||||||||||||||||
| 58 | 21 | has 'name' => (is => 'rw', isa => 'Str', required => 1, | |||||||||||||||||||||||||||||||||||||||||||||
| 59 | documentation => 'meeting name', | ||||||||||||||||||||||||||||||||||||||||||||||
| 60 | ); | ||||||||||||||||||||||||||||||||||||||||||||||
| 61 | |||||||||||||||||||||||||||||||||||||||||||||||
| 62 | 21 | has 'start' => (is => 'rw', isa => 'HiResDate', required => 1, | |||||||||||||||||||||||||||||||||||||||||||||
| 63 | documentation => 'meeting start date and time'); | ||||||||||||||||||||||||||||||||||||||||||||||
| 64 | |||||||||||||||||||||||||||||||||||||||||||||||
| 65 | 21 | has 'end' => (is => 'rw', isa => 'HiResDate', required => 1, | |||||||||||||||||||||||||||||||||||||||||||||
| 66 | documentation => 'meeting end date and time'); | ||||||||||||||||||||||||||||||||||||||||||||||
| 67 | |||||||||||||||||||||||||||||||||||||||||||||||
| 68 | 21 | has 'password' => (is => 'rw', isa => 'Str', | |||||||||||||||||||||||||||||||||||||||||||||
| 69 | documentation => 'meeting password'); | ||||||||||||||||||||||||||||||||||||||||||||||
| 70 | |||||||||||||||||||||||||||||||||||||||||||||||
| 71 | 21 | has 'deleted' => (is => 'rw', isa => 'Bool', | |||||||||||||||||||||||||||||||||||||||||||||
| 72 | documentation => 'whether meeting has been deleted'); | ||||||||||||||||||||||||||||||||||||||||||||||
| 73 | |||||||||||||||||||||||||||||||||||||||||||||||
| 74 | 21 | has 'facilitatorId' => (is => 'rw', isa => 'Str', | |||||||||||||||||||||||||||||||||||||||||||||
| 75 | documentation => 'userId of facilitator'); | ||||||||||||||||||||||||||||||||||||||||||||||
| 76 | 21 | __PACKAGE__->_alias(facilitator => 'facilitatorId', freeze => 1); | |||||||||||||||||||||||||||||||||||||||||||||
| 77 | |||||||||||||||||||||||||||||||||||||||||||||||
| 78 | 21 | has 'privateMeeting' => (is => 'rw', isa => 'Bool', | |||||||||||||||||||||||||||||||||||||||||||||
| 79 | documentation => "don't display meeting in public schedule"); | ||||||||||||||||||||||||||||||||||||||||||||||
| 80 | 21 | __PACKAGE__->_alias(private => 'privateMeeting', freeze => 1); | |||||||||||||||||||||||||||||||||||||||||||||
| 81 | |||||||||||||||||||||||||||||||||||||||||||||||
| 82 | 21 | has 'allModerators' => (is => 'rw', isa => 'Bool', | |||||||||||||||||||||||||||||||||||||||||||||
| 83 | documentation => "all participants can moderate"); | ||||||||||||||||||||||||||||||||||||||||||||||
| 84 | 21 | __PACKAGE__->_alias(all_moderators => 'allModerators'); | |||||||||||||||||||||||||||||||||||||||||||||
| 85 | |||||||||||||||||||||||||||||||||||||||||||||||
| 86 | 21 | has 'restrictedMeeting' => (is => 'rw', isa => 'Bool', | |||||||||||||||||||||||||||||||||||||||||||||
| 87 | documentation => "all participants must login"); | ||||||||||||||||||||||||||||||||||||||||||||||
| 88 | 21 | __PACKAGE__->_alias(restricted => 'restrictedMeeting'); | |||||||||||||||||||||||||||||||||||||||||||||
| 89 | |||||||||||||||||||||||||||||||||||||||||||||||
| 90 | 21 | has 'adapter' => (is => 'rw', isa => 'Str', | |||||||||||||||||||||||||||||||||||||||||||||
| 91 | documentation => 'adapter used to create the meeting/session. E.g.: "default", "standardv2"'); | ||||||||||||||||||||||||||||||||||||||||||||||
| 92 | |||||||||||||||||||||||||||||||||||||||||||||||
| 93 | =head1 METHODS | ||||||||||||||||||||||||||||||||||||||||||||||
| 94 | |||||||||||||||||||||||||||||||||||||||||||||||
| 95 | =cut | ||||||||||||||||||||||||||||||||||||||||||||||
| 96 | |||||||||||||||||||||||||||||||||||||||||||||||
| 97 | =head2 insert | ||||||||||||||||||||||||||||||||||||||||||||||
| 98 | |||||||||||||||||||||||||||||||||||||||||||||||
| 99 | Note: the C<insert()> and C<update()> methods are depreciated. For alternatives, | ||||||||||||||||||||||||||||||||||||||||||||||
| 100 | please see L<Elive::Entity::Session>. | ||||||||||||||||||||||||||||||||||||||||||||||
| 101 | |||||||||||||||||||||||||||||||||||||||||||||||
| 102 | my $start = time() + 15 * 60; # starts in 15 minutes | ||||||||||||||||||||||||||||||||||||||||||||||
| 103 | my $end = $start + 30 * 60; # runs for half an hour | ||||||||||||||||||||||||||||||||||||||||||||||
| 104 | |||||||||||||||||||||||||||||||||||||||||||||||
| 105 | my $meeting = Elive::Entity::Meeting->insert({ | ||||||||||||||||||||||||||||||||||||||||||||||
| 106 | name => 'Test Meeting', | ||||||||||||||||||||||||||||||||||||||||||||||
| 107 | facilitatorId => Elive->login, | ||||||||||||||||||||||||||||||||||||||||||||||
| 108 | start => $start . '000', | ||||||||||||||||||||||||||||||||||||||||||||||
| 109 | end => $end . '000', | ||||||||||||||||||||||||||||||||||||||||||||||
| 110 | password => 'secret!', | ||||||||||||||||||||||||||||||||||||||||||||||
| 111 | privateMeeting => 1, | ||||||||||||||||||||||||||||||||||||||||||||||
| 112 | restrictedMeeting => 1, | ||||||||||||||||||||||||||||||||||||||||||||||
| 113 | seats => 42, | ||||||||||||||||||||||||||||||||||||||||||||||
| 114 | }); | ||||||||||||||||||||||||||||||||||||||||||||||
| 115 | |||||||||||||||||||||||||||||||||||||||||||||||
| 116 | # | ||||||||||||||||||||||||||||||||||||||||||||||
| 117 | # Set the meeting participants | ||||||||||||||||||||||||||||||||||||||||||||||
| 118 | # | ||||||||||||||||||||||||||||||||||||||||||||||
| 119 | my $participant_list = $meeting->participant_list; | ||||||||||||||||||||||||||||||||||||||||||||||
| 120 | $participant_list->participants([$smith->userId, $jones->userId]); | ||||||||||||||||||||||||||||||||||||||||||||||
| 121 | $participant_list->update; | ||||||||||||||||||||||||||||||||||||||||||||||
| 122 | |||||||||||||||||||||||||||||||||||||||||||||||
| 123 | A series of meetings can be created using the C<recurrenceCount> and | ||||||||||||||||||||||||||||||||||||||||||||||
| 124 | C<recurrenceDays> parameters. | ||||||||||||||||||||||||||||||||||||||||||||||
| 125 | |||||||||||||||||||||||||||||||||||||||||||||||
| 126 | # | ||||||||||||||||||||||||||||||||||||||||||||||
| 127 | # create three weekly meetings | ||||||||||||||||||||||||||||||||||||||||||||||
| 128 | # | ||||||||||||||||||||||||||||||||||||||||||||||
| 129 | my @meetings = Elive::Entity::Meeting->insert({ | ||||||||||||||||||||||||||||||||||||||||||||||
| 130 | ..., | ||||||||||||||||||||||||||||||||||||||||||||||
| 131 | recurrenceCount => 3, | ||||||||||||||||||||||||||||||||||||||||||||||
| 132 | recurrenceDays => 7, | ||||||||||||||||||||||||||||||||||||||||||||||
| 133 | }); | ||||||||||||||||||||||||||||||||||||||||||||||
| 134 | =cut | ||||||||||||||||||||||||||||||||||||||||||||||
| 135 | |||||||||||||||||||||||||||||||||||||||||||||||
| 136 | =head2 update | ||||||||||||||||||||||||||||||||||||||||||||||
| 137 | |||||||||||||||||||||||||||||||||||||||||||||||
| 138 | my $meeting = Elive::Entity::Meeting->update({ | ||||||||||||||||||||||||||||||||||||||||||||||
| 139 | start => hires-date, | ||||||||||||||||||||||||||||||||||||||||||||||
| 140 | end => hires-date, | ||||||||||||||||||||||||||||||||||||||||||||||
| 141 | name => string, | ||||||||||||||||||||||||||||||||||||||||||||||
| 142 | password => string, | ||||||||||||||||||||||||||||||||||||||||||||||
| 143 | seats => int, | ||||||||||||||||||||||||||||||||||||||||||||||
| 144 | privateMeeting => 0|1, | ||||||||||||||||||||||||||||||||||||||||||||||
| 145 | restrictedMeeting => 0|1, | ||||||||||||||||||||||||||||||||||||||||||||||
| 146 | timeZone => string | ||||||||||||||||||||||||||||||||||||||||||||||
| 147 | }); | ||||||||||||||||||||||||||||||||||||||||||||||
| 148 | |||||||||||||||||||||||||||||||||||||||||||||||
| 149 | =cut | ||||||||||||||||||||||||||||||||||||||||||||||
| 150 | |||||||||||||||||||||||||||||||||||||||||||||||
| 151 | =head2 delete | ||||||||||||||||||||||||||||||||||||||||||||||
| 152 | |||||||||||||||||||||||||||||||||||||||||||||||
| 153 | my $meeting = Elive::Entity::Meeting->retrieve($meeting_id); | ||||||||||||||||||||||||||||||||||||||||||||||
| 154 | $meeting->delete | ||||||||||||||||||||||||||||||||||||||||||||||
| 155 | |||||||||||||||||||||||||||||||||||||||||||||||
| 156 | Delete the meeting. | ||||||||||||||||||||||||||||||||||||||||||||||
| 157 | |||||||||||||||||||||||||||||||||||||||||||||||
| 158 | Note: | ||||||||||||||||||||||||||||||||||||||||||||||
| 159 | |||||||||||||||||||||||||||||||||||||||||||||||
| 160 | =over 4 | ||||||||||||||||||||||||||||||||||||||||||||||
| 161 | |||||||||||||||||||||||||||||||||||||||||||||||
| 162 | =item Meeting recordings are not deleted. | ||||||||||||||||||||||||||||||||||||||||||||||
| 163 | |||||||||||||||||||||||||||||||||||||||||||||||
| 164 | If you also want to remove the associated recordings, you'll need to delete | ||||||||||||||||||||||||||||||||||||||||||||||
| 165 | them yourself, E.g.: | ||||||||||||||||||||||||||||||||||||||||||||||
| 166 | |||||||||||||||||||||||||||||||||||||||||||||||
| 167 | my $recordings = $meeting->list_recordings; | ||||||||||||||||||||||||||||||||||||||||||||||
| 168 | |||||||||||||||||||||||||||||||||||||||||||||||
| 169 | foreach my $recording (@$recordings) { | ||||||||||||||||||||||||||||||||||||||||||||||
| 170 | $recording->delete; | ||||||||||||||||||||||||||||||||||||||||||||||
| 171 | } | ||||||||||||||||||||||||||||||||||||||||||||||
| 172 | |||||||||||||||||||||||||||||||||||||||||||||||
| 173 | $meeting->delete; | ||||||||||||||||||||||||||||||||||||||||||||||
| 174 | |||||||||||||||||||||||||||||||||||||||||||||||
| 175 | =item Recently deleted meetings may remain retrievable, but with the I<deleted> property to true. | ||||||||||||||||||||||||||||||||||||||||||||||
| 176 | |||||||||||||||||||||||||||||||||||||||||||||||
| 177 | Meetings, Meeting Parameters, Server Parameters and recordings may remain | ||||||||||||||||||||||||||||||||||||||||||||||
| 178 | accessible via the SOAP interface for a short period of time until they | ||||||||||||||||||||||||||||||||||||||||||||||
| 179 | are garbage collected by ELM. | ||||||||||||||||||||||||||||||||||||||||||||||
| 180 | |||||||||||||||||||||||||||||||||||||||||||||||
| 181 | You'll may need to check for deleted meetings: | ||||||||||||||||||||||||||||||||||||||||||||||
| 182 | |||||||||||||||||||||||||||||||||||||||||||||||
| 183 | my $meeting = Elive::Entity::Meeting->retrieve($meeting_id); | ||||||||||||||||||||||||||||||||||||||||||||||
| 184 | if ($meeting && ! $meeting->deleted) { | ||||||||||||||||||||||||||||||||||||||||||||||
| 185 | # ... | ||||||||||||||||||||||||||||||||||||||||||||||
| 186 | } | ||||||||||||||||||||||||||||||||||||||||||||||
| 187 | |||||||||||||||||||||||||||||||||||||||||||||||
| 188 | or filter them out when listing meetings: | ||||||||||||||||||||||||||||||||||||||||||||||
| 189 | |||||||||||||||||||||||||||||||||||||||||||||||
| 190 | my $live_meetings = Elive::Entity::Meeting->list(filter => 'deleted = false'); | ||||||||||||||||||||||||||||||||||||||||||||||
| 191 | |||||||||||||||||||||||||||||||||||||||||||||||
| 192 | =back | ||||||||||||||||||||||||||||||||||||||||||||||
| 193 | |||||||||||||||||||||||||||||||||||||||||||||||
| 194 | =cut | ||||||||||||||||||||||||||||||||||||||||||||||
| 195 | |||||||||||||||||||||||||||||||||||||||||||||||
| 196 | sub delete { | ||||||||||||||||||||||||||||||||||||||||||||||
| 197 | 0 | ▶ | my $self = shift; | ||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
delete: not called CC=2 SCAR=17.9
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||||||
| 198 | |||||||||||||||||||||||||||||||||||||||||||||||
| 199 | 0 | $self->SUPER::delete(@_); | |||||||||||||||||||||||||||||||||||||||||||||
| 200 | |||||||||||||||||||||||||||||||||||||||||||||||
| 201 | # update the object as well | ||||||||||||||||||||||||||||||||||||||||||||||
| 202 | 0 | ▶ | if (my $db_data = $self->_db_data) { | ||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||
| 203 | 0 | $db_data->{deleted} = 1; | |||||||||||||||||||||||||||||||||||||||||||||
| 204 | } | ||||||||||||||||||||||||||||||||||||||||||||||
| 205 | |||||||||||||||||||||||||||||||||||||||||||||||
| 206 | 0 | return $self->deleted(1); | |||||||||||||||||||||||||||||||||||||||||||||
| 207 | } | ||||||||||||||||||||||||||||||||||||||||||||||
| 208 | |||||||||||||||||||||||||||||||||||||||||||||||
| 209 | =head2 list_user_meetings_by_date | ||||||||||||||||||||||||||||||||||||||||||||||
| 210 | |||||||||||||||||||||||||||||||||||||||||||||||
| 211 | Lists all meetings for which this user is a participant, over a given | ||||||||||||||||||||||||||||||||||||||||||||||
| 212 | date range. | ||||||||||||||||||||||||||||||||||||||||||||||
| 213 | |||||||||||||||||||||||||||||||||||||||||||||||
| 214 | For example, to list all meetings for a particular user over the next week: | ||||||||||||||||||||||||||||||||||||||||||||||
| 215 | |||||||||||||||||||||||||||||||||||||||||||||||
| 216 | my $now = DateTime->now; | ||||||||||||||||||||||||||||||||||||||||||||||
| 217 | my $next_week = $now->clone->add(days => 7); | ||||||||||||||||||||||||||||||||||||||||||||||
| 218 | |||||||||||||||||||||||||||||||||||||||||||||||
| 219 | my $meetings = Elive::Entity::Meeting->list_user_meetings_by_date( | ||||||||||||||||||||||||||||||||||||||||||||||
| 220 | {userId => $user_id, | ||||||||||||||||||||||||||||||||||||||||||||||
| 221 | startDate => $now->epoch.'000', | ||||||||||||||||||||||||||||||||||||||||||||||
| 222 | endDate => $next_week->epoch.'000'} | ||||||||||||||||||||||||||||||||||||||||||||||
| 223 | ); | ||||||||||||||||||||||||||||||||||||||||||||||
| 224 | |||||||||||||||||||||||||||||||||||||||||||||||
| 225 | =cut | ||||||||||||||||||||||||||||||||||||||||||||||
| 226 | |||||||||||||||||||||||||||||||||||||||||||||||
| 227 | sub list_user_meetings_by_date { | ||||||||||||||||||||||||||||||||||||||||||||||
| 228 | 0 | ▶ | my ($class, $params, %opt) = @_; | ||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
list_user_meetings_by_date: not called CC=5 SCAR=34.0
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||||||
| 229 | |||||||||||||||||||||||||||||||||||||||||||||||
| 230 | 0 | my %fetch_params; | |||||||||||||||||||||||||||||||||||||||||||||
| 231 | 0 | my $reftype = Elive::Util::_reftype($params); | |||||||||||||||||||||||||||||||||||||||||||||
| 232 | |||||||||||||||||||||||||||||||||||||||||||||||
| 233 | 0 | ▶ | if ($reftype eq 'HASH') { | ||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 2 branches
| |||||||||||||||||||||||||||||||||||||||||||||||
| 234 | 0 | %fetch_params = %$params; | |||||||||||||||||||||||||||||||||||||||||||||
| 235 | } | ||||||||||||||||||||||||||||||||||||||||||||||
| 236 | ▶ | elsif ($reftype eq 'ARRAY' | |||||||||||||||||||||||||||||||||||||||||||||
|
Condition0%0/6
$reftype eq "ARRAY" and $params->[0] and @$params <= 3
$reftype eq "ARRAY" and $params->[0]
MC/DC0%0/3
$reftype eq "ARRAY" and $params->[0] and @$params <= 3
$reftype eq "ARRAY"
$params->[0]
@$params <= 3
Truth table0%0/4
A and B and C
A= $reftype eq "ARRAY"B= $params->[0]C= @$params <= 3
| |||||||||||||||||||||||||||||||||||||||||||||||
| 237 | && $params->[0] && @$params <= 3) { | ||||||||||||||||||||||||||||||||||||||||||||||
| 238 | # older usage | ||||||||||||||||||||||||||||||||||||||||||||||
| 239 | 0 | @fetch_params{qw{userId startDate endDate}} = @$params; | |||||||||||||||||||||||||||||||||||||||||||||
| 240 | } | ||||||||||||||||||||||||||||||||||||||||||||||
| 241 | else { | ||||||||||||||||||||||||||||||||||||||||||||||
| 242 | 0 | die 'usage: $class->user_meetings_by_date({userId=>$user, startDate=>$start_date, endDate=>$end_date})' | |||||||||||||||||||||||||||||||||||||||||||||
| 243 | } | ||||||||||||||||||||||||||||||||||||||||||||||
| 244 | |||||||||||||||||||||||||||||||||||||||||||||||
| 245 | 0 | return $class->_fetch($class->_freeze(\%fetch_params), | |||||||||||||||||||||||||||||||||||||||||||||
| 246 | command => 'listUserMeetingsByDate', | ||||||||||||||||||||||||||||||||||||||||||||||
| 247 | %opt, | ||||||||||||||||||||||||||||||||||||||||||||||
| 248 | ); | ||||||||||||||||||||||||||||||||||||||||||||||
| 249 | } | ||||||||||||||||||||||||||||||||||||||||||||||
| 250 | |||||||||||||||||||||||||||||||||||||||||||||||
| 251 | =head2 add_preload | ||||||||||||||||||||||||||||||||||||||||||||||
| 252 | |||||||||||||||||||||||||||||||||||||||||||||||
| 253 | my $preload = Elive::Entity::Preload->upload( 'c:\tmp\intro.wbd'); | ||||||||||||||||||||||||||||||||||||||||||||||
| 254 | my $meeting = Elive::Entity::Meeting->retrieve($meeting_id); | ||||||||||||||||||||||||||||||||||||||||||||||
| 255 | $meeting->add_preload($preload); | ||||||||||||||||||||||||||||||||||||||||||||||
| 256 | |||||||||||||||||||||||||||||||||||||||||||||||
| 257 | Associates a preload with the given meeting-Id, or meeting object. | ||||||||||||||||||||||||||||||||||||||||||||||
| 258 | |||||||||||||||||||||||||||||||||||||||||||||||
| 259 | =cut | ||||||||||||||||||||||||||||||||||||||||||||||
| 260 | |||||||||||||||||||||||||||||||||||||||||||||||
| 261 | sub add_preload { | ||||||||||||||||||||||||||||||||||||||||||||||
| 262 | 0 | ▶ | my ($self, $preload_id, %opt) = @_; | ||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
add_preload: not called CC=7 SCAR=40.3
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||||||
| 263 | |||||||||||||||||||||||||||||||||||||||||||||||
| 264 | 0 | ▶ | die 'usage: $meeting_obj->add_preload($preload)' | ||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||
| 265 | unless $preload_id; | ||||||||||||||||||||||||||||||||||||||||||||||
| 266 | |||||||||||||||||||||||||||||||||||||||||||||||
| 267 | 0 | ▶ | my %params = %{ $opt{param} || {} }; | ||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||
| 268 | |||||||||||||||||||||||||||||||||||||||||||||||
| 269 | 0 | ▶ | my $meeting_id = $opt{meeting_id} || $self->meetingId; | ||||||||||||||||||||||||||||||||||||||||||||
|
Condition0%0/3
$opt{'meeting_id'} || $self->meetingId
MC/DC0%0/2
$opt{'meeting_id'} || $self->meetingId
$opt{'meeting_id'}
$self->meetingId
Truth table0%0/3
A || B
A= $opt{'meeting_id'}B= $self->meetingId
| |||||||||||||||||||||||||||||||||||||||||||||||
| 270 | 0 | ▶ | die "unable to determine meeting_id" | ||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||
| 271 | unless $meeting_id; | ||||||||||||||||||||||||||||||||||||||||||||||
| 272 | |||||||||||||||||||||||||||||||||||||||||||||||
| 273 | 0 | ▶ | $params{meetingId} ||= $meeting_id; | ||||||||||||||||||||||||||||||||||||||||||||
|
Condition0%0/3
$params{"meetingId"} ||= $meeting_id
MC/DC0%0/2
$params{"meetingId"} ||= $meeting_id
$params{"meetingId"}
$meeting_id
Truth table0%0/3
A ||= B
A= $params{"meetingId"}B= $meeting_id
| |||||||||||||||||||||||||||||||||||||||||||||||
| 274 | 0 | $params{preloadId} = $preload_id; | |||||||||||||||||||||||||||||||||||||||||||||
| 275 | |||||||||||||||||||||||||||||||||||||||||||||||
| 276 | 0 | ▶ | my $connection = $self->connection | ||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||
| 277 | or die "not connected"; | ||||||||||||||||||||||||||||||||||||||||||||||
| 278 | |||||||||||||||||||||||||||||||||||||||||||||||
| 279 | my $som = $connection->call('addMeetingPreload', | ||||||||||||||||||||||||||||||||||||||||||||||
| 280 | 0 | %{ $self->_freeze( \%params ) }); | |||||||||||||||||||||||||||||||||||||||||||||
| 281 | |||||||||||||||||||||||||||||||||||||||||||||||
| 282 | 0 | return $connection->_check_for_errors($som); | |||||||||||||||||||||||||||||||||||||||||||||
| 283 | } | ||||||||||||||||||||||||||||||||||||||||||||||
| 284 | |||||||||||||||||||||||||||||||||||||||||||||||
| 285 | =head2 check_preload | ||||||||||||||||||||||||||||||||||||||||||||||
| 286 | |||||||||||||||||||||||||||||||||||||||||||||||
| 287 | my $ok = $meeting_obj->check_preload($preload); | ||||||||||||||||||||||||||||||||||||||||||||||
| 288 | |||||||||||||||||||||||||||||||||||||||||||||||
| 289 | Checks that the preload is associated with this meeting. | ||||||||||||||||||||||||||||||||||||||||||||||
| 290 | |||||||||||||||||||||||||||||||||||||||||||||||
| 291 | =cut | ||||||||||||||||||||||||||||||||||||||||||||||
| 292 | |||||||||||||||||||||||||||||||||||||||||||||||
| 293 | sub check_preload { | ||||||||||||||||||||||||||||||||||||||||||||||
| 294 | 0 | ▶ | my ($self, $preload_id, %opt) = @_; | ||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
check_preload: not called CC=6 SCAR=37.4
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||||||
| 295 | |||||||||||||||||||||||||||||||||||||||||||||||
| 296 | 0 | ▶ | die 'usage: $meeting_obj->check_preload($preload || $preload_id)' | ||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||
| 297 | unless $preload_id; | ||||||||||||||||||||||||||||||||||||||||||||||
| 298 | |||||||||||||||||||||||||||||||||||||||||||||||
| 299 | 0 | ▶ | my $meeting_id = $opt{meeting_id} || $self->meetingId; | ||||||||||||||||||||||||||||||||||||||||||||
|
Condition0%0/3
$opt{'meeting_id'} || $self->meetingId
MC/DC0%0/2
$opt{'meeting_id'} || $self->meetingId
$opt{'meeting_id'}
$self->meetingId
Truth table0%0/3
A || B
A= $opt{'meeting_id'}B= $self->meetingId
| |||||||||||||||||||||||||||||||||||||||||||||||
| 300 | |||||||||||||||||||||||||||||||||||||||||||||||
| 301 | 0 | ▶ | die "unable to determine meeting_id" | ||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||
| 302 | unless $meeting_id; | ||||||||||||||||||||||||||||||||||||||||||||||
| 303 | |||||||||||||||||||||||||||||||||||||||||||||||
| 304 | 0 | ▶ | my $connection = $self->connection | ||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||
| 305 | or die "not connected"; | ||||||||||||||||||||||||||||||||||||||||||||||
| 306 | |||||||||||||||||||||||||||||||||||||||||||||||
| 307 | my $som = $connection | ||||||||||||||||||||||||||||||||||||||||||||||
| 308 | ->call('checkMeetingPreload', | ||||||||||||||||||||||||||||||||||||||||||||||
| 309 | 0 | %{ $self->_freeze({ preloadId => $preload_id, | |||||||||||||||||||||||||||||||||||||||||||||
| 310 | meetingId => $meeting_id, | ||||||||||||||||||||||||||||||||||||||||||||||
| 311 | }); | ||||||||||||||||||||||||||||||||||||||||||||||
| 312 | } | ||||||||||||||||||||||||||||||||||||||||||||||
| 313 | ); | ||||||||||||||||||||||||||||||||||||||||||||||
| 314 | |||||||||||||||||||||||||||||||||||||||||||||||
| 315 | 0 | $connection->_check_for_errors($som); | |||||||||||||||||||||||||||||||||||||||||||||
| 316 | |||||||||||||||||||||||||||||||||||||||||||||||
| 317 | 0 | my $results = $self->_unpack_as_list($som->result); | |||||||||||||||||||||||||||||||||||||||||||||
| 318 | |||||||||||||||||||||||||||||||||||||||||||||||
| 319 | 0 | ▶ | return @$results && Elive::Util::_thaw($results->[0], 'Bool'); | ||||||||||||||||||||||||||||||||||||||||||||
|
Condition0%0/3
@$results && Elive::Util::_thaw($results->[0], 'Bool')
MC/DC0%0/2
@$results && Elive::Util::_thaw($results->[0], 'Bool')
@$results
Elive::Util::_thaw($results->[0], 'Bool')
Truth table0%0/3
A && B
A= @$resultsB= Elive::Util::_thaw($results->[0], 'Bool')
| |||||||||||||||||||||||||||||||||||||||||||||||
| 320 | } | ||||||||||||||||||||||||||||||||||||||||||||||
| 321 | |||||||||||||||||||||||||||||||||||||||||||||||
| 322 | =head2 is_participant | ||||||||||||||||||||||||||||||||||||||||||||||
| 323 | |||||||||||||||||||||||||||||||||||||||||||||||
| 324 | my $ok = $meeting_obj->is_participant($user); | ||||||||||||||||||||||||||||||||||||||||||||||
| 325 | |||||||||||||||||||||||||||||||||||||||||||||||
| 326 | Checks that the user is a meeting participant. | ||||||||||||||||||||||||||||||||||||||||||||||
| 327 | |||||||||||||||||||||||||||||||||||||||||||||||
| 328 | =cut | ||||||||||||||||||||||||||||||||||||||||||||||
| 329 | |||||||||||||||||||||||||||||||||||||||||||||||
| 330 | sub is_participant { | ||||||||||||||||||||||||||||||||||||||||||||||
| 331 | 0 | ▶ | my ($self, $user, %opt) = @_; | ||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
is_participant: not called CC=7 SCAR=40.3
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||||||
| 332 | |||||||||||||||||||||||||||||||||||||||||||||||
| 333 | 0 | ▶ | die 'usage: $meeting_obj->is_preload($user || $user_id)' | ||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||
| 334 | unless $user; | ||||||||||||||||||||||||||||||||||||||||||||||
| 335 | |||||||||||||||||||||||||||||||||||||||||||||||
| 336 | 0 | ▶ | my $meeting_id = $opt{meeting_id} || $self->meetingId; | ||||||||||||||||||||||||||||||||||||||||||||
|
Condition0%0/3
$opt{'meeting_id'} || $self->meetingId
MC/DC0%0/2
$opt{'meeting_id'} || $self->meetingId
$opt{'meeting_id'}
$self->meetingId
Truth table0%0/3
A || B
A= $opt{'meeting_id'}B= $self->meetingId
| |||||||||||||||||||||||||||||||||||||||||||||||
| 337 | |||||||||||||||||||||||||||||||||||||||||||||||
| 338 | 0 | ▶ | die "unable to determine meeting_id" | ||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||
| 339 | unless $meeting_id; | ||||||||||||||||||||||||||||||||||||||||||||||
| 340 | |||||||||||||||||||||||||||||||||||||||||||||||
| 341 | 0 | ▶ | my $connection = $self->connection | ||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||
| 342 | or die "not connected"; | ||||||||||||||||||||||||||||||||||||||||||||||
| 343 | |||||||||||||||||||||||||||||||||||||||||||||||
| 344 | 0 | ▶ | my $command = $opt{command} || 'isParticipant'; | ||||||||||||||||||||||||||||||||||||||||||||
|
Condition0%0/2
$opt{'command'} || 'isParticipant'
MC/DC0%0/1
$opt{'command'} || 'isParticipant'
$opt{'command'}
Truth table0%0/2
A
A= $opt{'command'}
| |||||||||||||||||||||||||||||||||||||||||||||||
| 345 | |||||||||||||||||||||||||||||||||||||||||||||||
| 346 | my $som = $connection | ||||||||||||||||||||||||||||||||||||||||||||||
| 347 | ->call($command, | ||||||||||||||||||||||||||||||||||||||||||||||
| 348 | 0 | %{ $self->_freeze({ userId => $user, | |||||||||||||||||||||||||||||||||||||||||||||
| 349 | meetingId => $meeting_id, | ||||||||||||||||||||||||||||||||||||||||||||||
| 350 | }) | ||||||||||||||||||||||||||||||||||||||||||||||
| 351 | } | ||||||||||||||||||||||||||||||||||||||||||||||
| 352 | ); | ||||||||||||||||||||||||||||||||||||||||||||||
| 353 | |||||||||||||||||||||||||||||||||||||||||||||||
| 354 | 0 | $connection->_check_for_errors($som); | |||||||||||||||||||||||||||||||||||||||||||||
| 355 | |||||||||||||||||||||||||||||||||||||||||||||||
| 356 | 0 | my $results = $self->_unpack_as_list($som->result); | |||||||||||||||||||||||||||||||||||||||||||||
| 357 | |||||||||||||||||||||||||||||||||||||||||||||||
| 358 | 0 | ▶ | return @$results && Elive::Util::_thaw($results->[0], 'Bool'); | ||||||||||||||||||||||||||||||||||||||||||||
|
Condition0%0/3
@$results && Elive::Util::_thaw($results->[0], 'Bool')
MC/DC0%0/2
@$results && Elive::Util::_thaw($results->[0], 'Bool')
@$results
Elive::Util::_thaw($results->[0], 'Bool')
Truth table0%0/3
A && B
A= @$resultsB= Elive::Util::_thaw($results->[0], 'Bool')
| |||||||||||||||||||||||||||||||||||||||||||||||
| 359 | } | ||||||||||||||||||||||||||||||||||||||||||||||
| 360 | |||||||||||||||||||||||||||||||||||||||||||||||
| 361 | =head2 is_moderator | ||||||||||||||||||||||||||||||||||||||||||||||
| 362 | |||||||||||||||||||||||||||||||||||||||||||||||
| 363 | my $ok = $meeting_obj->is_moderator($user); | ||||||||||||||||||||||||||||||||||||||||||||||
| 364 | |||||||||||||||||||||||||||||||||||||||||||||||
| 365 | Checks that the user is a meeting moderator. | ||||||||||||||||||||||||||||||||||||||||||||||
| 366 | |||||||||||||||||||||||||||||||||||||||||||||||
| 367 | =cut | ||||||||||||||||||||||||||||||||||||||||||||||
| 368 | |||||||||||||||||||||||||||||||||||||||||||||||
| 369 | sub is_moderator { | ||||||||||||||||||||||||||||||||||||||||||||||
| 370 | 0 | ▶ | my ($self, $user, %opt) = @_; | ||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
is_moderator: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||||||
| 371 | |||||||||||||||||||||||||||||||||||||||||||||||
| 372 | 0 | return $self->is_participant($user, %opt, command => 'isModerator'); | |||||||||||||||||||||||||||||||||||||||||||||
| 373 | } | ||||||||||||||||||||||||||||||||||||||||||||||
| 374 | |||||||||||||||||||||||||||||||||||||||||||||||
| 375 | sub _readback_check { | ||||||||||||||||||||||||||||||||||||||||||||||
| 376 | 18 | ▶ | my ($class, $updates_ref, $rows, @args) = @_; | ||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
_readback_check: called CC=2 SCAR=7.0
| |||||||||||||||||||||||||||||||||||||||||||||||
| 377 | 18 | my %updates = %$updates_ref; | |||||||||||||||||||||||||||||||||||||||||||||
| 378 | |||||||||||||||||||||||||||||||||||||||||||||||
| 379 | # | ||||||||||||||||||||||||||||||||||||||||||||||
| 380 | # password not included in readback record - skip it | ||||||||||||||||||||||||||||||||||||||||||||||
| 381 | # | ||||||||||||||||||||||||||||||||||||||||||||||
| 382 | 18 | delete $updates{password}; | |||||||||||||||||||||||||||||||||||||||||||||
| 383 | |||||||||||||||||||||||||||||||||||||||||||||||
| 384 | # | ||||||||||||||||||||||||||||||||||||||||||||||
| 385 | # A series of recurring meetings can potentially be returned. | ||||||||||||||||||||||||||||||||||||||||||||||
| 386 | # to do: check for correct sequence of start and end times. | ||||||||||||||||||||||||||||||||||||||||||||||
| 387 | # for now, we just check the first meeting. | ||||||||||||||||||||||||||||||||||||||||||||||
| 388 | # | ||||||||||||||||||||||||||||||||||||||||||||||
| 389 | 18 | ▶ | $rows = [$rows->[0]] if @$rows > 1; | ||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||
| 390 | |||||||||||||||||||||||||||||||||||||||||||||||
| 391 | 18 | return $class->SUPER::_readback_check(\%updates, $rows, @args); | |||||||||||||||||||||||||||||||||||||||||||||
| 392 | } | ||||||||||||||||||||||||||||||||||||||||||||||
| 393 | |||||||||||||||||||||||||||||||||||||||||||||||
| 394 | =head2 remove_preload | ||||||||||||||||||||||||||||||||||||||||||||||
| 395 | |||||||||||||||||||||||||||||||||||||||||||||||
| 396 | $meeting_obj->remove_preload($preload_obj); | ||||||||||||||||||||||||||||||||||||||||||||||
| 397 | $preload_obj->delete; # if you don't want it to hang around | ||||||||||||||||||||||||||||||||||||||||||||||
| 398 | |||||||||||||||||||||||||||||||||||||||||||||||
| 399 | Disassociate a preload from a meeting. | ||||||||||||||||||||||||||||||||||||||||||||||
| 400 | |||||||||||||||||||||||||||||||||||||||||||||||
| 401 | =cut | ||||||||||||||||||||||||||||||||||||||||||||||
| 402 | |||||||||||||||||||||||||||||||||||||||||||||||
| 403 | sub remove_preload { | ||||||||||||||||||||||||||||||||||||||||||||||
| 404 | 0 | ▶ | my ($self, $preload_id, %opt) = @_; | ||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
remove_preload: not called CC=5 SCAR=34.0
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||||||
| 405 | |||||||||||||||||||||||||||||||||||||||||||||||
| 406 | 0 | ▶ | my $meeting_id = $opt{meeting_id} || $self->meetingId; | ||||||||||||||||||||||||||||||||||||||||||||
|
Condition0%0/3
$opt{'meeting_id'} || $self->meetingId
MC/DC0%0/2
$opt{'meeting_id'} || $self->meetingId
$opt{'meeting_id'}
$self->meetingId
Truth table0%0/3
A || B
A= $opt{'meeting_id'}B= $self->meetingId
| |||||||||||||||||||||||||||||||||||||||||||||||
| 407 | |||||||||||||||||||||||||||||||||||||||||||||||
| 408 | 0 | ▶ | die 'unable to get a meeting_id' | ||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||
| 409 | unless $meeting_id; | ||||||||||||||||||||||||||||||||||||||||||||||
| 410 | |||||||||||||||||||||||||||||||||||||||||||||||
| 411 | 0 | ▶ | die 'unable to get a preload' | ||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||
| 412 | unless $preload_id; | ||||||||||||||||||||||||||||||||||||||||||||||
| 413 | |||||||||||||||||||||||||||||||||||||||||||||||
| 414 | 0 | ▶ | my $connection = $self->connection | ||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||
| 415 | or die "not connected"; | ||||||||||||||||||||||||||||||||||||||||||||||
| 416 | |||||||||||||||||||||||||||||||||||||||||||||||
| 417 | my $som = $connection->call('deleteMeetingPreload', | ||||||||||||||||||||||||||||||||||||||||||||||
| 418 | 0 | %{ $self->_freeze({ meetingId => $meeting_id, | |||||||||||||||||||||||||||||||||||||||||||||
| 419 | preloadId => $preload_id, | ||||||||||||||||||||||||||||||||||||||||||||||
| 420 | }) | ||||||||||||||||||||||||||||||||||||||||||||||
| 421 | } | ||||||||||||||||||||||||||||||||||||||||||||||
| 422 | ); | ||||||||||||||||||||||||||||||||||||||||||||||
| 423 | |||||||||||||||||||||||||||||||||||||||||||||||
| 424 | 0 | return $connection->_check_for_errors($som); | |||||||||||||||||||||||||||||||||||||||||||||
| 425 | } | ||||||||||||||||||||||||||||||||||||||||||||||
| 426 | |||||||||||||||||||||||||||||||||||||||||||||||
| 427 | =head2 buildJNLP | ||||||||||||||||||||||||||||||||||||||||||||||
| 428 | |||||||||||||||||||||||||||||||||||||||||||||||
| 429 | Builds a JNLP for the meeting. | ||||||||||||||||||||||||||||||||||||||||||||||
| 430 | |||||||||||||||||||||||||||||||||||||||||||||||
| 431 | # ... | ||||||||||||||||||||||||||||||||||||||||||||||
| 432 | use Elive; | ||||||||||||||||||||||||||||||||||||||||||||||
| 433 | use Elive::Entity::Role; | ||||||||||||||||||||||||||||||||||||||||||||||
| 434 | use Elive::Entity::Meeting; | ||||||||||||||||||||||||||||||||||||||||||||||
| 435 | |||||||||||||||||||||||||||||||||||||||||||||||
| 436 | use CGI; | ||||||||||||||||||||||||||||||||||||||||||||||
| 437 | my $cgi = CGI->new; | ||||||||||||||||||||||||||||||||||||||||||||||
| 438 | |||||||||||||||||||||||||||||||||||||||||||||||
| 439 | # | ||||||||||||||||||||||||||||||||||||||||||||||
| 440 | # authentication, calls to Elive->connect, etc goes here... | ||||||||||||||||||||||||||||||||||||||||||||||
| 441 | # | ||||||||||||||||||||||||||||||||||||||||||||||
| 442 | my $meeting_id = $cgi->param('meeting_id'); | ||||||||||||||||||||||||||||||||||||||||||||||
| 443 | my $meeting = Elive::Entity::Meeting->retrieve($meeting_id); | ||||||||||||||||||||||||||||||||||||||||||||||
| 444 | |||||||||||||||||||||||||||||||||||||||||||||||
| 445 | my $login_name = $cgi->param('user'); | ||||||||||||||||||||||||||||||||||||||||||||||
| 446 | |||||||||||||||||||||||||||||||||||||||||||||||
| 447 | my $jnlp = $meeting->buildJNLP( | ||||||||||||||||||||||||||||||||||||||||||||||
| 448 | userName => $login_name, | ||||||||||||||||||||||||||||||||||||||||||||||
| 449 | sessionRole => ${Elive::Entity::Role::PARTICIPANT}, | ||||||||||||||||||||||||||||||||||||||||||||||
| 450 | ); | ||||||||||||||||||||||||||||||||||||||||||||||
| 451 | # | ||||||||||||||||||||||||||||||||||||||||||||||
| 452 | # join this user to the meeting | ||||||||||||||||||||||||||||||||||||||||||||||
| 453 | # | ||||||||||||||||||||||||||||||||||||||||||||||
| 454 | |||||||||||||||||||||||||||||||||||||||||||||||
| 455 | print $cgi->header(-type => 'application/x-java-jnlp-file', | ||||||||||||||||||||||||||||||||||||||||||||||
| 456 | -attachment => 'my-meeting.jnlp'); | ||||||||||||||||||||||||||||||||||||||||||||||
| 457 | |||||||||||||||||||||||||||||||||||||||||||||||
| 458 | print $jnlp; | ||||||||||||||||||||||||||||||||||||||||||||||
| 459 | |||||||||||||||||||||||||||||||||||||||||||||||
| 460 | Alternatively, you can pass a user object or user-id via C<userId> | ||||||||||||||||||||||||||||||||||||||||||||||
| 461 | |||||||||||||||||||||||||||||||||||||||||||||||
| 462 | my $user = Elive::Entity::User->get_by_loginName($login_name); | ||||||||||||||||||||||||||||||||||||||||||||||
| 463 | |||||||||||||||||||||||||||||||||||||||||||||||
| 464 | my $jnlp = $meeting->buildJNLP(userId => $user); | ||||||||||||||||||||||||||||||||||||||||||||||
| 465 | |||||||||||||||||||||||||||||||||||||||||||||||
| 466 | Or you can just conjure up a display name and role. The user does | ||||||||||||||||||||||||||||||||||||||||||||||
| 467 | not have to exist as in the ELM database, or in the meeting's participant list: | ||||||||||||||||||||||||||||||||||||||||||||||
| 468 | |||||||||||||||||||||||||||||||||||||||||||||||
| 469 | my $jnlp = $meeting->buildJNLP( | ||||||||||||||||||||||||||||||||||||||||||||||
| 470 | displayName => 'Joe Bloggs', | ||||||||||||||||||||||||||||||||||||||||||||||
| 471 | sessionRole => ${Elive::Entity::Role::PARTICIPANT} | ||||||||||||||||||||||||||||||||||||||||||||||
| 472 | ); | ||||||||||||||||||||||||||||||||||||||||||||||
| 473 | |||||||||||||||||||||||||||||||||||||||||||||||
| 474 | Guests will by default be given a C<sessionRole> of participant (3). | ||||||||||||||||||||||||||||||||||||||||||||||
| 475 | |||||||||||||||||||||||||||||||||||||||||||||||
| 476 | JNLP is the 'Java Network Launch Protocol', also commonly known as Java | ||||||||||||||||||||||||||||||||||||||||||||||
| 477 | WebStart. To launch the meeting you can, for example, render this as a web | ||||||||||||||||||||||||||||||||||||||||||||||
| 478 | page, or send email attachments with mime type C<application/x-java-jnlp-file>. | ||||||||||||||||||||||||||||||||||||||||||||||
| 479 | |||||||||||||||||||||||||||||||||||||||||||||||
| 480 | Under Windows, and other desktops, files are usually saved with extension | ||||||||||||||||||||||||||||||||||||||||||||||
| 481 | C<.jnlp>. | ||||||||||||||||||||||||||||||||||||||||||||||
| 482 | |||||||||||||||||||||||||||||||||||||||||||||||
| 483 | See also L<http://wikipedia.org/wiki/JNLP>. | ||||||||||||||||||||||||||||||||||||||||||||||
| 484 | |||||||||||||||||||||||||||||||||||||||||||||||
| 485 | =cut | ||||||||||||||||||||||||||||||||||||||||||||||
| 486 | |||||||||||||||||||||||||||||||||||||||||||||||
| 487 | sub buildJNLP { | ||||||||||||||||||||||||||||||||||||||||||||||
| 488 | 0 | ▶ | my ($self, %opt) = @_; | ||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
buildJNLP: not called CC=16 SCAR=56.1
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||||||
| 489 | |||||||||||||||||||||||||||||||||||||||||||||||
| 490 | my $connection = $self->connection || $opt{connection} | ||||||||||||||||||||||||||||||||||||||||||||||
| 491 | 0 | ▶ | or die "not connected"; | ||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition0%0/3
$self->connection || $opt{'connection'}
MC/DC0%0/2
$self->connection || $opt{'connection'}
$self->connection
$opt{'connection'}
Truth table0%0/3
A || B
A= $self->connectionB= $opt{'connection'}
| |||||||||||||||||||||||||||||||||||||||||||||||
| 492 | |||||||||||||||||||||||||||||||||||||||||||||||
| 493 | 0 | ▶ | my $meeting_id = $opt{meeting_id} ||= $self->meetingId; | ||||||||||||||||||||||||||||||||||||||||||||
|
Condition0%0/3
$opt{"meeting_id"} ||= $self->meetingId
MC/DC0%0/2
$opt{"meeting_id"} ||= $self->meetingId
$opt{"meeting_id"}
$self->meetingId
Truth table0%0/3
A ||= B
A= $opt{"meeting_id"}B= $self->meetingId
| |||||||||||||||||||||||||||||||||||||||||||||||
| 494 | |||||||||||||||||||||||||||||||||||||||||||||||
| 495 | 0 | ▶ | die "unable to determine meeting_id" | ||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||
| 496 | unless $meeting_id; | ||||||||||||||||||||||||||||||||||||||||||||||
| 497 | |||||||||||||||||||||||||||||||||||||||||||||||
| 498 | 0 | my %soap_params = (meetingId => $meeting_id); | |||||||||||||||||||||||||||||||||||||||||||||
| 499 | |||||||||||||||||||||||||||||||||||||||||||||||
| 500 | 0 | foreach my $param (qw(displayName sessionRole userName userId)) { | |||||||||||||||||||||||||||||||||||||||||||||
| 501 | 0 | my $val = delete $opt{$param}; | |||||||||||||||||||||||||||||||||||||||||||||
| 502 | 0 | ▶ | $soap_params{$param} = $val | ||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||
| 503 | if defined $val; | ||||||||||||||||||||||||||||||||||||||||||||||
| 504 | } | ||||||||||||||||||||||||||||||||||||||||||||||
| 505 | |||||||||||||||||||||||||||||||||||||||||||||||
| 506 | 0 | my $user = delete $opt{user}; | |||||||||||||||||||||||||||||||||||||||||||||
| 507 | |||||||||||||||||||||||||||||||||||||||||||||||
| 508 | 0 | ▶ | if ($user) { | ||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||
| 509 | 0 | ▶ | if (ref($user) || $user =~ m{^\d+$}x) { | ||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition0%0/3
ref $user or $user =~ /^\d+$/x
MC/DC0%0/2
ref $user or $user =~ /^\d+$/x
ref $user
$user =~ /^\d+$/x
Truth table0%0/3
A or B
A= ref $userB= $user =~ /^\d+$/x
| |||||||||||||||||||||||||||||||||||||||||||||||
| 510 | 0 | ▶ | $soap_params{userId} ||= $user; | ||||||||||||||||||||||||||||||||||||||||||||
|
Condition0%0/3
$soap_params{"userId"} ||= $user
MC/DC0%0/2
$soap_params{"userId"} ||= $user
$soap_params{"userId"}
$user
Truth table0%0/3
A ||= B
A= $soap_params{"userId"}B= $user
| |||||||||||||||||||||||||||||||||||||||||||||||
| 511 | } | ||||||||||||||||||||||||||||||||||||||||||||||
| 512 | else { | ||||||||||||||||||||||||||||||||||||||||||||||
| 513 | 0 | ▶ | $soap_params{userName} ||= $user; | ||||||||||||||||||||||||||||||||||||||||||||
|
Condition0%0/3
$soap_params{"userName"} ||= $user
MC/DC0%0/2
$soap_params{"userName"} ||= $user
$soap_params{"userName"}
$user
Truth table0%0/3
A ||= B
A= $soap_params{"userName"}B= $user
| |||||||||||||||||||||||||||||||||||||||||||||||
| 514 | } | ||||||||||||||||||||||||||||||||||||||||||||||
| 515 | } | ||||||||||||||||||||||||||||||||||||||||||||||
| 516 | |||||||||||||||||||||||||||||||||||||||||||||||
| 517 | $soap_params{userId} ||= $connection->login | ||||||||||||||||||||||||||||||||||||||||||||||
| 518 | 0 | ▶ | unless $soap_params{userName} || $soap_params{displayName}; | ||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition0%0/6
$soap_params{"userName"} or $soap_params{"displayName"}
$soap_params{"userId"} ||= $connection->login
MC/DC0%0/2
$soap_params{"userName"} or $soap_params{"displayName"}
$soap_params{"userName"}
$soap_params{"displayName"}
MC/DC0%0/2
$soap_params{"userId"} ||= $connection->login
$soap_params{"userId"}
$connection->login
Truth table0%0/3
A or B
A= $soap_params{"userName"}B= $soap_params{"displayName"}
Truth table0%0/3
A ||= B
A= $soap_params{"userId"}B= $connection->login
| |||||||||||||||||||||||||||||||||||||||||||||||
| 519 | |||||||||||||||||||||||||||||||||||||||||||||||
| 520 | 0 | my %params_frozen = %{$self->_freeze(\%soap_params)}; | |||||||||||||||||||||||||||||||||||||||||||||
| 521 | 0 | my $som = $connection->call('buildMeetingJNLP' => %params_frozen); | |||||||||||||||||||||||||||||||||||||||||||||
| 522 | |||||||||||||||||||||||||||||||||||||||||||||||
| 523 | 0 | my $results = $self->_get_results($som, $connection); | |||||||||||||||||||||||||||||||||||||||||||||
| 524 | |||||||||||||||||||||||||||||||||||||||||||||||
| 525 | 0 | ▶ | return @$results && $results->[0]; | ||||||||||||||||||||||||||||||||||||||||||||
|
Condition0%0/3
@$results && $results->[0]
MC/DC0%0/2
@$results && $results->[0]
@$results
$results->[0]
Truth table0%0/3
A && B
A= @$resultsB= $results->[0]
| |||||||||||||||||||||||||||||||||||||||||||||||
| 526 | } | ||||||||||||||||||||||||||||||||||||||||||||||
| 527 | |||||||||||||||||||||||||||||||||||||||||||||||
| 528 | =head2 web_url | ||||||||||||||||||||||||||||||||||||||||||||||
| 529 | |||||||||||||||||||||||||||||||||||||||||||||||
| 530 | Utility method to return various website links for the meeting. This is | ||||||||||||||||||||||||||||||||||||||||||||||
| 531 | available as both class level and object level methods. | ||||||||||||||||||||||||||||||||||||||||||||||
| 532 | |||||||||||||||||||||||||||||||||||||||||||||||
| 533 | # | ||||||||||||||||||||||||||||||||||||||||||||||
| 534 | # Class level access. | ||||||||||||||||||||||||||||||||||||||||||||||
| 535 | # | ||||||||||||||||||||||||||||||||||||||||||||||
| 536 | my $url = Elive::Entity::Meeting->web_url( | ||||||||||||||||||||||||||||||||||||||||||||||
| 537 | meeting_id => $meeting_id, | ||||||||||||||||||||||||||||||||||||||||||||||
| 538 | action => 'join', # join|edit|... | ||||||||||||||||||||||||||||||||||||||||||||||
| 539 | connection => $my_connection); # optional | ||||||||||||||||||||||||||||||||||||||||||||||
| 540 | |||||||||||||||||||||||||||||||||||||||||||||||
| 541 | # | ||||||||||||||||||||||||||||||||||||||||||||||
| 542 | # Object level. | ||||||||||||||||||||||||||||||||||||||||||||||
| 543 | # | ||||||||||||||||||||||||||||||||||||||||||||||
| 544 | my $meeting = Elive::Entity::Meeting->retrieve($meeting_id); | ||||||||||||||||||||||||||||||||||||||||||||||
| 545 | my $url = meeting->web_url(action => 'join'); | ||||||||||||||||||||||||||||||||||||||||||||||
| 546 | |||||||||||||||||||||||||||||||||||||||||||||||
| 547 | =cut | ||||||||||||||||||||||||||||||||||||||||||||||
| 548 | |||||||||||||||||||||||||||||||||||||||||||||||
| 549 | sub web_url { | ||||||||||||||||||||||||||||||||||||||||||||||
| 550 | 0 | ▶ | my ($self, %opt) = @_; | ||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
web_url: not called CC=7 SCAR=40.3
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||||||
| 551 | |||||||||||||||||||||||||||||||||||||||||||||||
| 552 | 0 | ▶ | my $meeting_id = $opt{meeting_id} || $self->meetingId; | ||||||||||||||||||||||||||||||||||||||||||||
|
Condition0%0/3
$opt{'meeting_id'} || $self->meetingId
MC/DC0%0/2
$opt{'meeting_id'} || $self->meetingId
$opt{'meeting_id'}
$self->meetingId
Truth table0%0/3
A || B
A= $opt{'meeting_id'}B= $self->meetingId
| |||||||||||||||||||||||||||||||||||||||||||||||
| 553 | |||||||||||||||||||||||||||||||||||||||||||||||
| 554 | 0 | ▶ | die "no meeting_id given" | ||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||
| 555 | unless $meeting_id; | ||||||||||||||||||||||||||||||||||||||||||||||
| 556 | |||||||||||||||||||||||||||||||||||||||||||||||
| 557 | my $connection = $self->connection || $opt{connection} | ||||||||||||||||||||||||||||||||||||||||||||||
| 558 | 0 | ▶ | or die "not connected"; | ||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition0%0/3
$self->connection || $opt{'connection'}
MC/DC0%0/2
$self->connection || $opt{'connection'}
$self->connection
$opt{'connection'}
Truth table0%0/3
A || B
A= $self->connectionB= $opt{'connection'}
| |||||||||||||||||||||||||||||||||||||||||||||||
| 559 | |||||||||||||||||||||||||||||||||||||||||||||||
| 560 | 0 | my $url = $connection->url; | |||||||||||||||||||||||||||||||||||||||||||||
| 561 | |||||||||||||||||||||||||||||||||||||||||||||||
| 562 | 0 | my %Actions = ( | |||||||||||||||||||||||||||||||||||||||||||||
| 563 | 'join' => '%s/join_meeting.html?meetingId=%s', | ||||||||||||||||||||||||||||||||||||||||||||||
| 564 | 'edit' => '%s/modify_meeting.event?meetingId=%s', | ||||||||||||||||||||||||||||||||||||||||||||||
| 565 | 'delete' => '%s/delete_meeting?meetingId=%s', | ||||||||||||||||||||||||||||||||||||||||||||||
| 566 | ); | ||||||||||||||||||||||||||||||||||||||||||||||
| 567 | |||||||||||||||||||||||||||||||||||||||||||||||
| 568 | 0 | ▶ | my $action = $opt{action} || 'join'; | ||||||||||||||||||||||||||||||||||||||||||||
|
Condition0%0/2
$opt{'action'} || 'join'
MC/DC0%0/1
$opt{'action'} || 'join'
$opt{'action'}
Truth table0%0/2
A
A= $opt{'action'}
| |||||||||||||||||||||||||||||||||||||||||||||||
| 569 | |||||||||||||||||||||||||||||||||||||||||||||||
| 570 | die "unrecognised action: $action" | ||||||||||||||||||||||||||||||||||||||||||||||
| 571 | 0 | ▶ | unless exists $Actions{$action}; | ||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||
| 572 | |||||||||||||||||||||||||||||||||||||||||||||||
| 573 | 0 | $meeting_id = Elive::Util::_freeze($meeting_id, 'Str'); | |||||||||||||||||||||||||||||||||||||||||||||
| 574 | |||||||||||||||||||||||||||||||||||||||||||||||
| 575 | 0 | return sprintf($Actions{$action}, | |||||||||||||||||||||||||||||||||||||||||||||
| 576 | $url, $meeting_id); | ||||||||||||||||||||||||||||||||||||||||||||||
| 577 | } | ||||||||||||||||||||||||||||||||||||||||||||||
| 578 | |||||||||||||||||||||||||||||||||||||||||||||||
| 579 | =head2 parameters | ||||||||||||||||||||||||||||||||||||||||||||||
| 580 | |||||||||||||||||||||||||||||||||||||||||||||||
| 581 | my $meeting = Elive::Entity::Meeting->retrieve($meeting_id); | ||||||||||||||||||||||||||||||||||||||||||||||
| 582 | my $meeting_parameters = $meeting->parameters; | ||||||||||||||||||||||||||||||||||||||||||||||
| 583 | |||||||||||||||||||||||||||||||||||||||||||||||
| 584 | Utility method to return the meeting parameters associated with a meeting. | ||||||||||||||||||||||||||||||||||||||||||||||
| 585 | See also L<Elive::Entity::MeetingParameters>. | ||||||||||||||||||||||||||||||||||||||||||||||
| 586 | |||||||||||||||||||||||||||||||||||||||||||||||
| 587 | =cut | ||||||||||||||||||||||||||||||||||||||||||||||
| 588 | |||||||||||||||||||||||||||||||||||||||||||||||
| 589 | sub parameters { | ||||||||||||||||||||||||||||||||||||||||||||||
| 590 | 0 | ▶ | my ($self, @args) = @_; | ||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
parameters: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||||||
| 591 | |||||||||||||||||||||||||||||||||||||||||||||||
| 592 | 0 | return Elive::Entity::MeetingParameters | |||||||||||||||||||||||||||||||||||||||||||||
| 593 | ->retrieve($self->meetingId, | ||||||||||||||||||||||||||||||||||||||||||||||
| 594 | reuse => 1, | ||||||||||||||||||||||||||||||||||||||||||||||
| 595 | connection => $self->connection, | ||||||||||||||||||||||||||||||||||||||||||||||
| 596 | @args, | ||||||||||||||||||||||||||||||||||||||||||||||
| 597 | ); | ||||||||||||||||||||||||||||||||||||||||||||||
| 598 | } | ||||||||||||||||||||||||||||||||||||||||||||||
| 599 | |||||||||||||||||||||||||||||||||||||||||||||||
| 600 | =head2 server_parameters | ||||||||||||||||||||||||||||||||||||||||||||||
| 601 | |||||||||||||||||||||||||||||||||||||||||||||||
| 602 | my $meeting = Elive::Entity::Meeting->retrieve($meeting_id); | ||||||||||||||||||||||||||||||||||||||||||||||
| 603 | my $server_parameters = $meeting->server_parameters; | ||||||||||||||||||||||||||||||||||||||||||||||
| 604 | |||||||||||||||||||||||||||||||||||||||||||||||
| 605 | Utility method to return the server parameters associated with a meeting. | ||||||||||||||||||||||||||||||||||||||||||||||
| 606 | See also L<Elive::Entity::ServerParameters>. | ||||||||||||||||||||||||||||||||||||||||||||||
| 607 | |||||||||||||||||||||||||||||||||||||||||||||||
| 608 | =cut | ||||||||||||||||||||||||||||||||||||||||||||||
| 609 | |||||||||||||||||||||||||||||||||||||||||||||||
| 610 | sub server_parameters { | ||||||||||||||||||||||||||||||||||||||||||||||
| 611 | 0 | ▶ | my ($self, @args) = @_; | ||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
server_parameters: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||||||
| 612 | |||||||||||||||||||||||||||||||||||||||||||||||
| 613 | 0 | return Elive::Entity::ServerParameters | |||||||||||||||||||||||||||||||||||||||||||||
| 614 | ->retrieve($self->meetingId, | ||||||||||||||||||||||||||||||||||||||||||||||
| 615 | reuse => 1, | ||||||||||||||||||||||||||||||||||||||||||||||
| 616 | connection => $self->connection, | ||||||||||||||||||||||||||||||||||||||||||||||
| 617 | @args, | ||||||||||||||||||||||||||||||||||||||||||||||
| 618 | ); | ||||||||||||||||||||||||||||||||||||||||||||||
| 619 | } | ||||||||||||||||||||||||||||||||||||||||||||||
| 620 | |||||||||||||||||||||||||||||||||||||||||||||||
| 621 | =head2 participant_list | ||||||||||||||||||||||||||||||||||||||||||||||
| 622 | |||||||||||||||||||||||||||||||||||||||||||||||
| 623 | my $meeting = Elive::Entity::Meeting->retrieve($meeting_id); | ||||||||||||||||||||||||||||||||||||||||||||||
| 624 | my $participant_list = $meeting->participant_list; | ||||||||||||||||||||||||||||||||||||||||||||||
| 625 | my $participants = $participant_list->participants; | ||||||||||||||||||||||||||||||||||||||||||||||
| 626 | |||||||||||||||||||||||||||||||||||||||||||||||
| 627 | Utility method to return the participant_list associated with a meeting. | ||||||||||||||||||||||||||||||||||||||||||||||
| 628 | See also L<Elive::Entity::ParticipantList>. | ||||||||||||||||||||||||||||||||||||||||||||||
| 629 | |||||||||||||||||||||||||||||||||||||||||||||||
| 630 | =cut | ||||||||||||||||||||||||||||||||||||||||||||||
| 631 | |||||||||||||||||||||||||||||||||||||||||||||||
| 632 | sub participant_list { | ||||||||||||||||||||||||||||||||||||||||||||||
| 633 | 0 | ▶ | my ($self, @args) = @_; | ||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
participant_list: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||||||
| 634 | |||||||||||||||||||||||||||||||||||||||||||||||
| 635 | 0 | return Elive::Entity::ParticipantList | |||||||||||||||||||||||||||||||||||||||||||||
| 636 | ->retrieve($self->meetingId, | ||||||||||||||||||||||||||||||||||||||||||||||
| 637 | reuse => 1, | ||||||||||||||||||||||||||||||||||||||||||||||
| 638 | connection => $self->connection, | ||||||||||||||||||||||||||||||||||||||||||||||
| 639 | @args, | ||||||||||||||||||||||||||||||||||||||||||||||
| 640 | ); | ||||||||||||||||||||||||||||||||||||||||||||||
| 641 | } | ||||||||||||||||||||||||||||||||||||||||||||||
| 642 | |||||||||||||||||||||||||||||||||||||||||||||||
| 643 | =head2 list_preloads | ||||||||||||||||||||||||||||||||||||||||||||||
| 644 | |||||||||||||||||||||||||||||||||||||||||||||||
| 645 | my $preloads = $meeting_obj->list_preloads; | ||||||||||||||||||||||||||||||||||||||||||||||
| 646 | |||||||||||||||||||||||||||||||||||||||||||||||
| 647 | Lists all preloads associated with the meeting. See also L<Elive::Entity::Preload>. | ||||||||||||||||||||||||||||||||||||||||||||||
| 648 | |||||||||||||||||||||||||||||||||||||||||||||||
| 649 | =cut | ||||||||||||||||||||||||||||||||||||||||||||||
| 650 | |||||||||||||||||||||||||||||||||||||||||||||||
| 651 | sub list_preloads { | ||||||||||||||||||||||||||||||||||||||||||||||
| 652 | 0 | ▶ | my ($self, @args) = @_; | ||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
list_preloads: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||||||
| 653 | |||||||||||||||||||||||||||||||||||||||||||||||
| 654 | 0 | return Elive::Entity::Preload | |||||||||||||||||||||||||||||||||||||||||||||
| 655 | ->list_meeting_preloads($self->meetingId, | ||||||||||||||||||||||||||||||||||||||||||||||
| 656 | connection => $self->connection, | ||||||||||||||||||||||||||||||||||||||||||||||
| 657 | @args); | ||||||||||||||||||||||||||||||||||||||||||||||
| 658 | } | ||||||||||||||||||||||||||||||||||||||||||||||
| 659 | |||||||||||||||||||||||||||||||||||||||||||||||
| 660 | =head2 list_recordings | ||||||||||||||||||||||||||||||||||||||||||||||
| 661 | |||||||||||||||||||||||||||||||||||||||||||||||
| 662 | my $recordings = $meeting_obj->list_recordings; | ||||||||||||||||||||||||||||||||||||||||||||||
| 663 | |||||||||||||||||||||||||||||||||||||||||||||||
| 664 | Lists all recordings associated with the meeting. See also | ||||||||||||||||||||||||||||||||||||||||||||||
| 665 | L<Elive::Entity::Recording>. | ||||||||||||||||||||||||||||||||||||||||||||||
| 666 | |||||||||||||||||||||||||||||||||||||||||||||||
| 667 | =cut | ||||||||||||||||||||||||||||||||||||||||||||||
| 668 | |||||||||||||||||||||||||||||||||||||||||||||||
| 669 | sub list_recordings { | ||||||||||||||||||||||||||||||||||||||||||||||
| 670 | 0 | ▶ | my ($self, @args) = shift; | ||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
list_recordings: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||||||
| 671 | |||||||||||||||||||||||||||||||||||||||||||||||
| 672 | 0 | return Elive::Entity::Recording | |||||||||||||||||||||||||||||||||||||||||||||
| 673 | ->list(filter => 'meetingId = '.$self->quote( $self->meetingId ), | ||||||||||||||||||||||||||||||||||||||||||||||
| 674 | connection => $self->connection, | ||||||||||||||||||||||||||||||||||||||||||||||
| 675 | @args); | ||||||||||||||||||||||||||||||||||||||||||||||
| 676 | } | ||||||||||||||||||||||||||||||||||||||||||||||
| 677 | |||||||||||||||||||||||||||||||||||||||||||||||
| 678 | =head1 SEE ALSO | ||||||||||||||||||||||||||||||||||||||||||||||
| 679 | |||||||||||||||||||||||||||||||||||||||||||||||
| 680 | L<Elive::Entity::Session> | ||||||||||||||||||||||||||||||||||||||||||||||
| 681 | |||||||||||||||||||||||||||||||||||||||||||||||
| 682 | L<Elive::Entity::Preload> | ||||||||||||||||||||||||||||||||||||||||||||||
| 683 | |||||||||||||||||||||||||||||||||||||||||||||||
| 684 | L<Elive::Entity::Recording> | ||||||||||||||||||||||||||||||||||||||||||||||
| 685 | |||||||||||||||||||||||||||||||||||||||||||||||
| 686 | L<Elive::Entity::MeetingParameters> | ||||||||||||||||||||||||||||||||||||||||||||||
| 687 | |||||||||||||||||||||||||||||||||||||||||||||||
| 688 | L<Elive::Entity::ServerParameters> | ||||||||||||||||||||||||||||||||||||||||||||||
| 689 | |||||||||||||||||||||||||||||||||||||||||||||||
| 690 | L<Elive::Entity::ParticipantList> | ||||||||||||||||||||||||||||||||||||||||||||||
| 691 | |||||||||||||||||||||||||||||||||||||||||||||||
| 692 | =cut | ||||||||||||||||||||||||||||||||||||||||||||||
| 693 | |||||||||||||||||||||||||||||||||||||||||||||||
| 694 | 21 | 1; | |||||||||||||||||||||||||||||||||||||||||||||