Package org.bedework.synch.shared
Class PropertiesInfo
- java.lang.Object
-
- org.bedework.synch.shared.PropertiesInfo
-
public class PropertiesInfo extends Object
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 Constructor Description PropertiesInfo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(String name, boolean secure, String type, String description, boolean required)No-value formvoidadd(String name, boolean secure, String type, String description, boolean required, String value)value 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)URIStringtoString()booleanvalidRequestProperties(BaseSubscriptionInfo info, org.bedework.synch.wsmessages.ArrayOfSynchProperties propsArray)Ensure info properties are valid for an existing subscriptionbooleanvalidSubscribeInfoProperties(BaseSubscriptionInfo info)Ensure info properties are valid for a new subscription
-
-
-
Method Detail
-
requiredUri
public void requiredUri(String description)
URI- Parameters:
description- null for default description
-
optionalUri
public void optionalUri(String description)
URI- Parameters:
description- null for default description
-
requiredPrincipal
public void requiredPrincipal(String description)
Principal- Parameters:
description- null for default description
-
optionalPrincipal
public void optionalPrincipal(String description)
Principal- Parameters:
description- null for default description
-
requiredPassword
public void requiredPassword(String description)
Password- Parameters:
description- null for default description
-
optionalPassword
public void optionalPassword(String description)
Password- Parameters:
description- null for default description
-
add
public void add(String name, boolean secure, String type, String description, boolean required)
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
public void optionCalProcessing(String name, String description)
Add an optional property of type CalProcessing with no default value.- Parameters:
name- - name for the propertydescription- - of the property
-
optionCalProcessing
public void optionCalProcessing(String name, String description, String value)
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
-
validSubscribeInfoProperties
public boolean validSubscribeInfoProperties(BaseSubscriptionInfo info) throws SynchException
Ensure info properties are valid for a new subscription- Parameters:
info-- Returns:
- true if all ok
- Throws:
SynchException
-
validRequestProperties
public boolean validRequestProperties(BaseSubscriptionInfo info, org.bedework.synch.wsmessages.ArrayOfSynchProperties propsArray) throws SynchException
Ensure info properties are valid for an existing subscription- Parameters:
info- - current propertiespropsArray- - properties in a request to be validated- Returns:
- true if all ok
- Throws:
SynchException
-
addAllToList
public void addAllToList(List<org.bedework.synch.wsmessages.SynchPropertyInfoType> l)
Add all the properties in this list to the parameter- Parameters:
l-
-
-