本文整理汇总了Java中com.ardoq.ArdoqClient类的典型用法代码示例。如果您正苦于以下问题:Java ArdoqClient类的具体用法?Java ArdoqClient怎么用?Java ArdoqClient使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ArdoqClient类属于com.ardoq包,在下文中一共展示了ArdoqClient类的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: ArdoqDoclet
import com.ardoq.ArdoqClient; //导入依赖的package包/类
/**
* Constructs a new ArdoqDoclet that communicates with the given ArdoqClient.
* @param client The ArdoqClient to use
* @param root The JavaDoc RootDoc to document.
*/
public ArdoqDoclet(ArdoqClient client, RootDoc root) throws IOException {
this.ardoqSync = new SyncUtil(client, workspaceName, "JavaDoc");
this.client = client;
this.client.setLogLevel(RestAdapter.LogLevel.NONE);
this.workspace = this.ardoqSync.updateWorkspaceIfDifferent(new Workspace(workspaceName, this.ardoqSync.getModel().getId(), getWorkspaceDescription()));
this.cacheManager = new CacheManager(cacheDirectory, clearCache);
this.componentManager = new ComponentManager(workspace, ardoqSync, root, cacheManager);
this.componentManager.setIgnoreMethods(ignoreMethods);
this.referenceManager = new ReferenceManager(componentManager, ardoqSync, cacheManager);
this.referenceManager.setIgnoreMethods(ignoreMethods);
if (null != sourceControl)
{
this.componentManager.setSourceControlUrl(sourceControl);
}
if (null!= this.targetDirectory)
{
analyzer = new jdepend.framework.JDepend();
analyzer.addDirectory(targetDirectory);
this.jDepend();
this.referenceManager.addJDepend(analyzer);
this.componentManager.addJDepend(analyzer);
}
this.componentManager.documentPackagesAndComponents();
referenceManager.addReferences();
this.ardoqSync.deleteNotSyncedItems();
this.ardoqSync.syncTags();
this.cacheManager.saveCache();
System.out.println(this.ardoqSync.getReport());
System.out.println("\n\nSee result: "+host+"/app/view/workspace/"+this.ardoqSync.getWorkspace().getId()+"\n\n");
}
示例2: before
import com.ardoq.ArdoqClient; //导入依赖的package包/类
@Before
public void before() {
aggregatedWorkspaceId = TestUtils.getTestPropery("aggregatedWorkspaceId");
//service = new ArdoqClient(System.getenv("ardoqHost"), System.getenv("ardoqToken")).setOrganization(TestUtils.getTestPropery("organization")).workspace();
service = new ArdoqClient(System.getenv("ardoqHost"), System.getenv("ardoqToken")).setOrganization("ardoq").workspace();
cb = new CallbackTest();
testWorkspace = new Workspace("myWorkspace", TestUtils.getTestPropery("modelId"), "Hello world!");
}
示例3: before
import com.ardoq.ArdoqClient; //导入依赖的package包/类
@Before
public void before() {
ArdoqClient client = new ArdoqClient(System.getenv("ardoqHost"), System.getenv("ardoqUsername"), System.getenv("ardoqPassword")).setOrganization(TestUtils.getTestPropery("organization"));
service = client.reference();
workspace = client.workspace().createWorkspace(new Workspace("myWorkspace", TestUtils.getTestPropery("modelId"), "Hello world!"));
source = client.component().createComponent(new Component("Source", workspace.getId(), ""));
target = client.component().createComponent(new Component("Target", workspace.getId(), ""));
testReference = new Reference(workspace.getId(), "", source.getId(), target.getId(), 2);
}
示例4: before
import com.ardoq.ArdoqClient; //导入依赖的package包/类
@Before
public void before() throws IOException {
mimeType = TestUtils.getTestPropery("mimeType");
filename = TestUtils.getTestPropery("filename");
workspaceId = TestUtils.getTestPropery("workspaceIdWithAttachments");
ArdoqClient client = new ArdoqClient(System.getenv("ardoqHost"), System.getenv("ardoqUsername"), System.getenv("ardoqPassword")).setOrganization(TestUtils.getTestPropery("organization"));
service = client.attachment();
workspace = client.workspace().createWorkspace(new Workspace("myWorkspace", "Hello world!").withComponentModel(TestUtils.getTestPropery("modelId")));
cb = new CallbackTest();
}
示例5: before
import com.ardoq.ArdoqClient; //导入依赖的package包/类
@Before
public void before() {
ArdoqClient client = new ArdoqClient(System.getenv("ardoqHost"), System.getenv("ardoqUsername"), System.getenv("ardoqPassword"), 10, 10).setOrganization(TestUtils.getTestPropery("organization"));
String modelId = TestUtils.getTestPropery("modelId");
service = client.field();
workspace = client.workspace().createWorkspace(new Workspace("myWorkspace", modelId, "Hello world!"));
component = client.component().createComponent(new Component("Component", workspace.getId(), ""));
cb = new CallbackTest();
ArrayList<String> componentTypes = new ArrayList<String>();
componentTypes.add(component.getType());
testField = new Field("maintainer", "maintainer", modelId, componentTypes, FieldType.EMAIL);
}
示例6: before
import com.ardoq.ArdoqClient; //导入依赖的package包/类
@Before
public void before() {
ArdoqClient client = new ArdoqClient(System.getenv("ardoqHost"), System.getenv("ardoqUsername"), System.getenv("ardoqPassword"), 30, 30).setOrganization(TestUtils.getTestPropery("organization"));
service = client.component();
workspace = client.workspace().createWorkspace(new Workspace("myWorkspace",
TestUtils.getTestPropery("modelId"), "Hello world!"));
cb = new CallbackTest();
testComponent = new Component("MyComponent", workspace.getId(), "myDescription");
}
示例7: before
import com.ardoq.ArdoqClient; //导入依赖的package包/类
@Before
public void before() {
ArdoqClient client = new ArdoqClient(System.getenv("ardoqHost"), System.getenv("ardoqUsername"), System.getenv("ardoqPassword")).setOrganization(TestUtils.getTestPropery("organization"));
service = client.model();
modelId = TestUtils.getTestPropery("modelId");
}
示例8: before
import com.ardoq.ArdoqClient; //导入依赖的package包/类
@Before
public void before() {
ArdoqClient client = new ArdoqClient(System.getenv("ardoqHost"), System.getenv("ardoqUsername"), System.getenv("ardoqPassword")).setOrganization(TestUtils.getTestPropery("organization"));
service = client.tag();
workspace = client.workspace().createWorkspace(new Workspace("myWorkspace", "Hello world!").withComponentModel(TestUtils.getTestPropery("modelId")));
testTag = new Tag("myTag", workspace.getId(), "Hello world!");
cb = new CallbackTest();
}
示例9: SyncUtil
import com.ardoq.ArdoqClient; //导入依赖的package包/类
public SyncUtil(ArdoqClient client, Workspace workspace) {
this.client = client;
this.workspaceService = client.workspace();
this.componentService = client.component();
this.referenceService = client.reference();
this.attachmentService = client.attachment();
this.tagService = client.tag();
this.model = client.model().getModelById(workspace.getComponentModel());
this.workspace = workspace;
loadCurrentAggregatedWorkspace();
}
示例10: main
import com.ardoq.ArdoqClient; //导入依赖的package包/类
public static void main(String[] args) {
ArdoqClient client = new ArdoqClient("https://app.ardoq.com", "")
.setOrganization("");
Model template = client.model().getTemplateByName("Application Service");
}