11-13-2006 01:02 PM
String home_folder = almacen.getScheme()+"://"+almacen.getAddress()+"/"+folder_ref.getUuid();
NewUserDetails[] usr_details = new NewUserDetails[]{new NewUserDetails(folder_name,folder_name, createPersonProperties(home_folder,folder_name,"",folder_name+"@asdf.com"))};[size=75]where: almacen is the Store object and folder_ref is the Reference object of the folder created in it.[/size]predicate = new Predicate(new Reference[]{folder_ref},null,null);
ACE[] user_ace = new ACE[]{new ACE(folder_name,Constants.ALL_PERMISSIONS, AccessStatus.acepted)};
WebServiceFactory.getAccessControlService().addACEs(predicate, user_ace);[size=75]In this case, folder name is equal to the username in Alfresco…[/size]javax.faces.FacesException: Cannot get value for expression '#{NavigationBean.location}'
caused by:
org.apache.jasper.JasperException: Cannot get value for expression '#{NavigationBean.location}'
caused by:
javax.faces.el.EvaluationException: Cannot get value for expression '#{NavigationBean.location}'
caused by:
javax.faces.el.EvaluationException: org.alfresco.web.bean.NavigationBean
caused by:
javax.faces.el.EvaluationException: Bean: org.alfresco.web.bean.NavigationBean, property: location
caused by:
java.lang.reflect.InvocationTargetException
caused by:
org.alfresco.service.cmr.repository.InvalidNodeRefException: Node does not exist: workspace://SpacesStore/4256538e-733b-11db-a9bd-89febb49b21e
Node Identifier Primary Path: /{user_folder}geronimo
Reference: workspace://personal/4256538e-733b-11db-a9bd-89febb49b21e
Type: {http://www.alfresco.org/model/content/1.0}folder
Parent: workspace://personal/a0bb0866-6e81-11db-b14b-fbaff357da54
[…]
Aspects {http://www.alfresco.org/model/content/1.0}auditable
{http://www.alfresco.org/model/system/1.0}referenceable
Permissions Inherit: true
Assigned Permission To Authority Access
All geronimo ALLOWED
[…]
11-15-2006 11:45 AM
11-16-2006 11:32 AM
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.