Create a site through java API

cancel
Showing results for 
Search instead for 
Did you mean: 
lucastancapiano
Partner

Create a site through java API

Trying to create a site through the SiteService, it is never complete because when I go in share, the document library is not visible, so I would know all java operation to get a complete navigable site as for the creation of the site through share. Is it possible?

3 Replies
cristinamr
Advanced

Re: Create a site through java API

Good morning!

Check this post, you have there how to do it step by step.

Cheers!

--
VenziaIT: helping companies since 2005! Our ECM products: AQuA & Seidoc
lucastancapiano
Partner

Re: Create a site through java API

Thank you. The sample is without dashboard. How create it?

cristinamr
Advanced

Re: Create a site through java API

Hi!

// Default site preset
String sitePreset = "site-dashboard";
SiteInfo siteInfo = siteService.createSite(sitePreset,
    .....

Yes it is: he is using the site preset already defined "site-dashboard". You cannot create your own using api rest (more info) but you can create your custom site preset in your project (more info here).

Cheers!

--
VenziaIT: helping companies since 2005! Our ECM products: AQuA & Seidoc