Package org.alfresco.webservice.types

Examples of org.alfresco.webservice.types.ParentReference


      AuthenticationUtils.endSession();
    }
  }
 
  public void createNewDocument(Reference folder, String name) throws IOException{
    ParentReference folderReference =
        new ParentReference(STORE, folder.getUuid(), null, Constants.ASSOC_CONTAINS, null);

    folderReference.setChildName("{"+Constants.NAMESPACE_CONTENT_MODEL +"}"+ name);
   
    NamedValue[] contentProps = new NamedValue[1];
    contentProps[0] = Utils.createNamedValue(Constants.PROP_NAME, name);
    CMLCreate create = new CMLCreate("1", folderReference, null, null, null, Constants.TYPE_CONTENT, contentProps);
View Full Code Here


     
      AuthenticationUtils.startSession(ALFRESCO_USERNAME, ALFRESCO_PASSWORD);
     
      UpdateResult[] result = null;
     
      ParentReference companyHomeParent =
          new ParentReference(STORE, null, "/app:company_home", Constants.ASSOC_CONTAINS, null);

      String name = "testdata";
      companyHomeParent.setChildName("{"+Constants.NAMESPACE_CONTENT_MODEL +"}" + name);
     
      NamedValue[] contentProps = new NamedValue[1];
      contentProps[0] = Utils.createNamedValue(Constants.PROP_NAME, name);
      CMLCreate create = new CMLCreate("1", companyHomeParent, null, null, null, Constants.TYPE_FOLDER, contentProps);
     
View Full Code Here

      AuthenticationUtils.endSession();
    }
  }
 
  public void createNewDocument(Reference folder, String name) throws IOException{
    ParentReference folderReference =
        new ParentReference(STORE, folder.getUuid(), null, Constants.ASSOC_CONTAINS, null);

    folderReference.setChildName("{"+Constants.NAMESPACE_CONTENT_MODEL +"}"+ name);
   
    NamedValue[] contentProps = new NamedValue[1];
    contentProps[0] = Utils.createNamedValue(Constants.PROP_NAME, name);
    CMLCreate create = new CMLCreate("1", folderReference, null, null, null, Constants.TYPE_CONTENT, contentProps);
View Full Code Here

     
      AuthenticationUtils.startSession(ALFRESCO_USERNAME, ALFRESCO_PASSWORD);
     
      UpdateResult[] result = null;
     
      ParentReference companyHomeParent =
          new ParentReference(STORE, null, "/app:company_home", Constants.ASSOC_CONTAINS, null);

      String name = "testdata";
      companyHomeParent.setChildName("{"+Constants.NAMESPACE_CONTENT_MODEL +"}" + name);
     
      NamedValue[] contentProps = new NamedValue[1];
      contentProps[0] = Utils.createNamedValue(Constants.PROP_NAME, name);
      CMLCreate create = new CMLCreate("1", companyHomeParent, null, null, null, Constants.TYPE_FOLDER, contentProps);
     
View Full Code Here

      AuthenticationUtils.endSession();
    }
  }
 
  public void createNewDocument(Reference folder, String name) throws IOException{
    ParentReference folderReference =
        new ParentReference(STORE, folder.getUuid(), null, Constants.ASSOC_CONTAINS, null);

    folderReference.setChildName("{"+Constants.NAMESPACE_CONTENT_MODEL +"}"+ name);
   
    NamedValue[] contentProps = new NamedValue[1];
    contentProps[0] = Utils.createNamedValue(Constants.PROP_NAME, name);
    CMLCreate create = new CMLCreate("1", folderReference, null, null, null, Constants.TYPE_CONTENT, contentProps);
View Full Code Here

     
      AuthenticationUtils.startSession(ALFRESCO_USERNAME, ALFRESCO_PASSWORD);
     
      UpdateResult[] result = null;
     
      ParentReference companyHomeParent =
          new ParentReference(STORE, null, "/app:company_home", Constants.ASSOC_CONTAINS, null);

      String name = "testdata";
      companyHomeParent.setChildName("{"+Constants.NAMESPACE_CONTENT_MODEL +"}" + name);
     
      NamedValue[] contentProps = new NamedValue[1];
      contentProps[0] = Utils.createNamedValue(Constants.PROP_NAME, name);
      CMLCreate create = new CMLCreate("1", companyHomeParent, null, null, null, Constants.TYPE_FOLDER, contentProps);
     
View Full Code Here

      AuthenticationUtils.endSession();
    }
  }
 
  public void createNewDocument(Reference folder, String name) throws IOException{
    ParentReference folderReference =
        new ParentReference(STORE, folder.getUuid(), null, Constants.ASSOC_CONTAINS, null);

    folderReference.setChildName("{"+Constants.NAMESPACE_CONTENT_MODEL +"}"+ name);
   
    NamedValue[] contentProps = new NamedValue[1];
    contentProps[0] = Utils.createNamedValue(Constants.PROP_NAME, name);
    CMLCreate create = new CMLCreate("1", folderReference, null, null, null, Constants.TYPE_CONTENT, contentProps);
View Full Code Here

     
      AuthenticationUtils.startSession(ALFRESCO_USERNAME, ALFRESCO_PASSWORD);
     
      UpdateResult[] result = null;
     
      ParentReference companyHomeParent =
          new ParentReference(STORE, null, "/app:company_home", Constants.ASSOC_CONTAINS, null);

      String name = "testdata";
      companyHomeParent.setChildName("{"+Constants.NAMESPACE_CONTENT_MODEL +"}" + name);
     
      NamedValue[] contentProps = new NamedValue[1];
      contentProps[0] = Utils.createNamedValue(Constants.PROP_NAME, name);
      CMLCreate create = new CMLCreate("1", companyHomeParent, null, null, null, Constants.TYPE_FOLDER, contentProps);
     
View Full Code Here

      AuthenticationUtils.endSession();
    }
  }
 
  public void createNewDocument(Reference folder, String name) throws IOException{
    ParentReference folderReference =
        new ParentReference(STORE, folder.getUuid(), null, Constants.ASSOC_CONTAINS, null);

    folderReference.setChildName("{"+Constants.NAMESPACE_CONTENT_MODEL +"}"+ name);
   
    NamedValue[] contentProps = new NamedValue[1];
    contentProps[0] = Utils.createNamedValue(Constants.PROP_NAME, name);
    CMLCreate create = new CMLCreate("1", folderReference, null, null, null, Constants.TYPE_CONTENT, contentProps);
View Full Code Here

     
      AuthenticationUtils.startSession(ALFRESCO_USERNAME, ALFRESCO_PASSWORD);
     
      UpdateResult[] result = null;
     
      ParentReference companyHomeParent =
          new ParentReference(STORE, null, "/app:company_home", Constants.ASSOC_CONTAINS, null);

      String name = "testdata";
      companyHomeParent.setChildName("{"+Constants.NAMESPACE_CONTENT_MODEL +"}" + name);
     
      NamedValue[] contentProps = new NamedValue[1];
      contentProps[0] = Utils.createNamedValue(Constants.PROP_NAME, name);
      CMLCreate create = new CMLCreate("1", companyHomeParent, null, null, null, Constants.TYPE_FOLDER, contentProps);
     
View Full Code Here

TOP

Related Classes of org.alfresco.webservice.types.ParentReference

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.