Package org.bedework.calfacade.svc
Class BwPreferences
java.lang.Object
- All Implemented Interfaces:
Serializable,Comparable<BwPreferences>,OwnedEntity,PropertiesEntity,org.bedework.util.logging.Logged
Account preferences for Bedework. These affect the user view of calendars.
- Version:
- 1.0
- Author:
- Mike Douglass douglm rpi.edu
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classNested classes/interfaces inherited from class org.bedework.calfacade.base.DumpEntity
DumpEntity.DumpType -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intValue identifying an advanced user mode - reveal it in all its glorystatic final intValue identifying an extra simple user mode - we just do stuff without askingstatic final intMax mode valuestatic final Stringstatic final Stringstatic final Stringadmin clear form on submitstatic final Stringdefault admin resources directorystatic final Stringpath to attachments folderstatic final Stringapprovers for this calsuitestatic final Stringcategory mapping for this calsuitestatic final Stringpreferred localestatic final Stringdefault image directorystatic final Stringdefault timezone idstatic final Stringdefault view-mode grid, daily, liststatic final Stringlast localestatic final StringXXX Only here till we update schema max entity size for this user -only settable by adminstatic final StringNotification tokenstatic final Stringpreferred group - admin suggest event - this may occur multiple timesstatic final Stringpreferred localestatic final StringXXX Only here till we update schema current quota usedstatic final Stringscheduling max-instancesstatic final Stringdefault suite resources directorystatic final StringUser want notifications suppressed?static intDelete canceled meetingsstatic intSet status to cancelledstatic intDon't leave any notification for acceptsstatic intDon't leave any notificationstatic intNotify for all responsesstatic intstatic intstatic final intValue identifying a simple user mode - we hide some stuff but make fewer assumptionsprotected Collection<BwView>Collection of BwView -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPreferredGroup(String href) Add a preferred group.voidaddProperty(BwProperty val) booleanorg.bedework.util.misc.response.GetEntityResponse<BwPreferences.CategoryMappings>checkCategoryMappings(String mappings) intcompareTo(BwPreferences that) Comapre this view and an objectbooleanfindProperty(String name) Get the set of default category uids.getEmail()booleangetHref()longXXX only till we change schema and move this into principal objectbooleanintintGet the set of preferred groups.getProperties(String name) longXXX only till we change schema and move this into principal objectstatic org.bedework.util.xml.FromXmlCallbackintintbooleanbooleanintgetViews()Get the calendars principal is subscribed tointGet the workday end as a 4 digit String hours and minutes valueintGet the workday start as a 4 digit String hours and minutes valueinthashCode()org.bedework.util.misc.response.GetEntityResponse<BwPreferences.CategoryMappings>voidremoveProperties(String name) Remove all with given namebooleanremoveProperty(BwProperty val) voidvoidsetAttachmentsPath(String val) voidvoidsetCategoryMapping(String val) voidvoidvoidsetDefaultCategoryUids(Set<String> val) Supply the set of default category uids.voidvoidsetDefaultTzid(String val) voidsetDefaultViewMode(String val) voidvoidsetHour24(boolean val) voidSet the href - ignoredvoidsetMaxEntitySize(long val) XXX only till we change schema and move this into principal objectvoidsetNoNotifications(boolean val) voidvoidsetPageSize(int val) voidvoidsetPreferredView(String val) voidThe value should be a non-internationalized String out of "today", "day", "week", "month", "year".voidsetProperties(Set<BwProperty> val) voidsetQuotaUsed(long val) XXX only till we change schema and move this into principal objectvoidsetScheduleAutoCancelAction(int val) voidsetScheduleAutoProcessResponses(int val) voidsetScheduleAutoRespond(boolean val) voidsetScheduleDoubleBook(boolean val) voidsetSkinName(String val) voidsetSkinStyle(String val) voidvoidsetUserMode(int val) voidsetViews(Collection<BwView> val) Set of views principal has definedvoidsetWorkdayEnd(int val) voidsetWorkdayEndTime(String val) Set the workday end minutes from a String time valuevoidsetWorkDays(String val) voidsetWorkdayStart(int val) voidSet the workday start minutes from a String time valuetoString()Methods inherited from class org.bedework.calfacade.base.BwOwnedDbentity
copyTo, getOwnerHref, getPublick, setOwnerHref, setPublick, shallowCopyTo, toStringSegmentMethods inherited from class org.bedework.calfacade.base.BwDbentity
addDeletedEntity, afterDeletion, beforeDeletion, beforeSave, beforeUpdate, getByteSize, getDeletedEntities, getSeq, length, setByteSize, setSeqMethods inherited from class org.bedework.calfacade.base.BwUnversionedDbentity
clone, getId, markUnsaved, setId, unsavedMethods inherited from class org.bedework.calfacade.base.DumpEntity
dump, dump, getLogger, hasDumpValueMethods inherited from class java.lang.Object
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
-
views
Collection of BwView -
preferredEndTypeDuration
- See Also:
-
preferredEndTypeDate
- See Also:
-
basicMode
public static final int basicModeValue identifying an extra simple user mode - we just do stuff without asking- See Also:
-
simpleMode
public static final int simpleModeValue identifying a simple user mode - we hide some stuff but make fewer assumptions- See Also:
-
advancedMode
public static final int advancedModeValue identifying an advanced user mode - reveal it in all its glory- See Also:
-
maxMode
public static final int maxModeMax mode value- See Also:
-
scheduleAutoCancelSetStatus
public static int scheduleAutoCancelSetStatusSet status to cancelled -
scheduleAutoCancelDelete
public static int scheduleAutoCancelDeleteDelete canceled meetings -
scheduleMaxAutoCancel
public static int scheduleMaxAutoCancel -
scheduleAutoProcessResponsesNoAcceptNotify
public static int scheduleAutoProcessResponsesNoAcceptNotifyDon't leave any notification for accepts -
scheduleAutoProcessResponsesNotifyAll
public static int scheduleAutoProcessResponsesNotifyAllNotify for all responses -
scheduleAutoProcessResponsesNoNotify
public static int scheduleAutoProcessResponsesNoNotifyDon't leave any notification -
scheduleMaxAutoProcessResponses
public static int scheduleMaxAutoProcessResponses -
propertyPreferredLocale
preferred locale- See Also:
-
propertyDefaultViewMode
default view-mode grid, daily, list- See Also:
-
propertyLastLocale
last locale- See Also:
-
propertyCategoryMapping
category mapping for this calsuite- See Also:
-
propertyCalsuiteApprovers
approvers for this calsuite- See Also:
-
propertyAttachmentsFolder
path to attachments folder- See Also:
-
propertyDefaultTzid
default timezone id- See Also:
-
propertyDefaultCategory
preferred locale- See Also:
-
propertyScheduleMaxinstances
scheduling max-instances- See Also:
-
propertyDefaultImageDirectory
default image directory- See Also:
-
propertyAdminResourcesDirectory
default admin resources directory- See Also:
-
propertySuiteResourcesDirectory
default suite resources directory- See Also:
-
propertyAdminClearFormsOnSubmit
admin clear form on submit- See Also:
-
propertyPreferredGroup
preferred group - admin suggest event - this may occur multiple times- See Also:
-
propertyNotificationToken
Notification token- See Also:
-
propertySuppressNotifications
User want notifications suppressed?- See Also:
-
propertyMaxEntitySize
XXX Only here till we update schema max entity size for this user -only settable by admin- See Also:
-
propertyQuotaUsed
XXX Only here till we update schema current quota used- See Also:
-
-
Constructor Details
-
BwPreferences
public BwPreferences()Constructor
-
-
Method Details
-
setViews
Set of views principal has defined- Parameters:
val- Collection of BwView
-
getViews
Get the calendars principal is subscribed to- Returns:
- Collection of BwView
-
setEmail
- Parameters:
val- String email
-
getEmail
- Returns:
- String email
-
setDefaultCalendarPath
- Parameters:
val- default calendar path
-
getDefaultCalendarPath
- Returns:
- String default calendar path
-
setSkinName
- Parameters:
val- skin name
-
getSkinName
- Returns:
- String skin name
-
setSkinStyle
- Parameters:
val- skin style
-
getSkinStyle
- Returns:
- String skin style
-
setPreferredView
- Parameters:
val- preferred view
-
getPreferredView
- Returns:
- String preferred view
-
setPreferredViewPeriod
The value should be a non-internationalized String out of "today", "day", "week", "month", "year". The user interface can present language appropriate labels.- Parameters:
val- preferred view period
-
getPreferredViewPeriod
- Returns:
- String preferred view period
-
setPageSize
public void setPageSize(int val) - Parameters:
val- number of results in search result page
-
getPageSize
public int getPageSize()- Returns:
- number of results in search result page
-
setWorkDays
- Parameters:
val- work days
-
getWorkDays
- Returns:
- String work days
-
setWorkdayStart
public void setWorkdayStart(int val) - Parameters:
val- day number for start of week
-
getWorkdayStart
public int getWorkdayStart()- Returns:
- int work day start
-
setWorkdayEnd
public void setWorkdayEnd(int val) - Parameters:
val- day number for end of week
-
getWorkdayEnd
public int getWorkdayEnd()- Returns:
- int work day end
-
setPreferredEndType
- Parameters:
val- preferred end type
-
getPreferredEndType
- Returns:
- String preferred end type (none, duration, date/time)
-
setUserMode
public void setUserMode(int val) - Parameters:
val- user mode code
-
getUserMode
public int getUserMode()- Returns:
- int user mode
-
setHour24
public void setHour24(boolean val) - Parameters:
val- true for 24 hour
-
getHour24
public boolean getHour24()- Returns:
- bool
-
setScheduleAutoRespond
public void setScheduleAutoRespond(boolean val) - Parameters:
val- true for auto respond
-
getScheduleAutoRespond
public boolean getScheduleAutoRespond()- Returns:
- bool
-
setScheduleAutoCancelAction
public void setScheduleAutoCancelAction(int val) - Parameters:
val- auto cancel action code
-
getScheduleAutoCancelAction
public int getScheduleAutoCancelAction()- Returns:
- int
-
setScheduleDoubleBook
public void setScheduleDoubleBook(boolean val) - Parameters:
val- true if double booking allowed
-
getScheduleDoubleBook
public boolean getScheduleDoubleBook()- Returns:
- bool
-
setScheduleAutoProcessResponses
public void setScheduleAutoProcessResponses(int val) - Parameters:
val- response action code
-
getScheduleAutoProcessResponses
public int getScheduleAutoProcessResponses()- Returns:
- int
-
setProperties
- Specified by:
setPropertiesin interfacePropertiesEntity
-
getProperties
- Specified by:
getPropertiesin interfacePropertiesEntity- Returns:
- properties
-
getProperties
- Specified by:
getPropertiesin interfacePropertiesEntity- Returns:
- properties with given name
-
removeProperties
Description copied from interface:PropertiesEntityRemove all with given name- Specified by:
removePropertiesin interfacePropertiesEntity
-
getNumProperties
public int getNumProperties()- Specified by:
getNumPropertiesin interfacePropertiesEntity- Returns:
- int
-
findProperty
- Specified by:
findPropertyin interfacePropertiesEntity- Returns:
- property or null
-
addProperty
- Specified by:
addPropertyin interfacePropertiesEntity
-
removeProperty
- Specified by:
removePropertyin interfacePropertiesEntity- Returns:
- boolean
-
copyProperties
- Specified by:
copyPropertiesin interfacePropertiesEntity- Returns:
- BwProperty
-
cloneProperties
- Specified by:
clonePropertiesin interfacePropertiesEntity- Returns:
- BwProperty
-
setCategoryMapping
- Parameters:
val- yaml style category mapping.
-
getCategoryMapping
- Returns:
- yaml style category mapping.
-
readCategoryMappings
public org.bedework.util.misc.response.GetEntityResponse<BwPreferences.CategoryMappings> readCategoryMappings() -
checkCategoryMappings
public org.bedework.util.misc.response.GetEntityResponse<BwPreferences.CategoryMappings> checkCategoryMappings(String mappings) -
setCalsuiteApprovers
- Parameters:
val- Comma separated calsuite approvers.
-
getCalsuiteApprovers
- Returns:
- Comma separated calsuite approvers.
-
getCalsuiteApproversList
- Returns:
- List from approvers.
-
setAttachmentsPath
- Parameters:
val- String path.
-
getAttachmentsPath
- Returns:
- String path.
-
setDefaultImageDirectory
- Parameters:
val- String path.
-
getDefaultImageDirectory
- Returns:
- String path.
-
setAdminResourcesDirectory
- Parameters:
val- String path.
-
getAdminResourcesDirectory
- Returns:
- String path.
-
setSuiteResourcesDirectory
- Parameters:
val- String path.
-
getSuiteResourcesDirectory
- Returns:
- String path.
-
setClearFormsOnSubmit
- Parameters:
val- String clear form pref - null for default.
-
getClearFormsOnSubmit
- Returns:
- String clear form pref.
-
setDefaultViewMode
- Parameters:
val- String ViewMode.
-
getDefaultViewMode
- Returns:
- String ViewMode.
-
setDefaultTzid
- Parameters:
val- String tzid.
-
getDefaultTzid
- Returns:
- String tzid.
-
setMaxEntitySize
public void setMaxEntitySize(long val) XXX only till we change schema and move this into principal object- Parameters:
val- long max entity size.
-
getMaxEntitySize
public long getMaxEntitySize()XXX only till we change schema and move this into principal object- Returns:
- long max entity size.
-
setQuotaUsed
public void setQuotaUsed(long val) XXX only till we change schema and move this into principal object- Parameters:
val- long quota used.
-
getQuotaUsed
public long getQuotaUsed()XXX only till we change schema and move this into principal object- Returns:
- long quota used.
-
setDefaultCategoryUids
Supply the set of default category uids. Will replace the current set.- Parameters:
val- Set of category uids.
-
getDefaultCategoryUids
Get the set of default category uids.- Returns:
- Set of category uids - always non-null.
-
getPreferredGroups
Get the set of preferred groups.- Returns:
- Set of group hrefs - always non-null.
-
addPreferredGroup
Add a preferred group.- Parameters:
href- group href
-
setNotificationToken
- Parameters:
val- String Notification Token.
-
getNotificationToken
- Returns:
- String Notification Token.
-
setNoNotifications
public void setNoNotifications(boolean val) - Parameters:
val- No Notifications?
-
getNoNotifications
public boolean getNoNotifications()- Returns:
- No Notifications?
-
setHref
Set the href - ignored- Overrides:
setHrefin classBwUnversionedDbentity<BwPreferences>- Parameters:
val- String href
-
getHref
- Overrides:
getHrefin classBwUnversionedDbentity<BwPreferences>- Returns:
- non null unique href for the entity
-
addView
- Parameters:
val- - the view- Returns:
- boolean true if removed
-
setWorkdayStartTime
Set the workday start minutes from a String time value- Parameters:
val- String time value
-
getWorkdayStartTime
Get the workday start as a 4 digit String hours and minutes value- Returns:
- String work day start time
-
setWorkdayEndTime
Set the workday end minutes from a String time value- Parameters:
val- String time value
-
getWorkdayEndTime
Get the workday end as a 4 digit String hours and minutes value- Returns:
- String work day end time
-
compareTo
Comapre this view and an object- Specified by:
compareToin interfaceComparable<BwPreferences>- Overrides:
compareToin classBwUnversionedDbentity<BwPreferences>- Parameters:
that- object to compare.- Returns:
- int -1, 0, 1
-
hashCode
public int hashCode()- Overrides:
hashCodein classBwUnversionedDbentity<BwPreferences>
-
equals
- Overrides:
equalsin classBwUnversionedDbentity<BwPreferences>
-
toString
-
getRestoreCallback
public static org.bedework.util.xml.FromXmlCallback getRestoreCallback()
-