Package org.bedework.carddav.server.jmx
Class DirHandlerConf
java.lang.Object
org.bedework.util.jmx.ConfBase<DirHandlerConfig>
org.bedework.carddav.server.jmx.DirHandlerConf
- All Implemented Interfaces:
DirHandlerConfMBean,org.bedework.util.jmx.BaseMBean,org.bedework.util.jmx.ConfBaseMBean,org.bedework.util.logging.Logged
- Direct Known Subclasses:
DbDirHandlerConf,LdapDirHandlerConf
public class DirHandlerConf
extends org.bedework.util.jmx.ConfBase<DirHandlerConfig>
implements DirHandlerConfMBean
- Author:
- douglm
-
Field Summary
Fields inherited from class org.bedework.util.jmx.ConfBase
cfg, statusDone, statusFailed, statusInterrupted, statusRunning, statusStopped, statusTimedout, statusUnknown -
Constructor Summary
ConstructorsConstructorDescriptionDirHandlerConf(String serviceName, org.bedework.util.config.ConfigurationStore store, String configName) -
Method Summary
Modifier and TypeMethodDescriptionbooleanTrue if this prefix represents an addressbook.If set defines the default kind in this directoryGet the cardPathPrefixGet the cardPathPrefixesget the interface implementationgetConf()booleanTrue if this prefix represents a directory.The href for the ownerGet the pathPrefixGet the pathPrefixvoidsetAddressBook(boolean val) voidsetCardKind(String val) If set defines the default kind in this directoryvoidsetCardPathPrefix(String val) Set the cardPathPrefix which defines the prefix for principal cards.voidSet the cardPathPrefixes which defines the prefixes for principal cards based on an account prefix.voidsetClassName(String val) Set the interface implementationvoidsetConfig(DirHandlerConfig<?> cfg) voidsetDirectory(boolean val) voidsetOwnerHref(String val) The href for the ownervoidsetPathPrefix(String val) Set the pathPrefix which defines the paths for which we call this handler.voidsetPrincipalPrefix(String val) Set the prefix for principals which correspond to cards within this hierarchyMethods inherited from class org.bedework.util.jmx.ConfBase
createObjectName, ensureDir, getConfig, getConfigDirectory, getConfigInfo, getConfigInfo, getConfigInfo, getConfigName, getLogger, getManagementContext, getPathSuffix, getRegisteredMBeans, getServiceName, getServiceObjectName, getStatus, getStore, isRunning, loadConfig, makeObject, register, register, saveConfig, setStatus, setStore, start, stop, unregister, unregisterMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.bedework.util.jmx.BaseMBean
getServiceName, isRunning, start, stopMethods inherited from interface org.bedework.util.jmx.ConfBaseMBean
getConfigName, getStatus, saveConfig, setStatusMethods inherited from interface org.bedework.util.logging.Logged
audit, debug, debug, debug, enableAuditLogger, enableErrorLogger, enableMetricsLogger, error, error, error, getLogLevel, info, info, isAuditLoggerEnabled, isErrorLoggerEnabled, isMetricsDebugEnabled, isMetricsLoggerEnabled, metrics, setLoggerClass, setLoggerClass, trace, trace, trace, warn, warn
-
Constructor Details
-
DirHandlerConf
-
-
Method Details
-
setConfig
- Parameters:
cfg-
-
loadConfig
- Specified by:
loadConfigin classorg.bedework.util.jmx.ConfBase<DirHandlerConfig>
-
setPathPrefix
Description copied from interface:DirHandlerConfMBeanSet the pathPrefix which defines the paths for which we call this handler.- Specified by:
setPathPrefixin interfaceDirHandlerConfMBean- Parameters:
val- String
-
getPathPrefix
Description copied from interface:DirHandlerConfMBeanGet the pathPrefix- Specified by:
getPathPrefixin interfaceDirHandlerConfMBean- Returns:
- String
-
setPrincipalPrefix
Description copied from interface:DirHandlerConfMBeanSet the prefix for principals which correspond to cards within this hierarchyFor example "/principals.users" might be a principal prefix handled by "/directory/users"
- Specified by:
setPrincipalPrefixin interfaceDirHandlerConfMBean- Parameters:
val- String path
-
getPrincipalPrefix
Description copied from interface:DirHandlerConfMBeanGet the pathPrefix- Specified by:
getPrincipalPrefixin interfaceDirHandlerConfMBean- Returns:
- String path
-
setCardPathPrefix
Description copied from interface:DirHandlerConfMBeanSet the cardPathPrefix which defines the prefix for principal cards.- Specified by:
setCardPathPrefixin interfaceDirHandlerConfMBean- Parameters:
val- String
-
getCardPathPrefix
Description copied from interface:DirHandlerConfMBeanGet the cardPathPrefix- Specified by:
getCardPathPrefixin interfaceDirHandlerConfMBean- Returns:
- String
-
setCardPathPrefixes
Description copied from interface:DirHandlerConfMBeanSet the cardPathPrefixes which defines the prefixes for principal cards based on an account prefix.- Specified by:
setCardPathPrefixesin interfaceDirHandlerConfMBean- Parameters:
val- String
-
getCardPathPrefixes
Description copied from interface:DirHandlerConfMBeanGet the cardPathPrefixes- Specified by:
getCardPathPrefixesin interfaceDirHandlerConfMBean- Returns:
- prefixes
-
setAddressBook
public void setAddressBook(boolean val) - Specified by:
setAddressBookin interfaceDirHandlerConfMBean- Parameters:
val- True if this prefix represents an addressbook.
-
getAddressBook
public boolean getAddressBook()Description copied from interface:DirHandlerConfMBeanTrue if this prefix represents an addressbook.- Specified by:
getAddressBookin interfaceDirHandlerConfMBean- Returns:
- boolean
-
setDirectory
public void setDirectory(boolean val) - Specified by:
setDirectoryin interfaceDirHandlerConfMBean- Parameters:
val- True if this prefix represents a directory.
-
getDirectory
public boolean getDirectory()Description copied from interface:DirHandlerConfMBeanTrue if this prefix represents a directory.- Specified by:
getDirectoryin interfaceDirHandlerConfMBean- Returns:
- boolean
-
setClassName
Description copied from interface:DirHandlerConfMBeanSet the interface implementation- Specified by:
setClassNamein interfaceDirHandlerConfMBean- Parameters:
val- String
-
getClassName
Description copied from interface:DirHandlerConfMBeanget the interface implementation- Specified by:
getClassNamein interfaceDirHandlerConfMBean- Returns:
- String
-
setOwnerHref
Description copied from interface:DirHandlerConfMBeanThe href for the owner- Specified by:
setOwnerHrefin interfaceDirHandlerConfMBean- Parameters:
val- String
-
getOwnerHref
Description copied from interface:DirHandlerConfMBeanThe href for the owner- Specified by:
getOwnerHrefin interfaceDirHandlerConfMBean- Returns:
- String
-
setCardKind
Description copied from interface:DirHandlerConfMBeanIf set defines the default kind in this directory- Specified by:
setCardKindin interfaceDirHandlerConfMBean- Parameters:
val- String
-
getCardKind
Description copied from interface:DirHandlerConfMBeanIf set defines the default kind in this directory- Specified by:
getCardKindin interfaceDirHandlerConfMBean- Returns:
- String
-
getConf
- Returns:
- current state of config
-