Package org.bedework.calfacade
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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classClass for boolean properties.static classClass for image properties.static classInfo about an imagestatic classClass for int properties.static classClass for properties collection.static classInfo about properties -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final booleanprotected Stringstatic final intstatic final intstatic final intstatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidaddProperty(BwPrincipalInfo.PrincipalPropertyInfo pi, net.fortuna.ical4j.vcard.Property p) intcompareTo(BwPrincipalInfo that) booleanfindProperty(String name) net.fortuna.ical4j.vcard.VCardgetCard()getDept()getEmail()booleangetKind()org.bedework.util.logging.BwLoggergetPhone()getProperties(String name) inthashCode()voidsetCaladruri(String val) voidvoidvoidsetFirstname(String val) voidvoidsetLastname(String val) voidsetMembers(List<BwPrincipalInfo> val) The members of the group.voidvoidsetPrincipalHref(String val) voidThe properties are any other properties thought to be useful.voidsetPropertiesFromVCard(String cardStr, String addrDataCtype) toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.bedework.util.logging.Logged
audit, debug, debug, debug, enableAuditLogger, enableErrorLogger, enableMetricsLogger, error, error, error, getLogLevel, info, isAuditLoggerEnabled, isErrorLoggerEnabled, isMetricsDebugEnabled, isMetricsLoggerEnabled, metrics, setLoggerClass, setLoggerClass, trace, trace, trace, warn
-
Field Details
-
principalHref
-
ptypeString
public static final int ptypeString- See Also:
-
ptypeInt
public static final int ptypeInt- See Also:
-
ptypeBoolean
public static final int ptypeBoolean- See Also:
-
ptypeImage
public static final int ptypeImage- See Also:
-
isMulti
public static final boolean isMulti- See Also:
-
-
Constructor Details
-
BwPrincipalInfo
public BwPrincipalInfo()No-arg constructor
-
-
Method Details
-
setPrincipalHref
- Parameters:
val- href
-
getPrincipalHref
- Returns:
- String Principal entry
-
getCard
public net.fortuna.ical4j.vcard.VCard getCard()- Returns:
- associated vcard
-
getCardStr
- Returns:
- associated vcard as a string
-
setLastname
- Parameters:
val- last name
-
getLastname
- Returns:
- String last name
-
setFirstname
- Parameters:
val- first name
-
getFirstname
- Returns:
- String firstname
-
setPhone
- Parameters:
val- phone
-
getPhone
- Returns:
- String phone
-
setEmail
- Parameters:
val- email
-
getEmail
- Returns:
- String email
-
setDept
- Parameters:
val- department
-
getDept
- Returns:
- String dept
-
setKind
- Parameters:
val- kind
-
getKind
- Returns:
- String kind
-
getHasFullAccess
public boolean getHasFullAccess()- Returns:
- true if this user has full access - even if system default is subscriptions only
-
setCaladruri
- Parameters:
val- caladr uri
-
getCaladruri
-
setProperties
The properties are any other properties thought to be useful. All of type PrincipalProperty.- Parameters:
val- properties
-
getProperties
- Returns:
- Collection of UserProperty
-
setMembers
The members of the group.- Parameters:
val- list of members
-
getMembers
- Returns:
- Info on members
-
addProperty
- Parameters:
val- the property
-
findProperty
- Parameters:
name- of property- Returns:
- first property found or null
-
getProperties
- 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- PrincipalPropertyInfop- Property
-
getPrincipalPropertyInfoSet
- Returns:
- collection of PrincipalPropertyInfo
-
setPropertiesFromVCard
- Parameters:
cardStr- vcard as string
-
compareTo
- Specified by:
compareToin interfaceComparable<BwPrincipalInfo>
-
equals
-
hashCode
public int hashCode() -
toString
-
getLogger
public org.bedework.util.logging.BwLogger getLogger()- Specified by:
getLoggerin interfaceorg.bedework.util.logging.Logged
-