Package org.alfresco.webservice.repository

Examples of org.alfresco.webservice.repository.RepositoryServiceSoapBindingStub


    WebServiceFactory.setTimeoutMilliseconds(SOCKET_TIMEOUT);
    WebServiceFactory.setEndpointAddress(ALFRESCO_ENDPOINT_TEST_SERVER);
    AuthenticationUtils.startSession(ALFRESCO_USERNAME, ALFRESCO_PASSWORD);
    Reference reference = new Reference();
    try{
      RepositoryServiceSoapBindingStub repositoryService = WebServiceFactory.getRepositoryService();
      Query query = new Query(Constants.QUERY_LANG_LUCENE, ALFRESCO_TEST_QUERY);
      QueryResult queryResult = repositoryService.query(STORE, query, false);
      ResultSetRow row = queryResult.getResultSet().getRows(0);
      reference.setStore(STORE);
      reference.setUuid(row.getNode().getId());
      return reference;
    } finally {
View Full Code Here


    WebServiceFactory.setEndpointAddress(ALFRESCO_ENDPOINT_TEST_SERVER);
    AuthenticationUtils.startSession(ALFRESCO_USERNAME, ALFRESCO_PASSWORD);
   
    try{
   
      RepositoryServiceSoapBindingStub repositoryService = WebServiceFactory.getRepositoryService();        
      Query query = new Query(Constants.QUERY_LANG_LUCENE, luceneQuery);
      QueryResult queryResult = repositoryService.query(STORE, query, false);
     
      ResultSetRow row = queryResult.getResultSet().getRows(0);
     
      Reference reference = new Reference();
      reference.setStore(STORE);
View Full Code Here

    WebServiceFactory.setEndpointAddress(ALFRESCO_ENDPOINT_TEST_SERVER);
    AuthenticationUtils.startSession(ALFRESCO_USERNAME, ALFRESCO_PASSWORD);
   
    try{
   
      RepositoryServiceSoapBindingStub repositoryService = WebServiceFactory.getRepositoryService();        
      Query query = new Query(Constants.QUERY_LANG_LUCENE, luceneQuery);
      QueryResult queryResult = repositoryService.query(STORE, query, false);
     
      ResultSetRow row = queryResult.getResultSet().getRows(0);
     
      Reference reference = new Reference();
      reference.setStore(STORE);
      reference.setUuid(row.getNode().getId());
     
      Predicate predicate = new Predicate();
      predicate.setStore(STORE);
      predicate.setNodes(new Reference[]{reference});
     
      CMLDelete cmlDelete = new CMLDelete();
      cmlDelete.setWhere(predicate);
     
      CML cml = new CML();
      cml.setDelete(new CMLDelete[]{cmlDelete});
     
      repositoryService.update(cml);
     
    } finally {
      AuthenticationUtils.endSession();
    }
  }
View Full Code Here

    AuthenticationUtils.startSession(ALFRESCO_USERNAME, ALFRESCO_PASSWORD);
   
    QueryResult queryResultTestArea = null;
    try {
     
      RepositoryServiceSoapBindingStub repositoryService = WebServiceFactory.getRepositoryService();
      Query query = new Query(Constants.QUERY_LANG_LUCENE, ALFRESCO_TEST_QUERY);
      queryResultTestArea = repositoryService.query(STORE, query, false);

      if(queryResultTestArea.getResultSet().getTotalRowCount()>0){
     
        ResultSetRow row = queryResultTestArea.getResultSet().getRows(0);
       
        Reference reference = new Reference();
        reference.setStore(STORE);
        reference.setUuid(row.getNode().getId());
       
        Predicate predicate = new Predicate();
        predicate.setStore(STORE);
        predicate.setNodes(new Reference[]{reference});
       
        CMLDelete cmlDelete = new CMLDelete();
        cmlDelete.setWhere(predicate);
       
        CML cml = new CML();
        cml.setDelete(new CMLDelete[]{cmlDelete});
       
        repositoryService.update(cml);
      }
       
      } finally {
        AuthenticationUtils.endSession();
      }
View Full Code Here

  public Reference getTestFolder() throws RepositoryFault, RemoteException{
    WebServiceFactory.setEndpointAddress(ALFRESCO_ENDPOINT_TEST_SERVER);
    AuthenticationUtils.startSession(ALFRESCO_USERNAME, ALFRESCO_PASSWORD);
    Reference reference = new Reference();
    try{
      RepositoryServiceSoapBindingStub repositoryService = WebServiceFactory.getRepositoryService();
      Query query = new Query(Constants.QUERY_LANG_LUCENE, ALFRESCO_TEST_QUERY);
      QueryResult queryResult = repositoryService.query(STORE, query, false);
      ResultSetRow row = queryResult.getResultSet().getRows(0);
      reference.setStore(STORE);
      reference.setUuid(row.getNode().getId());
      return reference;
    } finally {
View Full Code Here

    WebServiceFactory.setEndpointAddress(ALFRESCO_ENDPOINT_TEST_SERVER);
    AuthenticationUtils.startSession(ALFRESCO_USERNAME, ALFRESCO_PASSWORD);
   
    try{
   
      RepositoryServiceSoapBindingStub repositoryService = WebServiceFactory.getRepositoryService();        
      Query query = new Query(Constants.QUERY_LANG_LUCENE, luceneQuery);
      QueryResult queryResult = repositoryService.query(STORE, query, false);
     
      ResultSetRow row = queryResult.getResultSet().getRows(0);
     
      Reference reference = new Reference();
      reference.setStore(STORE);
View Full Code Here

    WebServiceFactory.setEndpointAddress(ALFRESCO_ENDPOINT_TEST_SERVER);
    AuthenticationUtils.startSession(ALFRESCO_USERNAME, ALFRESCO_PASSWORD);
   
    try{
   
      RepositoryServiceSoapBindingStub repositoryService = WebServiceFactory.getRepositoryService();        
      Query query = new Query(Constants.QUERY_LANG_LUCENE, luceneQuery);
      QueryResult queryResult = repositoryService.query(STORE, query, false);
     
      ResultSetRow row = queryResult.getResultSet().getRows(0);
     
      Reference reference = new Reference();
      reference.setStore(STORE);
      reference.setUuid(row.getNode().getId());
     
      Predicate predicate = new Predicate();
      predicate.setStore(STORE);
      predicate.setNodes(new Reference[]{reference});
     
      CMLDelete cmlDelete = new CMLDelete();
      cmlDelete.setWhere(predicate);
     
      CML cml = new CML();
      cml.setDelete(new CMLDelete[]{cmlDelete});
     
      repositoryService.update(cml);
     
    } finally {
      AuthenticationUtils.endSession();
    }
  }
View Full Code Here

    AuthenticationUtils.startSession(ALFRESCO_USERNAME, ALFRESCO_PASSWORD);
   
    QueryResult queryResultTestArea = null;
    try {
     
      RepositoryServiceSoapBindingStub repositoryService = WebServiceFactory.getRepositoryService();
      Query query = new Query(Constants.QUERY_LANG_LUCENE, ALFRESCO_TEST_QUERY);
      queryResultTestArea = repositoryService.query(STORE, query, false);

      if(queryResultTestArea.getResultSet().getTotalRowCount()>0){
     
        ResultSetRow row = queryResultTestArea.getResultSet().getRows(0);
       
        Reference reference = new Reference();
        reference.setStore(STORE);
        reference.setUuid(row.getNode().getId());
       
        Predicate predicate = new Predicate();
        predicate.setStore(STORE);
        predicate.setNodes(new Reference[]{reference});
       
        CMLDelete cmlDelete = new CMLDelete();
        cmlDelete.setWhere(predicate);
       
        CML cml = new CML();
        cml.setDelete(new CMLDelete[]{cmlDelete});
       
        repositoryService.update(cml);
      }
       
      } finally {
        AuthenticationUtils.endSession();
      }
View Full Code Here

  public Reference getTestFolder() throws RepositoryFault, RemoteException{
    WebServiceFactory.setEndpointAddress(ALFRESCO_ENDPOINT_TEST_SERVER);
    AuthenticationUtils.startSession(ALFRESCO_USERNAME, ALFRESCO_PASSWORD);
    Reference reference = new Reference();
    try{
      RepositoryServiceSoapBindingStub repositoryService = WebServiceFactory.getRepositoryService();
      Query query = new Query(Constants.QUERY_LANG_LUCENE, ALFRESCO_TEST_QUERY);
      QueryResult queryResult = repositoryService.query(STORE, query, false);
      ResultSetRow row = queryResult.getResultSet().getRows(0);
      reference.setStore(STORE);
      reference.setUuid(row.getNode().getId());
      return reference;
    } finally {
View Full Code Here

    WebServiceFactory.setEndpointAddress(ALFRESCO_ENDPOINT_TEST_SERVER);
    AuthenticationUtils.startSession(ALFRESCO_USERNAME, ALFRESCO_PASSWORD);
   
    try{
   
      RepositoryServiceSoapBindingStub repositoryService = WebServiceFactory.getRepositoryService();        
      Query query = new Query(Constants.QUERY_LANG_LUCENE, luceneQuery);
      QueryResult queryResult = repositoryService.query(STORE, query, false);
     
      ResultSetRow row = queryResult.getResultSet().getRows(0);
     
      Reference reference = new Reference();
      reference.setStore(STORE);
View Full Code Here

TOP

Related Classes of org.alfresco.webservice.repository.RepositoryServiceSoapBindingStub

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.