Class: UCB::LDAP::JobAppointment

Inherits:
Entry
  • Object
show all
Defined in:
lib/ucb_ldap/job_appointment.rb

Overview

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.

Constant Summary

Constants inherited from Entry

Entry::TESTING

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Entry

#assigned_attributes, #attributes, canonical, #canonical, combine_filters, create, create!, #dn, entity_name, filter_in, find_by_dn, #initialize, make_search_filter, #method_missing, net_ldap, #net_ldap, object_classes, required_attributes, required_schema_attributes, schema_attribute, schema_attributes_array, schema_attributes_hash, search, set_schema_attributes, tree_base, tree_base=, unique_object_class

Constructor Details

This class inherits a constructor from UCB::LDAP::Entry

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class UCB::LDAP::Entry

Class Method Details

.find_by_uid(uid) ⇒ Object

Returns an Array of JobAppointment for uid, sorted by record_number(). Returns an empty Array ([]) if nothing is found.



79
80
81
82
# 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

Instance Method Details

#appointment_typeObject



63
64
65
66
# File 'lib/ucb_ldap/job_appointment.rb', line 63

def appointment_type
  warn "DEPRECATED: appointment_type is no longer supported"
  []
end

#cto_codeObject



22
23
24
25
# File 'lib/ucb_ldap/job_appointment.rb', line 22

def cto_code
  warn "DEPRECATED: cto_code is no longer supported"
  []
end

#deptidObject



27
28
29
30
# File 'lib/ucb_ldap/job_appointment.rb', line 27

def deptid
  warn "DEPRECATED: deptid is no longer supported"
  []
end

#erc_codeObject

Returns Employee Relation Code



48
49
50
51
# File 'lib/ucb_ldap/job_appointment.rb', line 48

def erc_code
  warn "DEPRECATED: erc_code is no longer supported"
  []
end

#personnel_program_codeObject



37
38
39
40
# File 'lib/ucb_ldap/job_appointment.rb', line 37

def personnel_program_code
  warn "DEPRECATED: personnel_program_code is no longer supported"
  []
end

#primary?Boolean

Returns:

  • (Boolean)


42
43
44
45
# File 'lib/ucb_ldap/job_appointment.rb', line 42

def primary?
  warn "DEPRECATED: primary? is no longer supported"
  []
end

#record_numberObject



32
33
34
35
# File 'lib/ucb_ldap/job_appointment.rb', line 32

def record_number
  warn "DEPRECATED: record_number is no longer supported"
  []
end

#represented?Boolean

Returns:

  • (Boolean)


53
54
55
56
# File 'lib/ucb_ldap/job_appointment.rb', line 53

def represented?
  warn "DEPRECATED: represented? is no longer supported"
  []
end

#title_codeObject



58
59
60
61
# File 'lib/ucb_ldap/job_appointment.rb', line 58

def title_code
  warn "DEPRECATED: title_code is no longer supported"
  []
end

#wos?Boolean

Returns true if appointment is Without Salary

Returns:

  • (Boolean)


69
70
71
72
# File 'lib/ucb_ldap/job_appointment.rb', line 69

def wos?
  warn "DEPRECATED: wos? is no longer supported"
  []
end