Package org.bedework.synch.shared
Interface SerializableProperties<T>
-
- Type Parameters:
T-
- All Superinterfaces:
Comparable<T>
- All Known Subinterfaces:
SubscriptionConnectorInfo<T>,SubscriptionInfo<T>
public interface SerializableProperties<T> extends Comparable<T>
Serializable form of information for a connection to a system via a connector - a connector id and the serialized proeprties.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.bedework.synch.wsmessages.ArrayOfSynchPropertiesgetAllSynchProperties()booleangetChanged()StringgetProperty(String name)Get a property from the internal properties - loading them from the external value first if necessary.StringgetSynchProperties()voidloadProperties()Load the properties from the serialized form.voidresetChanged()reset the changed flag.voidsetChanged(boolean val)Set the changed flagvoidsetProperty(String name, String val)Set a property in the internal properties - loading them from the external value first if necessary.voidsetSynchProperties(String val)-
Methods inherited from interface java.lang.Comparable
compareTo
-
-
-
-
Method Detail
-
getAllSynchProperties
org.bedework.synch.wsmessages.ArrayOfSynchProperties getAllSynchProperties() throws SynchException- Throws:
SynchException
-
setSynchProperties
void setSynchProperties(String val)
- Parameters:
val- serialized properties
-
getSynchProperties
String getSynchProperties() throws SynchException
- Returns:
- serialized properties
- Throws:
SynchException
-
setChanged
void setChanged(boolean val)
Set the changed flag- Parameters:
val-
-
getChanged
boolean getChanged()
- Returns:
- changed flag.
-
resetChanged
void resetChanged()
reset the changed flag.
-
loadProperties
void loadProperties() throws SynchExceptionLoad the properties from the serialized form.- Throws:
SynchException
-
setProperty
void setProperty(String name, String val) throws SynchException
Set a property in the internal properties - loading them from the external value first if necessary.- Parameters:
name-val-- Throws:
SynchException
-
getProperty
String getProperty(String name) throws SynchException
Get a property from the internal properties - loading them from the external value first if necessary.- Parameters:
name-- Returns:
- val
- Throws:
SynchException
-
-