class UCB::LDAP::StudentTerm
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.
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/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
Public Instance Methods
change_datetime()
click to toggle source
# File lib/ucb_ldap/student_term.rb, line 22 def change_datetime warn "DEPRECATED: change_datetime is no longer supported" [] end
college_code()
click to toggle source
# File lib/ucb_ldap/student_term.rb, line 27 def college_code warn "DEPRECATED: college_code is no longer supported" [] end
college_name()
click to toggle source
# File lib/ucb_ldap/student_term.rb, line 32 def college_name warn "DEPRECATED: college_name is no longer supported" [] end
level_code()
click to toggle source
# File lib/ucb_ldap/student_term.rb, line 37 def level_code warn "DEPRECATED: level_code is no longer supported" [] end
level_name()
click to toggle source
# File lib/ucb_ldap/student_term.rb, line 42 def level_name warn "DEPRECATED: level_name is no longer supported" [] end
major_code()
click to toggle source
# File lib/ucb_ldap/student_term.rb, line 57 def major_code warn "DEPRECATED: major_code is no longer supported" [] end
major_name()
click to toggle source
# File lib/ucb_ldap/student_term.rb, line 62 def major_name warn "DEPRECATED: major_name is no longer supported" [] end
registration_status_code()
click to toggle source
# 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_name()
click to toggle source
# File lib/ucb_ldap/student_term.rb, line 72 def registration_status_name warn "DEPRECATED: registration_status_name is no longer supported" [] end
role_code()
click to toggle source
# File lib/ucb_ldap/student_term.rb, line 47 def role_code warn "DEPRECATED: role_code is no longer supported" [] end
role_name()
click to toggle source
# File lib/ucb_ldap/student_term.rb, line 52 def role_name warn "DEPRECATED: role_name is no longer supported" [] end
term_code()
click to toggle source
# File lib/ucb_ldap/student_term.rb, line 77 def term_code warn "DEPRECATED: term_code is no longer supported" [] end
term_name()
click to toggle source
# File lib/ucb_ldap/student_term.rb, line 82 def term_name warn "DEPRECATED: term_name is no longer supported" [] end
term_status()
click to toggle source
# File lib/ucb_ldap/student_term.rb, line 87 def term_status warn "DEPRECATED: term_status is no longer supported" [] end
term_year()
click to toggle source
# File lib/ucb_ldap/student_term.rb, line 92 def term_year warn "DEPRECATED: term_year is no longer supported" [] end
under_graduate_code()
click to toggle source
# File lib/ucb_ldap/student_term.rb, line 97 def under_graduate_code warn "DEPRECATED: under_graduate_code is no longer supported" [] end