Package org.bedework.synch.shared
Class PropertiesInfo
java.lang.Object
org.bedework.synch.shared.PropertiesInfo
Help handling properties. This class will hold property info for the parent
object. This is built by calls to add.
It will also build a new PropertiesInfo object based on a set of properties
and a set of current values. This can then be used to transmit the current
values to a remote client.
- Author:
- douglm
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidNo-value formvoidvalue formvoidaddAllToList(List<org.bedework.synch.wsmessages.SynchPropertyInfoType> l) Add all the properties in this list to the parametervoidoptionalPassword(String description) PasswordvoidoptionalPrincipal(String description) PrincipalvoidoptionalUri(String description) URIvoidoptionCalProcessing(String name, String description) Add an optional property of type CalProcessing with no default value.voidoptionCalProcessing(String name, String description, String value) Add an optional property of type CalProcessing with the given default value.voidrequiredPassword(String description) PasswordvoidrequiredPrincipal(String description) PrincipalvoidrequiredUri(String description) URItoString()booleanvalidRequestProperties(BaseSubscriptionInfo info, org.bedework.synch.wsmessages.ArrayOfSynchProperties propsArray) Ensure info properties are valid for an existing subscriptionbooleanEnsure info properties are valid for a new subscription
-
Constructor Details
-
PropertiesInfo
public PropertiesInfo()
-
-
Method Details
-
requiredUri
URI- Parameters:
description- null for default description
-
optionalUri
URI- Parameters:
description- null for default description
-
requiredPrincipal
Principal- Parameters:
description- null for default description
-
optionalPrincipal
Principal- Parameters:
description- null for default description
-
requiredPassword
Password- Parameters:
description- null for default description
-
optionalPassword
Password- Parameters:
description- null for default description
-
add
No-value form- Parameters:
name- - name for the propertysecure- - true if this property value should be hidden, e.g passwordtype- - type of the property - see abovedescription- - of the propertyrequired- - true if this property is required
-
add
public void add(String name, boolean secure, String type, String description, boolean required, String value) value form- Parameters:
name- - name for the propertysecure- - true if this property value should be hidden, e.g passwordtype- - type of the property - see abovedescription- - of the propertyrequired- - true if this property is requiredvalue- - the default or current value as a Java string representation
-
optionCalProcessing
Add an optional property of type CalProcessing with no default value.- Parameters:
name- - name for the propertydescription- - of the property
-
optionCalProcessing
Add an optional property of type CalProcessing with the given default value.- Parameters:
name- - name for the propertydescription- - of the propertyvalue- - the default or current value as a Java string representation
-
addAllToList
Add all the properties in this list to the parameter- Parameters:
l-
-
toString
-