Package com.ardoq.util
Class SyncUtil
java.lang.Object
com.ardoq.util.SyncUtil
public class SyncUtil extends Object
Created by magnulf on 23.04.14.
-
Field Summary
Fields Modifier and Type Field Description static StringSPLIT_CHARACTER -
Constructor Summary
Constructors Constructor Description SyncUtil(ArdoqClient client, Workspace workspace) -
Method Summary
Modifier and Type Method Description ComponentaddComponent(Component comp)ReferenceaddReference(Reference ref)BasicModelclone(BasicModel obj)voiddeleteNotSyncedItems()Set<String>deleteOldComponents()Set<String>deleteOldReferences(Set<String> deletedComponents)AggregatedWorkspacegetAggregatedWorkspace()ComponentgetComponentById(String id)ComponentgetComponentByPath(Component comp)ComponentgetComponentByPath(String compPath)ReferencegetCurrentReference(Reference ref)ReferencegetCurrentReferenceById(String id)ModelgetModel()StringgetReport()Returns an update report with statistics of created, updated and deleted references and components.TaggetTagByName(String name)Gets an existing tag by nameWorkspacegetWorkspace()voidsyncTags()voidupdateTag(Tag tag)WorkspaceupdateWorkspaceIfDifferent(Workspace newWorkspace)
-
Field Details
-
SPLIT_CHARACTER
- See Also:
- Constant Field Values
-
-
Constructor Details
-
Method Details
-
getTagByName
Gets an existing tag by name- Parameters:
name- Name of the tag- Returns:
- Returns the tag
-
updateTag
-
syncTags
public void syncTags() -
getComponentByPath
-
getComponentByPath
-
clone
-
getComponentById
-
addComponent
-
getCurrentReference
-
getCurrentReferenceById
-
addReference
-
getReport
Returns an update report with statistics of created, updated and deleted references and components.- Returns:
- a String with the report.
-
deleteNotSyncedItems
public void deleteNotSyncedItems() -
deleteOldReferences
-
deleteOldComponents
-
updateWorkspaceIfDifferent
-
getWorkspace
-
getModel
-
getAggregatedWorkspace
-