Package edu.indiana.extreme.lead.metadata.util

Examples of edu.indiana.extreme.lead.metadata.util.MinimalLEADMetadata


  private LEADresourceDocument createResourceDocument(URI templateID,
      String uid, String name, String description) {

    LEADresourceDocument leadResourceDoc = null;
    try {
    MinimalLEADMetadata metadata = new MinimalLEADMetadata(uid, name, description);
        metadata.setResourceId(templateID.toString());      

    leadResourceDoc = LEADresourceDocument.Factory.parse(metadata.toString());
 
        LEADResourceType leadResourceType = leadResourceDoc.getLEADresource();
       
    DataType data = leadResourceType.getData();
    IdinfoBase idInfo = data.getIdinfo();
View Full Code Here


     */
    public void estCreateProject() throws MyLeadException {
        MyLeadAgentStub stub = new MyLeadAgentStub(this.configuration
                .getMyLeadAgentURL(), this.myProxyClient.getProxy());
    try {
        MinimalLEADMetadata projectMetadata = new MinimalLEADMetadata(
                FAKE_USER_ID, "Project1", "Project description");
        projectMetadata.setResourceId("Unknown"); // this is neccesary.

       
        String projectID = stub.createProject(FAKE_USER_ID, projectMetadata
                .toString(), true);

        MinimalLEADMetadata workflowTemplatesMetadata = new MinimalLEADMetadata(
                FAKE_USER_ID, MyLead.WORKFLOW_TEMPLATES_COLLECTION,
                "Workflow templates collection description");
        workflowTemplatesMetadata.setResourceId("Unknown");
        LEADresourceDocument leadResourceDoc;

    leadResourceDoc = LEADresourceDocument.Factory.parse(workflowTemplatesMetadata.toString());

        String workflowTemplatesCollectionID = stub.createCollection(
                FAKE_USER_ID, leadResourceDoc.getLEADresource(), projectID,
                true);
        logger.info("workflowTemplatesCollectionID: "
View Full Code Here

        String uid = myleadConfig.getUser();

        String name = workflow.getName();
        String description = workflow.getDescription();

        MinimalLEADMetadata metadata = new MinimalLEADMetadata(uid, name, description);
        metadata.setResourceId(templateID);      

        LEADresourceDocument leadResourceDocument = LEADresourceDocument.Factory.parse(metadata.toString());
 
        LEADResourceType leadResourceType = leadResourceDocument.getLEADresource();
       
        String leadResourceString = leadResourceDocument.toString();
View Full Code Here

        String collectionResourceId = null; // return value
  
        try {
        
            // Create a "Workflow Templates" collection for this project
            MinimalLEADMetadata collMetadata = new MinimalLEADMetadata(userID, WORKFLOW_TEMPLATES_COLLECTION,
                    "Workflow templates for project " + projectId);
            collMetadata.setResourceId("Unknown");
           
          CreateCollectionsRequestDocument createColl = CreateCollectionsRequestDocument.Factory.newInstance();
            CreateCollectionsRequestType collParams = createColl.addNewCreateCollectionsRequest();
            
            LEADresourceDocument workflowCollResourceDoc = LEADresourceDocument.Factory.parse(collMetadata.toString());
            LEADResourceType workflowCollResourceType = workflowCollResourceDoc.getLEADresource();
            
            CollectionType collectionType = collParams.addNewCollectionInfo();
            collectionType.setAssignNewResourceID(true);
            collectionType.setParentID(projectId);
View Full Code Here

    CreateCollectionsRequestType createCollectionReq = CreateCollectionsRequestType.Factory
        .newInstance();
    CollectionType collectionInfo = createCollectionReq
        .addNewCollectionInfo();

    MinimalLEADMetadata minimalLEADMetadata = new MinimalLEADMetadata(
        userDN, experimentName, experimentDescription);

    LEADResourceType leadResource = minimalLEADMetadata
        .getLeadResourceDoc().getLEADresource();
    ThemeType theme = leadResource.addNewData().addNewIdinfo()
        .addNewKeywords().addNewTheme();

    theme.addNewThemekey().setStringValue(instanceID);
View Full Code Here

TOP

Related Classes of edu.indiana.extreme.lead.metadata.util.MinimalLEADMetadata

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.