Package org.alfresco.webservice.types

Examples of org.alfresco.webservice.types.Reference


    int i = 0;
    while (i < rval.length){
      String nodeReference = documentIdentifiers[i];
      String uuid = NodeUtils.getUuidFromNodeReference(nodeReference);
     
      Reference reference = new Reference();
      reference.setStore(SearchUtils.STORE);
      reference.setUuid(uuid);
     
      Predicate predicate = new Predicate();
      predicate.setStore(SearchUtils.STORE);
      predicate.setNodes(new Reference[]{reference});
     
View Full Code Here


      if (Logging.connectors.isDebugEnabled())
        Logging.connectors.debug("Alfresco: Processing document identifier '"
            + nodeReference + "'");

      Reference reference = new Reference();
      reference.setStore(SearchUtils.STORE);
      reference.setUuid(uuid);

      Predicate predicate = new Predicate();
      predicate.setStore(SearchUtils.STORE);
      predicate.setNodes(new Reference[] { reference });
View Full Code Here

    int i = 0;
    while (i < rval.length){
      String nodeReference = documentIdentifiers[i];
      String uuid = NodeUtils.getUuidFromNodeReference(nodeReference);
     
      Reference reference = new Reference();
      reference.setStore(SearchUtils.STORE);
      reference.setUuid(uuid);
     
      Predicate predicate = new Predicate();
      predicate.setStore(SearchUtils.STORE);
      predicate.setNodes(new Reference[]{reference});
     
View Full Code Here

      if (Logging.connectors.isDebugEnabled())
        Logging.connectors.debug("Alfresco: Processing document identifier '"
            + nodeReference + "'");

      Reference reference = new Reference();
      reference.setStore(SearchUtils.STORE);
      reference.setUuid(uuid);

      Predicate predicate = new Predicate();
      predicate.setStore(SearchUtils.STORE);
      predicate.setNodes(new Reference[] { reference });
View Full Code Here

    int i = 0;
    while (i < rval.length){
      String nodeReference = documentIdentifiers[i];
      String uuid = NodeUtils.getUuidFromNodeReference(nodeReference);
     
      Reference reference = new Reference();
      reference.setStore(SearchUtils.STORE);
      reference.setUuid(uuid);
     
      Predicate predicate = new Predicate();
      predicate.setStore(SearchUtils.STORE);
      predicate.setNodes(new Reference[]{reference});
     
View Full Code Here

   * @param password
   * @param session
   * @return filtered children of the Company Home without all the special spaces
   */
  public static QueryResult getChildrenFromCompanyHome(String username, String password, AuthenticationDetails session){
    Reference companyHome = new Reference(STORE, null, XPATH_COMPANY_HOME);
    QueryResult queryResult = SearchUtils.getChildren(username,password,session,companyHome);
    ResultSet rs = queryResult.getResultSet();
    ResultSetRow[] rows = rs.getRows();
    List<ResultSetRow> filteredRows = new ArrayList<ResultSetRow>();
    for (ResultSetRow row : rows) {
View Full Code Here

  private static final Store STORE = new Store(Constants.WORKSPACE_STORE, "SpacesStore");
 
  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 {
      AuthenticationUtils.endSession();
    }
  }
View Full Code Here

     
      //the content
      String content = "Alfresco Testdata "+name;
     
      //the new node
      Reference reference = result[0].getDestination();
 
      //write the content in the new node
      ContentServiceSoapBindingStub contentService = WebServiceFactory.getContentService();
      contentService.write(reference, Constants.PROP_CONTENT, content.getBytes(), contentFormat);
     
View Full Code Here

      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());
     
      ContentFormat contentFormat = new ContentFormat();
      contentFormat.setEncoding("UTF-8");
      contentFormat.setMimetype("text/plain");
     
View Full Code Here

      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});
     
View Full Code Here

TOP

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

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.