Goal: I would like to export Users from a given Magnolia CMS instance & then import them in another one.
What I tried
Export from the given Magnolia CMS instance
Open admin central
Click on Tools > JCR Tools in the App Launcher
Click on the Exporter tab
Select users workspace & type /admin for the path
Click on Execute
Then import in the other instance
Open admin central
Click on Tools > JCR Tools in the App Launcher
Click on the Importer tab
Select users workspace & type /admin for the path
Upload the file exported previously (see steps of "Export from the given Magnolia CMS instance"
Click on Execute
However, I end up with an admin parent folder in the Users tab (under Security).
Resources
Importing and exporting JCR data
The behavior you explained makes absolutely sense. When you export the JCR-Structure the exported node is admin, when you import it under the path /admin, you will have the JCR-structure /admin/admin.
If you import at /, you will face the problem, that a folder called admin already exists, the imported folder will therefore be renamed to /admin[2] (and is therefore invisible in the security app).
Possible (imperfect) solutions:
exporting & importing the user nodes one by one
export from /admin. Then import in /admin. After importing: move the users one folder up using the JCR App (seems not to be possible in the security app)
export from /admin. Then remove the /admin using a text (or XML) editor. Import in /admin.
before importing, delete the admin-folder (in the JCR App) , in case your users are all the same
Solution 3 explained
This solution has the huge advantage of simplicity: all you need is a text editor.
Edit the exported files (on a copy):
1.a. Delete line number 2 until the line containing the first user
1.b. Insert instead the following (a root folder):
<sv:node sv:name="jcr:root" xmlns:sv="http://www.jcp.org/jcr/sv/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<sv:property sv:name="jcr:primaryType" sv:type="Name">
<sv:value>rep:root</sv:value>
</sv:property>
Then import the file (Tools | Import) with options:
Repository : Users
Base Path : /admin
Keep version : unticked
File : chose corresponding file
UUID : Remove existing nodes with the same id (you may want to change this)
Related
I'm trying to save several of my queries as XML files in order to re-assemble my database in another location where the only viable transfer method is text or XML files via email (long story).
When I use the built-in export function, Access allows me to select a save location and nest the schema inside of the XML file, and then says that the export was completed successfully. The file is not in the destination folder, and no error was thrown.
This only happens when exporting bound queries. Other Access elements (tables and forms, for example) export just fine.
If I watch the folder during the export process, I see a file appear very briefly, and then dissapear. Has anyone else experienced this?
How can we open a word document or pdf file by clicking on any link in Odoo? What are the steps need to be done?
1) Install module Document Management System (document).
2) Create directory (knowledge menu unit) or use existing one. Attach to this category required file (button "Attachments" above the form)
3) Since it was downloaded, it would generate an url. To access it: mouse right click on downloaded file - save url
4) Add the url to the website. Pressing it will download the file (publically available).
Note : Above Functionlity Work on odoo 8.
Document Management System module Remove in odoo 9 community and enterprice so this all file store in ir.attachment model.
So. Programatically, it is pretty much the same. The module 'document' allows to attach files to any object, including product.product (or product.template). So you have to find it:
attachment_ids = self.env['ir.attachment'].search([('res_model','=','product.product'),('res_id','=',product.id)]).
Where product.id - is id of needed product. E.g. you can store attachment_ids in product.product class as one2many field. After that you can get an url of any attachment. For example, for binary files:
for attach in attachment_ids:
url = 'https://yourcompany.com'+'/web/binary/saveas?model=ir.attachment&field=datas&filename_field=name&id='+str(attach.id)
This url may be easily added to the website product site, using foreach in product.attachment_ids
Specifically, in project A when I go File -> save a copy of package as... -> I get a dialog asking me what the package location should be (File system/sql server/ssis package store), and the protection level (eg Encrypt sensitive data with user key).
On the same computer, same copy of VS2010, working on project B - when I save any packages from this project in the same way, it does not give me the above dialog, instead prompting for a location on the file system directly, with no option to encrypt sensitive data.
In project B, I can still exec these packages from the command line with dtexec/F, but I'm concerned because I'm not able to encrypt the sensitive data.
Does anyone know which setting determines which of these behaviours SSIS will use? Thanks very much.
On my development server we have several subfolders representing different releases.
Root
|-R1
|-R2
My QA server is dedicated to R1. I want to promote all the reports and universes in R1 to the Root of QA.
I do the BIAR export and it stores the R1 path and tries to put all the contents into an R1 folder on QA. I want to redirect that import to the root of QA.
Possible? Using BusinessObjects XI 3.x.
Not possible without some hacking.
Export the content to a BIAR file
Rename the BIAR file from .biar to .zip
Open the archive, and extract businessobjects.xml
Modify businessobjects.xml to change the parent CUIDs of the objects that you want located in a different folder.
Repackage the zip, rename it back to .biar, and import.
Obviously you'd want to do a fair amount of testing with the method before doing it in a live environment...
As Joe said, this isn't possible without changing the metadata (the XML file) that resides in the BIAR archive.
Is there any reason why you wouldn't just want to import the R1 folder into QA and then move its contents to the root? It will save you quite some time not having to hack the XML and it'll be a lot less error prone.
I am struggling with the file api of windows store apps. I want to create subfolder while data export to write some additional files into. That means:
data.txt
extra
+ 1.txt
+ 2.txt
The data.txt is picked by user so it's no problem to write. But how could I create this subfolder?
storageFolder.getFolderAsync("C\some\path\where\data\is\extra").done(...
does not work. It seems to fail because of the security restrictions.
I could live with the restiction to write into documents. But it also doesn not work when the user selects a data.txt in documents folder.
I'm afraid that this is "As Designed" behavior.
Yoy can do whatever you want in you application specific folders (AppData)
You can read/edit a file anywhere on the system when a user give you the authorization through file activation or filepicker. There is api to extend lifetime of that authorization
You can read/edit a file Inside knownfolder if your app has required capabilities checked in its manifest.
Other file system interactions will fail due to security restrictions.
If decided to let the user select a directory instead of a file. FolderPicker will handle this job. It's not my prefered solution because the user loose the ability to pick a name of the target folder. A create option in FolderPicker like in Windows non-RT would solve it, but no way yet.
So my user have to create a export folder in Documents by Explorer and then pick it in app.
My structure is:
Documents
+ export (created by user in explorer)
++ 2012-10-04 (hard coded by app)
+++ data.txt
+++ extra
++++ 1.txt
++++ 2.txt