Package org.bedework.tools.cmdutil
Class CmdUtilHelper
- java.lang.Object
-
- org.bedework.tools.cmdutil.CmdUtilHelper
-
- All Implemented Interfaces:
org.bedework.util.logging.Logged
- Direct Known Subclasses:
ProcessAdd,ProcessAuthUser,ProcessCalsuite,ProcessCreate,ProcessDelete,ProcessList,ProcessMove,ProcessPrefs,ProcessRealias,ProcessReindex,ProcessSetstatus,ProcessSetup,ProcessUpdate,ProcessUser
public abstract class CmdUtilHelper extends Object implements org.bedework.util.logging.Logged
Handle processing for CmdUtil- Author:
- douglm
-
-
Field Summary
Fields Modifier and Type Field Description protected ProcessStatepstate
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddError(String val)protected voidaddInfo(String val)protected booleanaddToAdminGroup(String accountToAdd, String kind, String groupName)BwPrincipaladdUser(String val)protected voidassertToken(int token)protected BooleanboolFor(String wd)protected StringcatWd(String val)protected voidclose()protected booleancmdEnd()voiderror(String msg)protected booleanexpect(String val)BwPrincipalfindGroup(String val)protected StringgetAliasPath()protected BwCalendargetAliasTarget(BwCalendar col)BwAuthUsergetAuthUser(String val)protected BwCalendargetCal()protected BwCalendargetCal(String path)protected BwCategorygetCat(String ownerHref)protected BwCategorygetCat(String ownerHref, String catVal)protected BwCategorygetCatPersistent(String ownerHref, String catVal)protected CalendarsIgetCols()DirectoryInfogetDirectoryInfo()protected EventInfogetEvent(String path, String name)protected EventsIgetEvents()BwIndexergetIndexer(String docType)org.bedework.util.logging.BwLoggergetLogger()protected BwLocationgetPersistentLoc()BwPreferencesgetPrefs()protected CalSvcIgetSvci()BwPrincipalgetUserAlways(String val)voidinfo(String msg)protected BwAdminGroupmakeAdminGroup(String account, String description, String owner, String eventOwner)protected BwCalendarmakeCollection(String type, String parentPath, String calName, String calSummary, String aliasTarget, String ownerHref, String creatorHref, String description, String filter, List<String> catuids)BwPrincipalnewMember(String account, boolean user)protected intnextToken()protected voidopen()org.bedework.caldav.util.filter.FilterBaseparseQuery(String query)protected StringqstringFor(String wd)protected StringquotedVal()protected voidsetUser(String account, boolean superUser)protected booleantest(String val)protected booleantestToken(int token)protected booleantestToken(String token)voidwarn(String msg)protected Stringword()protected StringwordOrQuotedVal()-
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.logging.Logged
audit, debug, debug, enableAuditLogger, enableErrorLogger, enableMetricsLogger, error, error, isAuditLoggerEnabled, isErrorLoggerEnabled, isMetricsDebugEnabled, isMetricsLoggerEnabled, metrics, setLoggerClass, setLoggerClass, trace, trace
-
-
-
-
Field Detail
-
pstate
protected ProcessState pstate
-
-
Method Detail
-
addInfo
protected void addInfo(String val)
-
addError
protected void addError(String val)
-
getSvci
protected CalSvcI getSvci()
-
getCols
protected CalendarsI getCols() throws CalFacadeException
- Throws:
CalFacadeException
-
getEvents
protected EventsI getEvents() throws CalFacadeException
- Throws:
CalFacadeException
-
getDirectoryInfo
public DirectoryInfo getDirectoryInfo() throws CalFacadeException
- Throws:
CalFacadeException
-
close
protected void close()
-
getIndexer
public BwIndexer getIndexer(String docType) throws CalFacadeException
- Throws:
CalFacadeException
-
parseQuery
public org.bedework.caldav.util.filter.FilterBase parseQuery(String query) throws CalFacadeException
- Throws:
CalFacadeException
-
getCal
protected BwCalendar getCal() throws Throwable
- Throws:
Throwable
-
getCal
protected BwCalendar getCal(String path) throws Throwable
- Throws:
Throwable
-
setUser
protected void setUser(String account, boolean superUser) throws Throwable
- Throws:
Throwable
-
makeAdminGroup
protected BwAdminGroup makeAdminGroup(String account, String description, String owner, String eventOwner) throws Throwable
- Throws:
Throwable
-
addToAdminGroup
protected boolean addToAdminGroup(String accountToAdd, String kind, String groupName) throws Throwable
- Throws:
Throwable
-
makeCollection
protected BwCalendar makeCollection(String type, String parentPath, String calName, String calSummary, String aliasTarget, String ownerHref, String creatorHref, String description, String filter, List<String> catuids) throws Throwable
- Throws:
Throwable
-
getPersistentLoc
protected BwLocation getPersistentLoc() throws Throwable
- Throws:
Throwable
-
getAliasTarget
protected BwCalendar getAliasTarget(BwCalendar col) throws Throwable
- Throws:
Throwable
-
getUserAlways
public BwPrincipal getUserAlways(String val)
-
addUser
public BwPrincipal addUser(String val) throws Throwable
- Throws:
Throwable
-
getPrefs
public BwPreferences getPrefs() throws Throwable
- Throws:
Throwable
-
getAuthUser
public BwAuthUser getAuthUser(String val) throws Throwable
- Throws:
Throwable
-
findGroup
public BwPrincipal findGroup(String val) throws Throwable
- Throws:
Throwable
-
newMember
public BwPrincipal newMember(String account, boolean user) throws Throwable
- Throws:
Throwable
-
getCat
protected BwCategory getCat(String ownerHref) throws Throwable
- Throws:
Throwable
-
getCat
protected BwCategory getCat(String ownerHref, String catVal) throws Throwable
- Throws:
Throwable
-
getCatPersistent
protected BwCategory getCatPersistent(String ownerHref, String catVal) throws Throwable
- Throws:
Throwable
-
nextToken
protected int nextToken() throws CalFacadeException- Throws:
CalFacadeException
-
testToken
protected boolean testToken(String token) throws CalFacadeException
- Throws:
CalFacadeException
-
testToken
protected boolean testToken(int token) throws CalFacadeException- Throws:
CalFacadeException
-
assertToken
protected void assertToken(int token) throws CalFacadeException- Throws:
CalFacadeException
-
error
public void error(String msg)
- Specified by:
errorin interfaceorg.bedework.util.logging.Logged
-
warn
public void warn(String msg)
- Specified by:
warnin interfaceorg.bedework.util.logging.Logged
-
info
public void info(String msg)
- Specified by:
infoin interfaceorg.bedework.util.logging.Logged
-
getLogger
public org.bedework.util.logging.BwLogger getLogger()
- Specified by:
getLoggerin interfaceorg.bedework.util.logging.Logged
-
-