當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。