public class PropertiesBasedSyncOptions extends Object implements ISyncOptions
DEFAULT_CONDITION
Constructor and Description |
---|
PropertiesBasedSyncOptions() |
Modifier and Type | Method and Description |
---|---|
String |
getChangeIdCondition()
Returns the condition for a id change
|
String |
getCondition(LscModificationType operation) |
Set<String> |
getCreateAttributeNames()
Return the names of attributes to be created.
|
String |
getCreateCondition()
Returns the condition for a creation
|
List<String> |
getCreateValues(String id,
String attributeName)
Return the create value for a given attribute name.
|
Set<String> |
getDefaultValuedAttributeNames()
Return the default valued attributes
|
List<String> |
getDefaultValues(String id,
String attributeName)
Return the default values for a given attribute name.
|
String |
getDeleteCondition()
Returns the condition for a delete
|
String |
getDelimiter(String name)
Return the delimiter name for the corresponding dataset
|
String |
getDn()
Return the expression used to infer the new object DN
|
Set<String> |
getForceValuedAttributeNames()
Return the force valued attributes
|
List<String> |
getForceValues(String id,
String attributeName)
Return the force value for a given attribute name.
|
PolicyType |
getStatus(String id,
String attributeName)
Analyze the context to get the right synchronization status to apply.
|
String |
getUpdateCondition()
Returns the condition for an update
|
void |
initialize(TaskType task)
Initialize the synchronization options policy.
|
public void initialize(TaskType task)
ISyncOptions
initialize
in interface ISyncOptions
task
- the task configuration object on which applying syncoptspublic final PolicyType getStatus(String id, String attributeName)
ISyncOptions
getStatus
in interface ISyncOptions
id
- the object identifier according to the datasourceattributeName
- the attribute namepublic final List<String> getDefaultValues(String id, String attributeName)
ISyncOptions
getDefaultValues
in interface ISyncOptions
id
- the object identifier according to the datasourceattributeName
- the attribute namepublic final List<String> getCreateValues(String id, String attributeName)
ISyncOptions
getCreateValues
in interface ISyncOptions
id
- the object identifier according to the datasourceattributeName
- the attribute namepublic final List<String> getForceValues(String id, String attributeName)
ISyncOptions
getForceValues
in interface ISyncOptions
id
- the object identifier according to the datasourceattributeName
- the attribute namepublic Set<String> getCreateAttributeNames()
ISyncOptions
getCreateAttributeNames
in interface ISyncOptions
public Set<String> getDefaultValuedAttributeNames()
ISyncOptions
getDefaultValuedAttributeNames
in interface ISyncOptions
public Set<String> getForceValuedAttributeNames()
ISyncOptions
getForceValuedAttributeNames
in interface ISyncOptions
public String getDn()
ISyncOptions
getDn
in interface ISyncOptions
public String getCreateCondition()
ISyncOptions
getCreateCondition
in interface ISyncOptions
public String getDeleteCondition()
ISyncOptions
getDeleteCondition
in interface ISyncOptions
public String getUpdateCondition()
ISyncOptions
getUpdateCondition
in interface ISyncOptions
public String getChangeIdCondition()
ISyncOptions
getChangeIdCondition
in interface ISyncOptions
public String getCondition(LscModificationType operation)
getCondition
in interface ISyncOptions
public String getDelimiter(String name)
ISyncOptions
getDelimiter
in interface ISyncOptions
name
- dataset nameCopyright © 2005-2024 LSC project. All Rights Reserved.