07-13-2009 04:25 AM
using RepositoryWebService;
…
//the provider creates a valid authenticated (including security headers) service using the information
//stored into custom someConnection object(e.g. user, ticket, etc);
RepositoryService service = WebServicesProvider.createRepositoryService(someConnection);
Query query = new Query();
query.statement = "@sys\\:node-uuid:\"" + myUuid + "\"";
Store spacesStore = new Store();
spacesStore.scheme = StoreEnum.workspace;
spacesStore.address = "SpacesStore";
QueryResult queryResult = service.query(spacesStore,query,true);
if (queryResult != null && queryResult.resultSet.rows != null)
{
foreach (ResultSetRow row in queryResult.resultSet.rows)
{
//do somenthing to the first(and the only one matching uuid)
//here row.columns contains just one NamedValue ("{http://www.alfresco.org/model/content/1.0}path")
//using alfresco 3.1 I get here a lot of info (owner, created date etc) with alfresco 3.2 I get just the path….
}
}
07-15-2009 03:37 AM
07-27-2009 07:38 AM
Reference r = new Reference(STORE, uuid, null);
Node[] a = repositoryService.get(new Predicate(new Reference[]{r}, STORE, null));
for(int i=0;i<a[0].getProperties().length;i++){
if(a[0].getProperties(i).getName().equalsIgnoreCase("{http://www.alfresco.org/model/content/1.0}content")){
url=a[0].getProperties(i).getValue();
}
}Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.