cancel
Showing results for 
Search instead for 
Did you mean: 

Use of CopyService

werspike
Champ in-the-making
Champ in-the-making
Hallo!

I have an urgent question about the Interface CopyService.
I'm new to Alfresco.

I am working on a management tool (with JAVA), where we are using Alfresco - we manage projects, that looks like this

[Project(super=BaseProject(id=workspace://SpacesStore/f4b15e66-f26e-4e62-a38b-4e8d45bb9928, uid=null, title=null, description=null, projectNumber=P-1234, closed=false), type=Standard, startDate=Sat Jan 01 00:00:00 CET 2011, language=DE, offerType=null, developmentType=Adaption,
managerID=workspace://SpacesStore/c997565e-ffa3-4155-9d0c-795db2a07635, purchaserID=workspace://SpacesStore/e0d81b50-c481-45f8-a88a-8915f2956104, commercialProjectManagerID=workspace://SpacesStore/20bec8f9-8535-4c0a-bcd9-57e26ad9f55b, qualityManagerID=workspace://SpacesStore/8022dc1a-2713-40d8-8110-049ef039b8f4,

Now i should make a Copy of a already created project with CopyService.

I have already checked the Alfresco Wiki, but the articles, i have found there, couldn't help me a lot.

The thing is, what is the best way to Copy a Alfresco database?
And what is happening with the NodeRefs?

Thanks a lot
Werspike
2 REPLIES 2

patil
Champ on-the-rise
Champ on-the-rise
Hi,

Try WebProjectService for the same.
From the WebProjectService  get the reference of the WebProject you want to copy.
Later you can use NodeService or CopyService to copy the WebProject

Alfresco uses database to store the metadata. Actual content will be stored in binary files.(Alf_data)
NodeRef is the unique identifier to recognize the resource in alfresco.


Thanks,
Patil
Cignex Technologies
Bangalore

werspike
Champ in-the-making
Champ in-the-making
Hi!

Thanks for the information.

We have already created a Database for a Project - with an Id (by NodeRef) for the Project and the properties and associations for this.

When i will copy the project Noderef with CopyService.copy, what will happen with the properties and associations?

I think, i will get a new NodeRef with alle the data as a copy for this project? Is this correct?

And we hava Properties, which are also NodeRefs - will they be changed?

Thanks in advance.

Best Regards
Werspike