Create a site through java API

cancel
Showing results for 
Search instead for 
Did you mean: 
lucastancapiano
Active Member II

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?

4 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
Active Member II

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
McCollum85
Member II

Re: Create a site through java API

  1. Implement the domain model. Create the Order domain class.
  2. Implement the data source layer. Create an in-memory database. ...
  3. Implement the presentation layer. Create the REST endpoints. ...
  4. Pull the application together. Create the main method that will run the application.