public class Connector
extends java.lang.Object
| Constructor | Description |
|---|---|
Connector() |
| Modifier and Type | Method | Description |
|---|---|---|
java.util.List<SynchronizerResult> |
add(IWorkitem workitem) |
Adds workitem to synchronized systems.
|
java.util.List<SynchronizerResult> |
add(IReport report) |
Adds report to synchronizes systems.
|
void |
addSynchronizer(ISynchronizer synchronizer) |
Adds the synchronizer.
|
SynchronizerResult |
addToActualSynchronizer(IWorkitem workitem) |
Adds the to actual synchronizer.
|
java.util.List<java.lang.String> |
delete(IWorkitem workitem) |
Delete workitem in every synchronized system.
|
IWorkitem |
get(java.lang.String indexId) |
Gets the workitem with given id.
|
IWorkitem |
getFromActualSynchronizer(java.lang.String id) |
Gets the from actual synchronizer.
|
java.util.Collection<ISynchronizer> |
getSynchronizer() |
Gets the synchronizer.
|
ISynchronizer |
getSynchronizer(java.lang.String synchronizerName) |
Gets the synchronizer.
|
java.util.List<IWorkitem> |
load(WorkitemType type) |
Load workitems of given type.
|
java.util.List<java.lang.String> |
loadIndex(WorkitemType workitemType) |
Load index of workitemtype in all synchronizes systems.
|
IWorkitem |
merge(IWorkitem item,
IWorkitem otherItem) |
Merge two workitems to a single workitem.
|
void |
setActualSynchronizer(ISynchronizer synchronizer) |
Sets the actual synchronizer.
|
java.util.List<SynchronizerResult> |
update(IWorkitem workitem) |
Update workitem to synchronized system.
|
java.util.List<SynchronizerResult> |
update(IReport report) |
Update.
|
SynchronizerResult |
updateToActualSynchronizer(IWorkitem workitem) |
Update to actual synchronizer.
|
void |
writeIndex() |
Write index.
|
public java.util.Collection<ISynchronizer> getSynchronizer()
public ISynchronizer getSynchronizer(java.lang.String synchronizerName)
synchronizerName - the synchronizer namepublic void addSynchronizer(ISynchronizer synchronizer)
synchronizer - the synchronizerpublic void setActualSynchronizer(ISynchronizer synchronizer)
synchronizer - the new actual synchronizerpublic IWorkitem getFromActualSynchronizer(java.lang.String id) throws SynchronizerException
id - the idSynchronizerException - the synchronizer exceptionpublic SynchronizerResult updateToActualSynchronizer(IWorkitem workitem) throws SynchronizerException
workitem - the workitemSynchronizerException - the synchronizer exceptionpublic SynchronizerResult addToActualSynchronizer(IWorkitem workitem) throws SynchronizerException
workitem - the workitemSynchronizerException - the synchronizer exceptionpublic java.util.List<IWorkitem> load(WorkitemType type)
type - the typepublic IWorkitem merge(IWorkitem item, IWorkitem otherItem)
item - the first itemotherItem - the second itempublic java.util.List<SynchronizerResult> add(IWorkitem workitem)
workitem - the workitempublic java.util.List<SynchronizerResult> add(IReport report)
report - the reportpublic java.util.List<SynchronizerResult> update(IWorkitem workitem)
workitem - the workitempublic void writeIndex()
public java.util.List<SynchronizerResult> update(IReport report)
report - the reportpublic java.util.List<java.lang.String> delete(IWorkitem workitem)
workitem - the workitempublic IWorkitem get(java.lang.String indexId)
indexId - the index idpublic java.util.List<java.lang.String> loadIndex(WorkitemType workitemType)
workitemType - the workitem type