ISynchronizerAtlassianSynchronizer, FileSynchronizerpublic class DefaultSynchronizer extends java.lang.Object implements ISynchronizer
| Constructor | Description |
|---|---|
DefaultSynchronizer() |
| Modifier and Type | Method | Description |
|---|---|---|
SynchronizerResult |
add(IWorkitem workitem) |
Adds workitem to synchronized system.
|
SynchronizerResult |
add(IReport report) |
Adds the report to synchronized system.
|
java.lang.String |
delete(IWorkitem workitem) |
Delete workitem in system which is connected through synchronizer.
|
boolean |
equals(java.lang.Object obj) |
|
IWorkitem |
get(java.lang.String filename) |
Gets the workitem of named id.
|
java.lang.String |
getIdPattern() |
Gets the pattern for valid id as regular expression which is allowed for synchronized system.
|
ISynchronizerRendererEngine |
getRenderer() |
Gets the renderer which is used to render workitems and reports for target system.
|
int |
hashCode() |
|
java.util.List<java.lang.String> |
loadIndex(WorkitemType workitemType) |
Load index for all workitems which where found by synchronizer of named workitem-type.
|
java.lang.String |
toString() |
|
SynchronizerResult |
update(IWorkitem workitem) |
Update workitem on synchronized system.
|
SynchronizerResult |
update(IReport report) |
Update report on synchronized system.
|
void |
writeIndex() |
Write index.
|
public java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic IWorkitem get(java.lang.String filename) throws SynchronizerException
ISynchronizerget in interface ISynchronizerfilename - the workitem of specific synchronizer. Every synchronizer could have own id-logicSynchronizerException - the synchronizer exceptionpublic java.util.List<java.lang.String> loadIndex(WorkitemType workitemType)
ISynchronizerloadIndex in interface ISynchronizerworkitemType - the workitem typepublic SynchronizerResult add(IWorkitem workitem) throws SynchronizerException
ISynchronizeradd in interface ISynchronizerworkitem - the workitem to addSynchronizerException - the synchronizer exceptionpublic SynchronizerResult update(IWorkitem workitem) throws SynchronizerException
ISynchronizerupdate in interface ISynchronizerworkitem - the workitem to updateSynchronizerException - the synchronizer exceptionpublic java.lang.String getIdPattern()
ISynchronizergetIdPattern in interface ISynchronizerpublic java.lang.String delete(IWorkitem workitem) throws SynchronizerException
ISynchronizerdelete in interface ISynchronizerworkitem - the workitem to deleteSynchronizerException - the synchronizer exceptionpublic ISynchronizerRendererEngine getRenderer()
ISynchronizergetRenderer in interface ISynchronizerpublic SynchronizerResult add(IReport report) throws SynchronizerException
ISynchronizeradd in interface ISynchronizerreport - the report to addSynchronizerException - the synchronizer exceptionpublic SynchronizerResult update(IReport report) throws SynchronizerException
ISynchronizerupdate in interface ISynchronizerreport - the report to updateSynchronizerException - the synchronizer exceptionpublic void writeIndex()
ISynchronizerwriteIndex in interface ISynchronizer