10-25-2010 11:50 AM
10-26-2010 04:07 AM
10-26-2010 07:04 AM
Store storeRef = new Store(Constants.WORKSPACE_STORE, "SpacesStore");
Finally call RepositoryServiceSoapBindingStub get method and pass Predicate object to it. Predicate is used for defining search criteria for you alfresco using Lucene or some other Query. Interestingly you can pass only array of nodereferences and omit Query object (with null). Repository service will then fill array of nodereferences with missing data based on data available in structure (in this case StoreRef and UUID). Reference node = new Reference();
node.setStore(storeRef);
node.setUuid(nodeUUID);
Node [] nodes = null;
try
{
nodes = repositoryService.get(new Predicate(new Reference[]{node}, storeRef, null ));
}
catch (RepositoryFault e)
{
e.printStackTrace();
}
catch (RemoteException e)
{
e.printStackTrace();
}
return nodes[0].getReference().getPath();
10-26-2010 10:55 AM
10-26-2010 11:05 AM
try {
AuthenticationDetails aDetails = AuthenticationUtils.getAuthenticationDetails();
UserDetails ud = WebServiceFactory.getAdministrationService().getUser(aDetails.getUserName());
//ud.get
for (NamedValue item : ud.getProperties()) {
if (item.getName().equals("{http://www.alfresco.org/model/content/1.0}homeFolder"))
return item.getValue();
}
} catch (AdministrationFault e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (RemoteException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
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.