掲示板

DLAppServiceUtil.copyFolder not working

11年前 に daniel m によって更新されました。

DLAppServiceUtil.copyFolder not working

New Member 投稿: 2 参加年月日: 12/11/01 最新の投稿
Environment: Liferay 6.1.0 GA1 with MySQL Server in Windows OS.

I tried to copy one folder with its content from one site to another site, both sites in the same Portal.
It does create the folder in the destination site but it is empty, no files or subfolders are copied. I am using it correctly? because the API says it performs a deep copy.
The folder files and subfolders have the same permissions as the folder, Guest, siteowner and sitemember.
this is the code:
...
//copy the folder the new subject folder
DLAppServiceUtil.copyFolder(classroomAssign.getGroupId(),folderOrigin.getFolderId(),folderDestination.getFolderId() ,
folderOrigin.getName(), folderOrigin.getDescription(), serviceContext);
...

thanks for your help,

Daniel
9年前 に Rafael Martínez Soler によって更新されました。

RE: DLAppServiceUtil.copyFolder not working

New Member 投稿: 12 参加年月日: 09/12/09 最新の投稿
The same issue here !!

The problem is that copyFolder don't populate the permissions of the source folder to the destination folder, then, the files cannot be copied.