org.alfresco.sample.webservice
Class Query1

java.lang.Object
  extended by org.alfresco.sample.webservice.SamplesBase
      extended by org.alfresco.sample.webservice.Query1

public class Query1
extends SamplesBase

Web service sample 2

This sample shows how to execute a search using the repository web service and how to query for a nodes parents.

Author:
Roy Wetherall

Field Summary
 
Fields inherited from class org.alfresco.sample.webservice.SamplesBase
PASSWORD, SAMPLE_FOLDER, STORE, USERNAME
 
Constructor Summary
Query1()
           
 
Method Summary
static org.alfresco.webservice.types.Reference executeSearch()
          Executes a sample query and provides an example of using a parent query.
static void main(java.lang.String[] args)
          Main function
static void outputResultSet(org.alfresco.webservice.types.ResultSetRow[] rows)
          Helper method to output the rows contained within a result set
static java.lang.String replacePathNamespace(java.lang.String inputPath)
           
 
Methods inherited from class org.alfresco.sample.webservice.SamplesBase
createSampleData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Query1

public Query1()
Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Main function

Throws:
java.lang.Exception

replacePathNamespace

public static java.lang.String replacePathNamespace(java.lang.String inputPath)

executeSearch

public static org.alfresco.webservice.types.Reference executeSearch()
                                                             throws javax.xml.rpc.ServiceException,
                                                                    java.rmi.RemoteException,
                                                                    org.alfresco.webservice.repository.RepositoryFault
Executes a sample query and provides an example of using a parent query.

Returns:
returns a reference to a folder that is the parent of the search results ( used in further samples)
Throws:
javax.xml.rpc.ServiceException - Service exception
java.rmi.RemoteException - Remove exception
org.alfresco.webservice.repository.RepositoryFault - Repository fault

outputResultSet

public static void outputResultSet(org.alfresco.webservice.types.ResultSetRow[] rows)
Helper method to output the rows contained within a result set

Parameters:
rows - an array of rows


Copyright © 2008. All Rights Reserved.