# File lib/ucb_ldap/job_appointment.rb, line 42 def primary? warn "DEPRECATED: primary? is no longer supported" [] end
class UCB::LDAP::JobAppointment
UCB::LDAP::JobAppointment
¶ ↑
This class models a person's job appointment instance in the UCB
LDAP
directory.
appts = JobAppontment.find_by_uid("1234") #=> [#<UCB::LDAP::JobAppointment: ...>, ...]
JobAppointments are usually loaded through a Person
instance:
p = Person.find_by_uid("1234") #=> #<UCB::LDAP::Person: ...> appts = p.job_appointments #=> [#<UCB::LDAP::JobAppointment: ...>, ...]
Note on Binds¶ ↑
You must have a privileged bind and pass your credentials to UCB::LDAP.authenticate()
before performing your JobAppointment
search.
Public Class Methods
find_by_uid(uid)
click to toggle source
Returns an Array of JobAppointment
for uid
, sorted by record_number
(). Returns an empty Array ([]) if nothing is found.
# File lib/ucb_ldap/job_appointment.rb, line 79 def self.find_by_uid(uid) warn "DEPRECATED: LDAP no longer provides job appointment data. This method will always return an empty array" [] end
Public Instance Methods
appointment_type()
click to toggle source
# File lib/ucb_ldap/job_appointment.rb, line 63 def appointment_type warn "DEPRECATED: appointment_type is no longer supported" [] end
cto_code()
click to toggle source
# File lib/ucb_ldap/job_appointment.rb, line 22 def cto_code warn "DEPRECATED: cto_code is no longer supported" [] end
deptid()
click to toggle source
# File lib/ucb_ldap/job_appointment.rb, line 27 def deptid warn "DEPRECATED: deptid is no longer supported" [] end
erc_code()
click to toggle source
Returns Employee Relation Code
# File lib/ucb_ldap/job_appointment.rb, line 48 def erc_code warn "DEPRECATED: erc_code is no longer supported" [] end
personnel_program_code()
click to toggle source
# File lib/ucb_ldap/job_appointment.rb, line 37 def personnel_program_code warn "DEPRECATED: personnel_program_code is no longer supported" [] end
primary?()
click to toggle source
record_number()
click to toggle source
# File lib/ucb_ldap/job_appointment.rb, line 32 def record_number warn "DEPRECATED: record_number is no longer supported" [] end
represented?()
click to toggle source
# File lib/ucb_ldap/job_appointment.rb, line 53 def represented? warn "DEPRECATED: represented? is no longer supported" [] end
title_code()
click to toggle source
# File lib/ucb_ldap/job_appointment.rb, line 58 def title_code warn "DEPRECATED: title_code is no longer supported" [] end
wos?()
click to toggle source
Returns true
if appointment is Without Salary
# File lib/ucb_ldap/job_appointment.rb, line 69 def wos? warn "DEPRECATED: wos? is no longer supported" [] end