module UCB::LDAP::CommonAttributes
Public Instance Methods
addresses()
click to toggle source
Returns Array
of Address
for this Person
. Requires a bind with access to addresses. See UCB::LDAP.authenticate()
.
# File lib/ucb_ldap/person/common_attributes.rb, line 63 def addresses warn "DEPRECATED: use postalAddress from a Person entry" [] end
affiliate_affiliations()
click to toggle source
Returns Array
of Affiliation
for this Person
. Requires a bind with access to affiliations. See UCB::LDAP.authenticate()
.
# File lib/ucb_ldap/person/common_attributes.rb, line 40 def affiliate_affiliations @affiliate_affiliations ||= Affiliation.find_by_uid(uid) end
email()
click to toggle source
# File lib/ucb_ldap/person/common_attributes.rb, line 26 def email mail.first end
firstname()
click to toggle source
# File lib/ucb_ldap/person/common_attributes.rb, line 14 def firstname givenname.first end
Also aliased as: first_name
lastname()
click to toggle source
# File lib/ucb_ldap/person/common_attributes.rb, line 20 def lastname sn.first end
Also aliased as: last_name
namespaces()
click to toggle source
Returns Array
of Namespace
for this Person
. Requires a bind with access to namespaces. See UCB::LDAP.authenticate()
.
# File lib/ucb_ldap/person/common_attributes.rb, line 47 def namespaces warn "DEPRECATED: this is no longer supported by LDAP. This method will always return an empty Array" [] end
officialemail()
click to toggle source
# File lib/ucb_ldap/person/common_attributes.rb, line 30 def officialemail berkeleyEduOfficialEmail.first end
phone()
click to toggle source
# File lib/ucb_ldap/person/common_attributes.rb, line 34 def phone telephoneNumber.first end
services()
click to toggle source
Returns Array
of Service
for this Person
. Requires a bind with access to services. See UCB::LDAP.authenticate()
.
# File lib/ucb_ldap/person/common_attributes.rb, line 55 def services warn "DEPRECATED: this is no longer supported by LDAP. This method will always return an empty Array" [] end
test?()
click to toggle source
Returns true
if the entry represents a test entry.
# File lib/ucb_ldap/person/common_attributes.rb, line 6 def test? berkeleyEduTestIDFlag end
uid()
click to toggle source
Calls superclass method
# File lib/ucb_ldap/person/common_attributes.rb, line 10 def uid super.first end