}
}
@Override
public String getFolderSystemFile(FolderEntity folder) {
Document doc = DocumentHelper.createDocument();
Element e = doc.addElement("folder");
e.addElement("title").setText(notNull(folder.getTitle()));
Element p = e.addElement("permissions");
List<FolderPermissionEntity> list = getDao().getFolderPermissionDao()
.selectByFolder(folder.getId());
for (FolderPermissionEntity permission : list) {
createFolderPermissionXML(p, permission);
}
return doc.asXML();
}