How to import and export content in HIPPO CMS - hippocms

Do we have provision in HIPPO CMS where I can export the content and documents from one environment and import it onto another environment? I am using HIPPO CMS 7.9.3 community edition and deployed it on Apache tomcat 7

there are a number of tools, depending on your use case. Can you tell us more about what you are trying to do?
You can manually import and export content via the console [1].
You may want to take advantage of our enterprise replication module if that fits your use case [2].
You can also write a custom application that uses the JCR API or a REST interface. It really depends on what you are trying to do.
Hope this helps!
[1] - http://www.onehippo.org/library/concepts/content-repository/enhanced-xml-import.html
[2] - http://www.onehippo.org/library/enterprise/enterprise-features/replication/replication-overview.html

I don't think you can do it from the Hippo console. To me, it looks like the tools William suggested is the only way out... But I'll be pleased if you prove me wrong!

Related

Is there any API to automate extension installation in XWiki?

I use xwiki Enterprise 7.4. The official way to install extensions is to use either Import feature or Extension Manager. Both ways require user interaction. I would like to automate extension installation process, so no user interactions for extension installation. Is it possible? I've automated spaces/pages creation via REST API. Maybe it's possible to use REST API to do it, I can't find it in documentation.
Why do I need it? It's simple: I've automated all the steps of deployment/migration process for my application and I would like to automate xwiki extension installation too.
As indicated by Vincent, you can use the extension script service from inside XWiki. This script service is what the UI is using so everything the UI is doing can be done also by any script (as long as the script author has proper rights).
I just wrote a Velocity example on http://extensions.xwiki.org/xwiki/bin/view/Extension/Extension+Script+Module#HNon-interactiveandsynchronousinstall:
{{velocity}}
## Create install request for extension with id org.xwiki.contrib:extension-tweak and version 1.3 on current wiki
#set($installRequest = $services.extension.createInstallRequest('org.xwiki.contrib:extension-tweak', '1.3', "wiki:${xcontext.database}"))
## Disable interactive mode
$installRequest.setInteractive(false)
## Start install
#set($installJob = $services.extension.install($installRequest))
## Wait until install is done
$installJob.join()
{{/velocity}}
All you need is to put the Thomas' script in a page. You can use the REST API for that. See: http://platform.xwiki.org/xwiki/bin/view/Features/XWikiRESTfulAPI#HPageresources
Then you call the URL from your application.
Ex: you put the code in XWiki/AutoInstall with a REST call and then you can call this page with the following url:
http://localhost:8080/xwiki/bin/get/XWiki/AutoInstall
I suggest to use the "get" action from the URL to avoid unnecessary informations.
The XWiki Core dev team is aware of this and it's in the roadmap but it's not done yet. For example you can see that it was planned for the 8.0 roadmap but it slipped (http://www.xwiki.org/xwiki/bin/view/Roadmaps/Archives8xCycle/).
Continue improving upgrade tools: Scriptable upgrades (priority 1), Simulation (priority 2)
It seems there's no issue created for this at the moment. Would be great if you could create a JIRA issue at http://xwiki.org in the XWiki Platform project.
Now regarding extensions, there's some Script Service that can be used to manipulate extensions, see http://extensions.xwiki.org/xwiki/bin/view/Extension/Extension+Script+Module
However this documentation is pretty terse. You could check the java code at https://github.com/xwiki/xwiki-platform/blob/95abd2951123431c1624c124b49ca7a88b41be00/xwiki-platform-core/xwiki-platform-extension/xwiki-platform-extension-script/src/main/java/org/xwiki/extension/script/ExtensionManagerScriptService.java#L84-L84
I've not personally used this script service so I can't give real examples of using this API

Incremental Update for HIPPO CMS

I am using Hippos CMS 7.9.3 community addition.I am using eclipse as an IDE.Currently we create template on DEV environment and move all repository to test environment , But this will vanish the existing content in Testing environment.Do we have any systematic way in HIPPO CMS either from UI or back-end by which I can incrementally import selected data from one environment to another without hampering the existing data
Hippo CMS has some very decent support for incremental updates to remote instances. In practice, you should never have to remove the remote data to update an instance. The two most commonly used scenarios to get data/content/configuration/code to a remote environment are as follows:
1) You can use the Hippo CMS Console application (http://localhost:8080/cms/console).
It offers an XML export/import functionality, which you can leverage to get changes across. It also offers a diff/patch tool, which allows you to create patches based on your project baseline.
2) For a more automated way, I would advise you to look at content bootstrapping and updater modules.
The online Hippo documentation contains some very decent guidelines/ examples on how the mechanims works and how to do this.
Deploying content and configuration updates
Hippo application release management

