Class BwPrincipalInfo

java.lang.Object
org.bedework.calfacade.BwPrincipalInfo
All Implemented Interfaces:
Serializable, Comparable<BwPrincipalInfo>, org.bedework.util.logging.Logged

public class BwPrincipalInfo extends Object implements org.bedework.util.logging.Logged, Comparable<BwPrincipalInfo>, Serializable
This class represent directory style information for the principal. It will be retrieved from a pluggable class.
Author:
douglm
See Also:
  • Field Details

  • Constructor Details

    • BwPrincipalInfo

      public BwPrincipalInfo()
      No-arg constructor
  • Method Details

    • setPrincipalHref

      public void setPrincipalHref(String val)
      Parameters:
      val - href
    • getPrincipalHref

      public String getPrincipalHref()
      Returns:
      String Principal entry
    • getCard

      public net.fortuna.ical4j.vcard.VCard getCard()
      Returns:
      associated vcard
    • getCardStr

      public String getCardStr()
      Returns:
      associated vcard as a string
    • setLastname

      public void setLastname(String val)
      Parameters:
      val - last name
    • getLastname

      public String getLastname()
      Returns:
      String last name
    • setFirstname

      public void setFirstname(String val)
      Parameters:
      val - first name
    • getFirstname

      public String getFirstname()
      Returns:
      String firstname
    • setPhone

      public void setPhone(String val)
      Parameters:
      val - phone
    • getPhone

      public String getPhone()
      Returns:
      String phone
    • setEmail

      public void setEmail(String val)
      Parameters:
      val - email
    • getEmail

      public String getEmail()
      Returns:
      String email
    • setDept

      public void setDept(String val)
      Parameters:
      val - department
    • getDept

      public String getDept()
      Returns:
      String dept
    • setKind

      public void setKind(String val)
      Parameters:
      val - kind
    • getKind

      public String getKind()
      Returns:
      String kind
    • getHasFullAccess

      public boolean getHasFullAccess()
      Returns:
      true if this user has full access - even if system default is subscriptions only
    • setCaladruri

      public void setCaladruri(String val)
      Parameters:
      val - caladr uri
    • getCaladruri

      public String getCaladruri()
    • setProperties

      public void setProperties(List<BwPrincipalInfo.PrincipalProperty<?>> val)
      The properties are any other properties thought to be useful. All of type PrincipalProperty.
      Parameters:
      val - properties
    • getProperties

      public List<BwPrincipalInfo.PrincipalProperty<?>> getProperties()
      Returns:
      Collection of UserProperty
    • setMembers

      public void setMembers(List<BwPrincipalInfo> val)
      The members of the group.
      Parameters:
      val - list of members
    • getMembers

      public List<BwPrincipalInfo> getMembers()
      Returns:
      Info on members
    • addProperty

      public void addProperty(BwPrincipalInfo.PrincipalProperty<?> val)
      Parameters:
      val - the property
    • findProperty

      public BwPrincipalInfo.PrincipalProperty<?> findProperty(String name)
      Parameters:
      name - of property
      Returns:
      first property found or null
    • getProperties

      public List<BwPrincipalInfo.PrincipalProperty<?>> getProperties(String name)
      Parameters:
      name - of property
      Returns:
      (Possibly empty) List of PrincipalProperty values with given name
    • addProperty

      public void addProperty(BwPrincipalInfo.PrincipalPropertyInfo pi, net.fortuna.ical4j.vcard.Property p)
      Parameters:
      pi - PrincipalPropertyInfo
      p - Property
    • getPrincipalPropertyInfoSet

      public static Collection<BwPrincipalInfo.PrincipalPropertyInfo> getPrincipalPropertyInfoSet()
      Returns:
      collection of PrincipalPropertyInfo
    • setPropertiesFromVCard

      public void setPropertiesFromVCard(String cardStr, String addrDataCtype)
      Parameters:
      cardStr - vcard as string
    • compareTo

      public int compareTo(BwPrincipalInfo that)
      Specified by:
      compareTo in interface Comparable<BwPrincipalInfo>
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getLogger

      public org.bedework.util.logging.BwLogger getLogger()
      Specified by:
      getLogger in interface org.bedework.util.logging.Logged