3 # Copyright (c) 1996-2003 Jesse Vincent <jesse@bestpractical.com>
5 # (Except where explictly superceded by other copyright notices)
7 # This work is made available to you under the terms of Version 2 of
8 # the GNU General Public License. A copy of that license should have
9 # been provided with this software, but in any event can be snarfed
12 # This work is distributed in the hope that it will be useful, but
13 # WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 # General Public License for more details.
17 # Unless otherwise specified, all modifications, corrections or
18 # extensions to this work which alter its source code become the
19 # property of Best Practical Solutions, LLC when submitted for
20 # inclusion in the work.
24 # Autogenerated by DBIx::SearchBuilder factory (by <jesse@bestpractical.com>)
25 # WARNING: THIS FILE IS AUTOGENERATED. ALL CHANGES TO THIS FILE WILL BE LOST.
27 # !! DO NOT EDIT THIS FILE !!
51 @ISA= qw( RT::Record );
57 $self->SUPER::_Init(@_);
64 =item Create PARAMHASH
66 Create takes a hash of values and creates a row in the database:
68 varchar(25) 'PrincipalType'.
69 int(11) 'PrincipalId'.
70 varchar(25) 'RightName'.
71 varchar(25) 'ObjectType'.
73 int(11) 'DelegatedBy'.
74 int(11) 'DelegatedFrom'.
94 PrincipalType => $args{'PrincipalType'},
95 PrincipalId => $args{'PrincipalId'},
96 RightName => $args{'RightName'},
97 ObjectType => $args{'ObjectType'},
98 ObjectId => $args{'ObjectId'},
99 DelegatedBy => $args{'DelegatedBy'},
100 DelegatedFrom => $args{'DelegatedFrom'},
109 Returns the current value of id.
110 (In the database, id is stored as int(11).)
118 Returns the current value of PrincipalType.
119 (In the database, PrincipalType is stored as varchar(25).)
123 =item SetPrincipalType VALUE
126 Set PrincipalType to VALUE.
127 Returns (1, 'Status message') on success and (0, 'Error Message') on failure.
128 (In the database, PrincipalType will be stored as a varchar(25).)
136 Returns the current value of PrincipalId.
137 (In the database, PrincipalId is stored as int(11).)
141 =item SetPrincipalId VALUE
144 Set PrincipalId to VALUE.
145 Returns (1, 'Status message') on success and (0, 'Error Message') on failure.
146 (In the database, PrincipalId will be stored as a int(11).)
154 Returns the current value of RightName.
155 (In the database, RightName is stored as varchar(25).)
159 =item SetRightName VALUE
162 Set RightName to VALUE.
163 Returns (1, 'Status message') on success and (0, 'Error Message') on failure.
164 (In the database, RightName will be stored as a varchar(25).)
172 Returns the current value of ObjectType.
173 (In the database, ObjectType is stored as varchar(25).)
177 =item SetObjectType VALUE
180 Set ObjectType to VALUE.
181 Returns (1, 'Status message') on success and (0, 'Error Message') on failure.
182 (In the database, ObjectType will be stored as a varchar(25).)
190 Returns the current value of ObjectId.
191 (In the database, ObjectId is stored as int(11).)
195 =item SetObjectId VALUE
198 Set ObjectId to VALUE.
199 Returns (1, 'Status message') on success and (0, 'Error Message') on failure.
200 (In the database, ObjectId will be stored as a int(11).)
208 Returns the current value of DelegatedBy.
209 (In the database, DelegatedBy is stored as int(11).)
213 =item SetDelegatedBy VALUE
216 Set DelegatedBy to VALUE.
217 Returns (1, 'Status message') on success and (0, 'Error Message') on failure.
218 (In the database, DelegatedBy will be stored as a int(11).)
226 Returns the current value of DelegatedFrom.
227 (In the database, DelegatedFrom is stored as int(11).)
231 =item SetDelegatedFrom VALUE
234 Set DelegatedFrom to VALUE.
235 Returns (1, 'Status message') on success and (0, 'Error Message') on failure.
236 (In the database, DelegatedFrom will be stored as a int(11).)
243 sub _ClassAccessible {
247 {read => 1, type => 'int(11)', default => ''},
249 {read => 1, write => 1, type => 'varchar(25)', default => ''},
251 {read => 1, write => 1, type => 'int(11)', default => '0'},
253 {read => 1, write => 1, type => 'varchar(25)', default => ''},
255 {read => 1, write => 1, type => 'varchar(25)', default => ''},
257 {read => 1, write => 1, type => 'int(11)', default => '0'},
259 {read => 1, write => 1, type => 'int(11)', default => '0'},
261 {read => 1, write => 1, type => 'int(11)', default => '0'},
267 eval "require RT::ACE_Overlay";
268 if ($@ && $@ !~ qr{^Can't locate RT/ACE_Overlay.pm}) {
272 eval "require RT::ACE_Vendor";
273 if ($@ && $@ !~ qr{^Can't locate RT/ACE_Vendor.pm}) {
277 eval "require RT::ACE_Local";
278 if ($@ && $@ !~ qr{^Can't locate RT/ACE_Local.pm}) {
287 This class allows "overlay" methods to be placed
288 into the following files _Overlay is for a System overlay by the original author,
289 _Vendor is for 3rd-party vendor add-ons, while _Local is for site-local customizations.
291 These overlay files can contain new subs or subs to replace existing subs in this module.
293 If you'll be working with perl 5.6.0 or greater, each of these files should begin with the line
295 no warnings qw(redefine);
297 so that perl does not kick and scream when you redefine a subroutine or variable in your overlay.
299 RT::ACE_Overlay, RT::ACE_Vendor, RT::ACE_Local