Class: UCB::LDAP::StudentTerm

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

Overview

UCB::LDAP::StudentTerm

This class models a student’s term entries in the UCB LDAP directory.

terms = StudentTerm.find_by_uid("1234")       #=> [#<UCB::LDAP::StudentTerm: ...>, ...]

StudentTerms are usually loaded through a Person instance:

p = Person.find_by_uid("1234")    #=> #<UCB::LDAP::Person: ...>
terms = p.student_terms        #=> [#<UCB::LDAP::StudentTerm: ...>, ...]

Note on Binds

You must have a privileged bind and pass your credentials to UCB::LDAP.authenticate() before performing your StudentTerm 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.



107
108
109
110
# File 'lib/ucb_ldap/student_term.rb', line 107

def self.find_by_uid(uid)
  warn "DEPRECATED: Student Terms are no longer supported by LDAP. This method always returns an empty Array"
  []
end

Instance Method Details

#change_datetimeObject



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

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

#college_codeObject



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

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

#college_nameObject



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

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

#level_codeObject



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

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

#level_nameObject



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

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

#major_codeObject



57
58
59
60
# File 'lib/ucb_ldap/student_term.rb', line 57

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

#major_nameObject



62
63
64
65
# File 'lib/ucb_ldap/student_term.rb', line 62

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

#registration_status_codeObject



67
68
69
70
# File 'lib/ucb_ldap/student_term.rb', line 67

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

#registration_status_nameObject



72
73
74
75
# File 'lib/ucb_ldap/student_term.rb', line 72

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

#role_codeObject



47
48
49
50
# File 'lib/ucb_ldap/student_term.rb', line 47

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

#role_nameObject



52
53
54
55
# File 'lib/ucb_ldap/student_term.rb', line 52

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

#term_codeObject



77
78
79
80
# File 'lib/ucb_ldap/student_term.rb', line 77

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

#term_nameObject



82
83
84
85
# File 'lib/ucb_ldap/student_term.rb', line 82

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

#term_statusObject



87
88
89
90
# File 'lib/ucb_ldap/student_term.rb', line 87

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

#term_yearObject



92
93
94
95
# File 'lib/ucb_ldap/student_term.rb', line 92

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

#under_graduate_codeObject



97
98
99
100
# File 'lib/ucb_ldap/student_term.rb', line 97

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