Package org.bedework.calfacade.svc
Class BwView
java.lang.Object
- All Implemented Interfaces:
Serializable,Comparable<BwView>,org.bedework.util.logging.Logged
A view in Bedework. This is a named collection of collections used to
provide different views of the events.
- Author:
- Mike Douglass douglm rpi.edu
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bedework.calfacade.base.DumpEntity
DumpEntity.DumpType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCollectionPath(String val) Add a collection pathintComapre this view and an objectGet the collection paths for this viewbooleanorg.bedework.caldav.util.filter.FilterBasegetName()Get the nameinthashCode()voidRemove a collection pathvoidsetCollectionPaths(List<String> val) List of collection paths for this viewvoidsetCollections(List<BwCalendar> val) voidsetConjunction(boolean val) voidsetFilter(org.bedework.caldav.util.filter.FilterBase val) voidSet the nametoString()Methods 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, equals, getHref, getId, markUnsaved, setHref, setId, toStringSegment, 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
-
Constructor Details
-
BwView
public BwView()Constructor
-
-
Method Details
-
setName
Set the name- Parameters:
val- String name
-
getName
Get the name- Returns:
- String name
-
setCollectionPaths
List of collection paths for this view- Parameters:
val- List of string paths
-
getCollectionPaths
Get the collection paths for this view- Returns:
- List of String
-
addCollectionPath
Add a collection path- Parameters:
val- a collection path
-
removeCollectionPath
Remove a collection path- Parameters:
val- a collection path
-
setConjunction
public void setConjunction(boolean val) - Parameters:
val- true if we AND the expressions for each path
-
getConjunction
public boolean getConjunction()- Returns:
- true if we AND the expressions for each path
-
setFilter
public void setFilter(org.bedework.caldav.util.filter.FilterBase val) - Parameters:
val- the filter or null
-
getFilter
public org.bedework.caldav.util.filter.FilterBase getFilter()- Returns:
- the filter or null
-
setCollections
- Parameters:
val- the list of collections or null
-
getCollections
-
compareTo
Comapre this view and an object- Specified by:
compareToin interfaceComparable<BwView>- Overrides:
compareToin classBwUnversionedDbentity<BwView>- Parameters:
that- object to compare.- Returns:
- int -1, 0, 1
-
hashCode
public int hashCode()- Overrides:
hashCodein classBwUnversionedDbentity<BwView>
-
toString
-