Package org.bedework.synch.shared
Class BaseSubscriptionInfo
java.lang.Object
org.bedework.synch.shared.BaseSubscriptionInfo
Provides an internal deserialized view of the subscription info for one
end. A number of common methods are provided here and it is assumed that
connectors and instances will subclass this class.
- Author:
- Mike Douglass
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe value of some sort of change token.static final StringComma separatd list of input filter property classesstatic final StringThe numbers created, updated, deleted last timestatic final StringA string value that provides information about the last refresh for this end of the subscriptionstatic final StringLocation key name for matchingstatic final StringOpaque data for this connectionstatic final StringAllow only public entitiesstatic final StringComma separated list of output filter property classesstatic final StringThe (encoded) password for the principalstatic final StringA principal - possibly an href or an accountstatic final StringRefresh period for polling subscriptions (millisecs)static final StringThe numbers created, updated, deleted this subscriptionstatic final StringA uri referring to the endpoint. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionChangeTokenOpaque data for the connectionPrincipal passwordPrincipal requesting synch servicegetProperty(String name) Get arbitrary named propertyRefresh delay - millisecsgetUri()Path to the calendar collectionvoidsetChangeToken(String val) ChangeTokenvoidsetInFilterClasses(List<String> classes) voidvoidHTTP status or other appropriate valuevoidsetOpaqueData(String val) Opaque data for the connectionvoidsetOutFilterClasses(List<String> classes) voidsetPassword(String val) Principals passwordvoidsetPrincipalHref(String val) Principal requesting synch servicevoidsetProperty(String name, String val) set arbitrary named propertyvoidsetRefreshDelay(String val) Refresh delay - millisecsvoidvoidPath to the calendar collection.toString()protected voidtoStringSegment(org.bedework.util.misc.ToString ts)
-
Field Details
-
propnameUri
A uri referring to the endpoint. Perhaps the URL of a file or the href for a caldav collection- See Also:
-
propnameChangeToken
The value of some sort of change token. This could be a caldav ctag or an http etag.- See Also:
-
propnameOpaqueData
Opaque data for this connection- See Also:
-
propnamePrincipal
A principal - possibly an href or an account- See Also:
-
propnamePassword
The (encoded) password for the principal- See Also:
-
propnameRefreshDelay
Refresh period for polling subscriptions (millisecs)- See Also:
-
propnameOrgSyncPublicOnly
Allow only public entities- See Also:
-
propnameLocKey
Location key name for matching- See Also:
-
propnameLastRefreshStatus
A string value that provides information about the last refresh for this end of the subscription- See Also:
-
propnameLastCrudCts
The numbers created, updated, deleted last time- See Also:
-
propnameTotalCrudCts
The numbers created, updated, deleted this subscription- See Also:
-
propnameInputFilterClasses
Comma separatd list of input filter property classes- See Also:
-
propnameOutputFilterClasses
Comma separated list of output filter property classes- See Also:
-
-
Constructor Details
-
Method Details
-
setUri
Path to the calendar collection.- Parameters:
val- String- Throws:
SynchException
-
getUri
Path to the calendar collection- Returns:
- String
- Throws:
SynchException
-
setPrincipalHref
Principal requesting synch service- Parameters:
val- String- Throws:
SynchException
-
getPrincipalHref
Principal requesting synch service- Returns:
- String
- Throws:
SynchException
-
setPassword
Principals password- Parameters:
val- String- Throws:
SynchException
-
getPassword
Principal password- Returns:
- String
- Throws:
SynchException
-
setOpaqueData
Opaque data for the connection- Parameters:
val- String- Throws:
SynchException
-
getOpaqueData
Opaque data for the connection- Returns:
- String
- Throws:
SynchException
-
setChangeToken
ChangeToken- Parameters:
val- String- Throws:
SynchException
-
getChangeToken
ChangeToken- Returns:
- String
- Throws:
SynchException
-
setLastRefreshStatus
HTTP status or other appropriate value- Parameters:
val- status- Throws:
SynchException
-
getLastRefreshStatus
- Returns:
- String lastRefreshStatus
- Throws:
SynchException
-
getLastCrudCts
- Returns:
- cts
- Throws:
SynchException
-
getTotalCrudCts
- Returns:
- cts
- Throws:
SynchException
-
setRefreshDelay
Refresh delay - millisecs- Parameters:
val- millisecs- Throws:
SynchException
-
getRefreshDelay
Refresh delay - millisecs- Returns:
- String refreshDelay
- Throws:
SynchException
-
setProperty
set arbitrary named property- Parameters:
name- of propertyval- - String property value- Throws:
SynchException
-
getProperty
Get arbitrary named property- Parameters:
name- of property- Returns:
- String property value
- Throws:
SynchException
-
setInFilterClasses
- Parameters:
classes- ordered list of class names- Throws:
SynchException
-
getInFilterClasses
- Returns:
- ordered list of class names
- Throws:
SynchException
-
setOutFilterClasses
- Parameters:
classes- ordered list of class names- Throws:
SynchException
-
getOutFilterClasses
- Returns:
- ordered list of class names
- Throws:
SynchException
-
toStringSegment
protected void toStringSegment(org.bedework.util.misc.ToString ts) -
toString
-