public class RestServerInit extends Object implements RepositoryInit
Modifier and Type | Field and Description |
---|---|
static String[] |
FIRSTNAMES |
static String[] |
GROUPNAMES |
static String[] |
LASTNAMES |
Constructor and Description |
---|
RestServerInit() |
Modifier and Type | Method and Description |
---|---|
static DocumentModel |
getFile(int index,
CoreSession session) |
static DocumentModel |
getFolder(int index,
CoreSession session) |
static DocumentModel |
getNote(int index,
CoreSession session) |
static NuxeoPrincipal |
getPowerUser() |
void |
populate(CoreSession session)
Creates the default objects in an empty repository.
|
public static final String[] FIRSTNAMES
public static final String[] LASTNAMES
public static final String[] GROUPNAMES
public void populate(CoreSession session) throws ClientException
RepositoryInit
populate
in interface RepositoryInit
session
- the session to use to create objectsClientException
public static DocumentModel getFolder(int index, CoreSession session) throws ClientException
ClientException
public static DocumentModel getNote(int index, CoreSession session) throws ClientException
ClientException
public static DocumentModel getFile(int index, CoreSession session) throws ClientException
ClientException
public static NuxeoPrincipal getPowerUser() throws ClientException
ClientException
Copyright © 2015 Nuxeo SA. All rights reserved.