cancel
Showing results for 
Search instead for 
Did you mean: 

the path whenn i added a content

tchotchatown
Champ in-the-making
Champ in-the-making
hi ,
i try to extract the path of a content that i added it to my contentstore.my problem is that i can't find the soltion although i  searched in addedContentDialog.java ,BaseCotentWizard , node ,noderef ……
i just want to make the path into a String that i would use in my project
thx
2 REPLIES 2

dgenard
Champ on-the-rise
Champ on-the-rise
If you're using Java API, you can try this :
    nodeService.getPath(nodeRef).toDisplayPath(nodeService, permissionService);
Denis

tchotchatown
Champ in-the-making
Champ in-the-making
i added tryed this line into BaseContentWizard.java:
String path = nodeService.getPath(nodeRef).toDisplayPath(nodeService, permissionService);
but there are somes errors :

/home/lassoued/workspace/root/projects/web-client/source/java/org/alfresco/web/bean/content/BaseContentWizard.java:495: nodeService has private access in org.alfresco.web.bean.dialog.BaseDialogBean
    [javac]       path =     nodeService.getPath(nodeRef).toDisplayPath(nodeService, permissionService);
    [javac]                                                             ^
    [javac] /home/lassoued/workspace/root/projects/web-client/source/java/org/alfresco/web/bean/content/BaseContentWizard.java:495: cannot find symbol
    [javac] symbol  : variable permissionService
    [javac] location: class org.alfresco.web.bean.content.BaseContentWizard
    [javac]       path =     nodeService.getPath(nodeRef).toDisplayPath(nodeService, permissionService);
    [javac]                                                                          ^
    [javac] /home/lassoued/workspace/root/projects/web-client/source/java/org/alfresco/web/bean/content/BaseContentWizard.java:495: cannot find symbol
    [javac] symbol  : variable nodeRef
    [javac] location: class org.alfresco.web.bean.content.BaseContentWizard
    [javac]       path =     nodeService.getPath(nodeRef).toDisplayPath(nodeService, permissionService);
    [javac]                                      ^
    [javac] /home/lassoued/workspace/root/projects/web-client/source/java/org/alfresco/web/bean/content/BaseContentWizard.java:495: nodeService has private access in org.alfresco.web.bean.dialog.BaseDialogBean
    [javac]       path =     nodeService.getPath(nodeRef).toDisplayPath(nodeService, permissionService);
    [javac]                  ^



the nodeService is a private attribut baseDialgbean.java  :   transient private NodeService nodeService;