Easiest Way To Move a Single Page DotNetNuke Page From Dev to Live?

We have a DotNetNuke installation that we have on a dev environment and we are setting it up on our live server now. Everything looks great and is working just fine that regard. We were wondering if it was possible that once a page has been updated or created on our dev server and we're happy with it, is there a simple and easy way to push that page to the live server?
Dev has it's own database.
Live has a different database to itself.
We have seen some programs like SQL Sync but we do not want to push all pages from dev to live because there might still be some pages being worked on when another one finishes so we must have a way to push individual pages instead of everything.
Thank you so much for any help!
you can use Exporting And Importing feature in dotnetnuke it allows you to export a single page or whole web site you can follow this links for helo
Page import export
Great article to look for

How to create a VM using VSphere java API?

I want to write some java code to create a VM, install iso (or copy the existing vm set up if install iso is not possible) and assign disk space, create login for the created VM.
I looked at Vsphere API examples in http://vijava.svn.sourceforge.net/viewvc/vijava/trunk/src/com/vmware/vim25/mo/samples/, it has power on/off of installed VM. I could not figure out how to create one with the API. I have two questions:
What are the steps to create VM using API?
What API or objects should be used to create VM programatically?
Appreciate your help.
I know i am about a year late, but when you download the SDK, you will have a sample how to create a VMdisk. Understand the code and then you can just do it your way :)
The link to the SDK.zip file
http://communities.vmware.com/community/vmtn/developer/forums/java_toolkit
and inside the SDk, the VMDisk file:
\SDK\vsphere-ws\java\JAXWS\samples\com\vmware\vm
You'll want to keep the VMware Web Services SDK documentation handy - unfortunately they changed formats recently so I'm not sure how good of deep links I can get for you. The specific method I've used is CreateVM_Task (you'll have to scroll down to find it on the Folder object). Alternatively, if you're using a resource pool, CreateChildVM_Task may be more applicable (again, scroll down to find it).
There is also a section of documentation on creating VMs that has some incomplete example code.
As far as where in the hierarchy to create the VM, that's up to you. Each host or cluster will have a vmfolder property that you can use to create VMs, or any other folder may work. Good luck!

Apache 2 Administration Tools on Ubuntu or Windows

I am totally new to Apache and Ubuntu, is there an admin tools where the available functions and features and settings are more accessible? I am finding it very difficult to do even the simplest things.... please help.
Cheers.
apacheConf is available for most flavours of Linux, however:
1) it ignores the distribution-specific layout of the config files and implements its own structure
2) its just a tool for updating the config - it doesn't actually tell you what the config options mean
3) like any gui tool it abstracts the actual data (in this case, the apache config) you are manipulating
4) there are at least 3 different programs branded as apacheConf
http://www.apache-gui.com/apache-linux.html
http://www.redhat.com/docs/manuals/linux/RHL-7.2-Manual/custom-guide/apacheconf.html
and the config tool bundled in Mandriva
5) it limits what you can actually configure to the design on the UI (e.g. RedHat apacheConf only allows you to set one listening address
Having buttons to click does not help you understand what you are actually trying to achieve (unless your objective is an MCSE of course ;). I'd recommend you go get a good book on Apache config and take the time to read it.
C.
Try Webmin - a nice web-based GUI tool. There is a .deb package for ubuntu in their downloads page.
http://webmin.com
Here are some options to consider for helping you to better understand how Apache works and how to administer/configure the server:
Read the official HOW-TO
Take a look at a commercial tool like ApacheConf
Ask questions here about the specific issues you are having
HTH,
-aj