cancel
Showing results for 
Search instead for 
Did you mean: 

How to give path for My Home

nys
Champ in-the-making
Champ in-the-making
Hi All,

I am new to Alfresco.I have set up sdk and ran the FirstWebServiceClient which creates a content in Company Home.
I would like to create a space in My Home and upload content to it.
Could any one please help how to give path name (ex: /app:company_home) for My Home and some hints regarding how to upload a document to it.

Thanks,
NYS
9 REPLIES 9

morpheus
Champ in-the-making
Champ in-the-making
what do you want to do , create a space via an webservice or just upload content to an existing space ?

maybe this will help you: 
via an RepositoryService you can get the content of an space: the path in the Reference has to  e.g. /app:company_home/cm:sample_folder/cm:myFolder
now  you can read the content via an ContentService,
uploading is then done like in the example  ContentReadAndWrite

sguillemette
Champ in-the-making
Champ in-the-making
Hi,

I am not able to access all directory (space) that I created with the ALfresco Community Portal VIA the PHP library. In the directory Company Home, I created a directory named bis and when I try to access it as follows:

- $nodes = $session->query($spacesStore, "PATH:\"//app:company_home/app:bis\"");

The variable $nodes is empty.

But when I try to access a directory inside the Company Home like Projects
- $nodes = $session->query($spacesStore, "PATH:\"//app:company_home/appSmiley Tonguerojects\"");
Everything is ok.

N.B: Everything is done with the user admin

Regards
Stephsguillemette
 
Posts: 1
Joined: 30 Jul 2008, 10:58

0 Points (What's this)
Private messageE-mailYIM

morpheus
Champ in-the-making
Champ in-the-making
Hi,
I
- $nodes = $session->query($spacesStore, "PATH:\"//app:company_home/app:bis\"");
i think the prefix for an space is "cm:" , look in the schema, there you will find the declarations

sguillemette
Champ in-the-making
Champ in-the-making
Hi morpheus,

You 're right… Thanks.

$nodes = $session->query($spacesStore, "PATH:\"//app:company_home/cm:bis\"");

Steph

nys
Champ in-the-making
Champ in-the-making
Hi morpheus,

Thanks for your reply.

nys
Champ in-the-making
Champ in-the-making
Hi Morpheus ,

Thanks for your reply.
My requirement is to upload the documents into alfresco repository through java code. The documents are all pdf files.I tried reading the file from the location and writing it into the repository.As the file size is large its giving me java heap space error. I found uploadContentServlet..in the developer guide..but i don't know how to use it..do you have any example code snippet for uploadContentServlet?

Thanks,
nys

morpheus
Champ in-the-making
Champ in-the-making
sry , but haven´t used it so far …

umanath
Champ in-the-making
Champ in-the-making
Hi I am able to create folder in Company Home by java code like /app:company_home/cm:Umanath through admin level

But I am a user level: I can not create folder in My Home
What the Jave code to create Folder

umanath
Champ in-the-making
Champ in-the-making
Hi all,
I find out “How to path for My Home”.
First the My Home is under the Company Home\User Homes.
For example I am not an admin. And one of the user level Namely Umanath.
So the Alfresco created Umanath under Company Home\User Homes\Umanath.
So I am coded "/app:company_home/app:user_homes/sys:Umanath/cm:testFolder" to create folder testFolder.
After my Program is executed I saw the testFolder under My Home.
So My Home is same as "/app:company_home/app:user_homes/sys:Umanath”.

Try this tye of code. Enjoy.
Smiley Very Happy