01-23-2010 03:36 AM
03-05-2010 05:18 PM
03-07-2010 09:28 AM
The javadoc for the org.alfresco.webservice.repository package is generated from the "web-service-client" project. The build puts the java doc into \build\docs\java\generated below web-service-client. However it is javadoc for generated code so while better than nothing, it is still machine generated documentation.Every javadoc is usually machine generated, isn't it?
03-08-2010 05:06 AM
03-08-2010 05:47 AM
03-22-2010 09:24 AM
03-22-2010 09:30 AM
03-22-2010 10:29 AM
// Get the infomation from the result set
// […]
for(ResultSetRow row : rows) {
String nodeId = row.getNode().getId();
ContentResult contentResult = new ContentResult(nodeId);
// iterate through the columns of the result set to extract specific named values
for (NamedValue namedValue : row.getColumns()) {
if (namedValue.getName().endsWith(Constants.PROP_CREATED) == true) {
contentResult.setCreateDate(namedValue.getValue());
} else if (namedValue.getName().endsWith(Constants.PROP_NAME) == true) {
contentResult.setName(namedValue.getValue());
}
}
// […]And this is simply not working - at least not with a recent version of Alfresco Community. It must be:[…] Reference ref = new Reference(spacesStore, uuid, null);
Predicate prd = new Predicate(new Reference[]
{
ref
}, null, null);;
try
{
Node[] nodes = repositoryService.get(prd);
if (nodes.length >= 1)
{
Node node = nodes[0];
NamedValue[] props = node.getProperties();
[…]I don't know why I encountered mostly the first sample while the second was working and the first not. Somehow there must have been a time when the first was working (either). This is just a sample of pitfalls I encountered.
04-05-2010 08:28 AM
I discovered that the remote API does not seem to be contained somewhere in the javadoc linked above.
Again another example of outdated or mismatching documentation… :cry:
It is really frustrating - plenty of APIs but neither one nor the other is a pleasure to use…
Hi, were you looking for http://dev.alfresco.com/resource/docs/java/repository/index.html?overview-summary.html ?
The root page would be http://dev.alfresco.com/resource/docs/java/
04-05-2010 06:46 PM
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.