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
-
-
Constructor Summary
Constructors Constructor Description DirHandlerConf()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleangetAddressBook()True if this prefix represents an addressbook.StringgetCardKind()If set defines the default kind in this directoryStringgetCardPathPrefix()Get the cardPathPrefixStringgetCardPathPrefixes()Get the cardPathPrefixesStringgetClassName()get the interface implementationDirHandlerConfiggetConf()booleangetDirectory()True if this prefix represents a directory.StringgetOwnerHref()The href for the ownerStringgetPathPrefix()Get the pathPrefixStringgetPrincipalPrefix()Get the pathPrefixvoidinit(org.bedework.util.config.ConfigurationStore configStore, DirHandlerConfig cfg, String serviceName, String configName)StringloadConfig()voidsetAddressBook(boolean val)True if this prefix represents an addressbook.voidsetCardKind(String val)If set defines the default kind in this directoryvoidsetCardPathPrefix(String val)Set the cardPathPrefix which defines the prefix for principal cards.voidsetCardPathPrefixes(String val)Set the cardPathPrefixes which defines the prefixes for principal cards based on an account prefix.voidsetClassName(String val)Set the interface implementationvoidsetDirectory(boolean val)True if this prefix represents a directory.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 hierarchy-
Methods inherited from class org.bedework.util.jmx.ConfBase
createObjectName, getConfig, getConfigInfo, getConfigInfo, getConfigInfo, getConfigName, getConfigPname, getConfigUri, getLogger, getManagementContext, getPathSuffix, getRegisteredMBeans, getServiceName, getServiceObjectName, getStatus, getStore, isRunning, loadConfig, loadOnlyConfig, makeObject, register, register, saveConfig, setConfigName, setConfigPname, setConfigUri, setPathSuffix, setServiceName, setStatus, setStore, start, stop, unregister, unregister
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.bedework.util.jmx.BaseMBean
getServiceName, isRunning, start, stop
-
Methods inherited from interface org.bedework.util.jmx.ConfBaseMBean
getConfigName, getStatus, saveConfig, setConfigName, setStatus
-
Methods inherited from interface org.bedework.util.logging.Logged
audit, debug, debug, enableAuditLogger, enableErrorLogger, enableMetricsLogger, error, error, error, getLogLevel, info, isAuditLoggerEnabled, isErrorLoggerEnabled, isMetricsDebugEnabled, isMetricsLoggerEnabled, metrics, setLoggerClass, setLoggerClass, setLogLevel, trace, trace, warn
-
-
-
-
Method Detail
-
init
public void init(org.bedework.util.config.ConfigurationStore configStore, DirHandlerConfig cfg, String serviceName, String configName)- Parameters:
configStore-cfg-serviceName-configName-
-
loadConfig
public String loadConfig()
- Specified by:
loadConfigin classorg.bedework.util.jmx.ConfBase<DirHandlerConfig>
-
setPathPrefix
public void setPathPrefix(String val)
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
public String getPathPrefix()
Description copied from interface:DirHandlerConfMBeanGet the pathPrefix- Specified by:
getPathPrefixin interfaceDirHandlerConfMBean- Returns:
- String
-
setPrincipalPrefix
public void setPrincipalPrefix(String val)
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
public String getPrincipalPrefix()
Description copied from interface:DirHandlerConfMBeanGet the pathPrefix- Specified by:
getPrincipalPrefixin interfaceDirHandlerConfMBean- Returns:
- String path
-
setCardPathPrefix
public void setCardPathPrefix(String val)
Description copied from interface:DirHandlerConfMBeanSet the cardPathPrefix which defines the prefix for principal cards.- Specified by:
setCardPathPrefixin interfaceDirHandlerConfMBean- Parameters:
val- String
-
getCardPathPrefix
public String getCardPathPrefix()
Description copied from interface:DirHandlerConfMBeanGet the cardPathPrefix- Specified by:
getCardPathPrefixin interfaceDirHandlerConfMBean- Returns:
- String
-
setCardPathPrefixes
public void setCardPathPrefixes(String val)
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
public String getCardPathPrefixes()
Description copied from interface:DirHandlerConfMBeanGet the cardPathPrefixes- Specified by:
getCardPathPrefixesin interfaceDirHandlerConfMBean- Returns:
- prefixes
-
setAddressBook
public void setAddressBook(boolean val)
Description copied from interface:DirHandlerConfMBeanTrue if this prefix represents an addressbook.- Specified by:
setAddressBookin interfaceDirHandlerConfMBean
-
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)
Description copied from interface:DirHandlerConfMBeanTrue if this prefix represents a directory.- Specified by:
setDirectoryin interfaceDirHandlerConfMBean
-
getDirectory
public boolean getDirectory()
Description copied from interface:DirHandlerConfMBeanTrue if this prefix represents a directory.- Specified by:
getDirectoryin interfaceDirHandlerConfMBean- Returns:
- boolean
-
setClassName
public void setClassName(String val)
Description copied from interface:DirHandlerConfMBeanSet the interface implementation- Specified by:
setClassNamein interfaceDirHandlerConfMBean- Parameters:
val- String
-
getClassName
public String getClassName()
Description copied from interface:DirHandlerConfMBeanget the interface implementation- Specified by:
getClassNamein interfaceDirHandlerConfMBean- Returns:
- String
-
setOwnerHref
public void setOwnerHref(String val)
Description copied from interface:DirHandlerConfMBeanThe href for the owner- Specified by:
setOwnerHrefin interfaceDirHandlerConfMBean- Parameters:
val- String
-
getOwnerHref
public String getOwnerHref()
Description copied from interface:DirHandlerConfMBeanThe href for the owner- Specified by:
getOwnerHrefin interfaceDirHandlerConfMBean- Returns:
- String
-
setCardKind
public void setCardKind(String val)
Description copied from interface:DirHandlerConfMBeanIf set defines the default kind in this directory- Specified by:
setCardKindin interfaceDirHandlerConfMBean- Parameters:
val- String
-
getCardKind
public String getCardKind()
Description copied from interface:DirHandlerConfMBeanIf set defines the default kind in this directory- Specified by:
getCardKindin interfaceDirHandlerConfMBean- Returns:
- String
-
getConf
public DirHandlerConfig getConf()
- Returns:
- current state of config
-
-