⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ldapuserprofile.java

📁 基于Jabber协议的即时消息服务器
💻 JAVA
📖 第 1 页 / 共 2 页
字号:
/** * $RCSfile$ * $Revision: $ * $Date: $ * * Copyright (C) 2006 Jive Software. All rights reserved. * * This software is published under the terms of the GNU Public License (GPL), * a copy of which is included in this distribution. */package org.jivesoftware.admin;import org.dom4j.*;import org.dom4j.io.OutputFormat;import org.jivesoftware.util.JiveGlobals;import org.jivesoftware.util.Log;import org.jivesoftware.util.XMLWriter;import org.jivesoftware.wildfire.ldap.LdapManager;import org.jivesoftware.wildfire.ldap.LdapVCardProvider;import java.io.IOException;import java.io.StringWriter;import java.util.Iterator;/** * Bean that stores the vcard mapping. It is also responsible for saving the mapping * as an XML property and retrieving it. * * @author Gaston Dombiak */public class LdapUserProfile {    private String name = "";    private String email = "";    private String fullName = "";    private String nickname = "";    private String birthday = "";    private String homeStreet = "";    private String homeCity = "";    private String homeState = "";    private String homeZip = "";    private String homeCountry = "";    private String homePhone = "";    private String homeMobile = "";    private String homeFax = "";    private String homePager = "";    private String businessStreet = "";    private String businessCity = "";    private String businessState = "";    private String businessZip = "";    private String businessCountry = "";    private String businessJobTitle = "";    private String businessDepartment = "";    private String businessPhone = "";    private String businessMobile = "";    private String businessFax = "";    private String businessPager = "";    public String getName() {        return name;    }    public void setName(String name) {        this.name = name;    }    public String getEmail() {        return email;    }    public void setEmail(String email) {        this.email = email;    }    public String getFullName() {        return fullName;    }    public void setFullName(String fullName) {        this.fullName = fullName;    }    public String getNickname() {        return nickname;    }    public void setNickname(String nickname) {        this.nickname = nickname;    }    public String getBirthday() {        return birthday;    }    public void setBirthday(String birthday) {        this.birthday = birthday;    }    public String getHomeStreet() {        return homeStreet;    }    public void setHomeStreet(String homeStreet) {        this.homeStreet = homeStreet;    }    public String getHomeCity() {        return homeCity;    }    public void setHomeCity(String homeCity) {        this.homeCity = homeCity;    }    public String getHomeState() {        return homeState;    }    public void setHomeState(String homeState) {        this.homeState = homeState;    }    public String getHomeZip() {        return homeZip;    }    public void setHomeZip(String homeZip) {        this.homeZip = homeZip;    }    public String getHomeCountry() {        return homeCountry;    }    public void setHomeCountry(String homeCountry) {        this.homeCountry = homeCountry;    }    public String getHomePhone() {        return homePhone;    }    public void setHomePhone(String homePhone) {        this.homePhone = homePhone;    }    public String getHomeMobile() {        return homeMobile;    }    public void setHomeMobile(String homeMobile) {        this.homeMobile = homeMobile;    }    public String getHomeFax() {        return homeFax;    }    public void setHomeFax(String homeFax) {        this.homeFax = homeFax;    }    public String getHomePager() {        return homePager;    }    public void setHomePager(String homePager) {        this.homePager = homePager;    }    public String getBusinessStreet() {        return businessStreet;    }    public void setBusinessStreet(String businessStreet) {        this.businessStreet = businessStreet;    }    public String getBusinessCity() {        return businessCity;    }    public void setBusinessCity(String businessCity) {        this.businessCity = businessCity;    }    public String getBusinessState() {        return businessState;    }    public void setBusinessState(String businessState) {        this.businessState = businessState;    }    public String getBusinessZip() {        return businessZip;    }    public void setBusinessZip(String businessZip) {        this.businessZip = businessZip;    }    public String getBusinessCountry() {        return businessCountry;    }    public void setBusinessCountry(String businessCountry) {        this.businessCountry = businessCountry;    }    public String getBusinessJobTitle() {        return businessJobTitle;    }    public void setBusinessJobTitle(String businessJobTitle) {        this.businessJobTitle = businessJobTitle;    }    public String getBusinessDepartment() {        return businessDepartment;    }    public void setBusinessDepartment(String businessDepartment) {        this.businessDepartment = businessDepartment;    }    public String getBusinessPhone() {        return businessPhone;    }    public void setBusinessPhone(String businessPhone) {        this.businessPhone = businessPhone;    }    public String getBusinessMobile() {        return businessMobile;    }    public void setBusinessMobile(String businessMobile) {        this.businessMobile = businessMobile;    }    public String getBusinessFax() {        return businessFax;    }    public void setBusinessFax(String businessFax) {        this.businessFax = businessFax;    }    public String getBusinessPager() {        return businessPager;    }    public void setBusinessPager(String businessPager) {        this.businessPager = businessPager;    }    /**     * Sets default mapping values when using an Active Directory server.     */    public void initForActiveDirectory() {        name = "{cn}";        email = "{mail}";        fullName = "{displayName}";        nickname = "";        birthday = "";        homeStreet = "{homePostalAddress}";        homeCity = "";        homeState = "";        homeZip = "{homeZip}";        homeCountry = "{co}";        homePhone = "{homePhone}";        homeMobile = "{mobile}";        homeFax = "";        homePager = "";        businessStreet = "{streetAddress}";        businessCity = "{l}";        businessState = "{st}";        businessZip = "{postalCode}";        businessCountry = "{co}";        businessJobTitle = "{title}";        businessDepartment = "{department}";        businessPhone = "{telephoneNumber}";        businessMobile = "{mobile}";        businessFax = "{facsimileTelephoneNumber}";        businessPager = "{pager}";    }    /**     * Sets default mapping values when using an Active Directory server.     */    public void initForOpenLDAP() {        name = "{cn}";        email = "{mail}";        fullName = "{displayName}";        nickname = "{uid}";        birthday = "";        homeStreet = "{homePostalAddress}";        homeCity = "";        homeState = "";        homeZip = "";        homeCountry = "";        homePhone = "{homePhone}";

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -