Repository Web Service

cancel
Showing results for 
Search instead for 
Did you mean: 

Repository Web Service

resplin
Intermediate
0 0 3,101

Obsolete Pages{{Obsolete}}

The official documentation is at: http://docs.alfresco.com



Web ServicesBack to Alfresco Content Management Web Services.




This service provides read and write operations against a repository. The operations are not tied to any particular domain model (that is, it is generic in nature); other higher-level services will provide domain specific support.


Change Log


Types


QueryResult


Association


  • associationType - cms:Name
  • direction - string (source, target)

UpdateResult


Methods


createStore


Creates a new store in the repository.

Store createStore(xsd:string scheme, xsd:string address)

Parameters:


  • scheme - this indicates the type of store being referenced, the most common being workspace. Other valid store schemes include versionStore, user, search and system.
  • address - this is the name of the store.

Return:


  • reference to the newly created store

getStores


Retrieve list of stores where content resources are held.

Store[] getStores()

Return:


  • a list of the stores held in the respoitory

query


Execute a query against a store (could be a virtual store).

Query results are batched to the number of rows as defined by the SOAP header. Subsequent batches are retrieved using fetchMore.

QueryResult query(Store store, Query query, boolean includeMetaData)

Parameters:


  • store - the store
  • query - the query details
  • includeMetaData - indicates whether the query meta data should be included in the query result

Return:


  • the query result

queryChildren


Execute a query to retrieve the children of the specified resource.

QueryResult queryChildren(Reference node)

Parameters:


  • node - the reference

Return:


  • a query result containing the children of the specified reference

queryParents


Execute a query to retrieve the parents of the specified resource.

QueryResult queryParents(Reference node)

Parameters:


  • node - the reference

Return:


  • a query result containing the parents of the specified reference

queryAssociated


Execute a query to retrieve associated resources of the specified resource.

QueryResult queryAssociated(Reference node, Association association)

Parameters:


  • node - the reference
  • association- the association

Return:


  • a query result containing the references associatied to the specified reference

fetchMore


Fetch the next batch of query results.

QueryResult fetchMore(string querySession)

Parameters:


  • querySession - the query session id

Return:


  • a query result containing the next batch of results

update


Execute a CML script to manipulate the contents of a repository store.

UpdateResult[] update(CML statements)

Parameters:


  • statements - CML statements

Return:


  • the results of the CML statements executed

describe


Describe a content resource.

NodeDefinition[] describe(Predicate items)

Parameters:


  • items - the predicate

Return:


  • the node defintions of the specified items

get


Gets the resource identified.

Node[] get(Predicate[] where)

Parameters:


  • where - the predicate

Return:


  • the node objects of the items referenced