当前位置: 首页>>代码示例>>Java>>正文


Java ArdoqClient类代码示例

本文整理汇总了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");
}
 
开发者ID:ardoq,项目名称:ardoq-doclet,代码行数:43,代码来源:ArdoqDoclet.java

示例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!");
}
 
开发者ID:ardoq,项目名称:ardoq-java-client,代码行数:10,代码来源:WorkspaceServiceTest.java

示例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);
}
 
开发者ID:ardoq,项目名称:ardoq-java-client,代码行数:10,代码来源:ReferenceServiceTest.java

示例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();
}
 
开发者ID:ardoq,项目名称:ardoq-java-client,代码行数:11,代码来源:AttachmentServiceTest.java

示例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);
}
 
开发者ID:ardoq,项目名称:ardoq-java-client,代码行数:13,代码来源:FieldServiceTest.java

示例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");
}
 
开发者ID:ardoq,项目名称:ardoq-java-client,代码行数:10,代码来源:ComponentServiceTest.java

示例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");

}
 
开发者ID:ardoq,项目名称:ardoq-java-client,代码行数:8,代码来源:ModelServiceTest.java

示例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();
}
 
开发者ID:ardoq,项目名称:ardoq-java-client,代码行数:9,代码来源:TagServiceTest.java

示例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();
}
 
开发者ID:ardoq,项目名称:ardoq-java-client,代码行数:13,代码来源:SyncUtil.java

示例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");

}
 
开发者ID:ardoq,项目名称:ardoq-training-java,代码行数:8,代码来源:ClientExample.java


注:本文中的com.ardoq.ArdoqClient类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。