Package org.bedework.calfacade
Class BwSystem
java.lang.Object
- All Implemented Interfaces:
Serializable,Comparable<BwSystem>,Comparator<BwSystem>,PropertiesEntity,org.bedework.util.logging.Logged
public class BwSystem
extends BwDbentity<BwSystem>
implements PropertiesEntity, Comparator<BwSystem>
System settings for an instance of bedework as represented by a single
database. These settings may be changed by the super user but most should
not be changed after system initialisation.
- Author:
- Mike Douglass douglm@bedework.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 TypeMethodDescriptionvoidaddContext(SubContext sc) voidaddProperty(BwProperty val) clone()Make visibleintintfindContext(String name) findProperty(String name) getHref()getName()Get the system's name.intgetProperties(String name) getProperty(String name) Get the single valued named propertygetQproperty(QName name) inthashCode()voidvoidremoveProperties(String name) Remove all with given namebooleanremoveProperty(BwProperty val) voidSet the hrefvoidSet the system's namevoidsetProperties(Set<BwProperty> val) voidsetProperty(String name, String val) Set the single valued named propertyvoidsetQproperty(QName name, String val) toString()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
equals, getId, markUnsaved, 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 java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongMethods 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
-
BwSystem
public BwSystem()
-
-
Method Details
-
setName
Set the system's name- Parameters:
val- String system name
-
getName
Get the system's name.- Returns:
- String system's name
-
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
-
setProperty
Set the single valued named property- Parameters:
name- of propertyval- value
-
getProperty
Get the single valued named property- Parameters:
name- of property- Returns:
- String calendar color
-
getContexts
- Returns:
- set of contexts - empty if none defined
-
addContext
- Parameters:
sc- new sub-context
-
removeContext
- Parameters:
sc- sub-context
-
findContext
- Parameters:
name- of sub-context- Returns:
- Sub-context matching the given name or null.
-
setQproperty
- Parameters:
name- of propertyval- value
-
getQproperty
- Parameters:
name- of property- Returns:
- value or null
-
setHref
Set the href- Overrides:
setHrefin classBwUnversionedDbentity<BwSystem>- Parameters:
val- String href
-
getHref
- Overrides:
getHrefin classBwUnversionedDbentity<BwSystem>- Returns:
- non null unique href for the entity
-
compare
- Specified by:
comparein interfaceComparator<BwSystem>
-
compareTo
- Specified by:
compareToin interfaceComparable<BwSystem>- Overrides:
compareToin classBwUnversionedDbentity<BwSystem>
-
hashCode
public int hashCode()- Overrides:
hashCodein classBwUnversionedDbentity<BwSystem>
-
toString
-
clone
Description copied from class:BwUnversionedDbentityMake visible- Overrides:
clonein classBwUnversionedDbentity<BwSystem>- Returns:
- Object of class T
-