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[] GROUPNAMES
public RestServerInit()
public void populate(CoreSession session)
RepositoryInit
populate
in interface RepositoryInit
session
- the session to use to create objectspublic static DocumentModel getFolder(int index, CoreSession session)
public static DocumentModel getNote(int index, CoreSession session)
public static DocumentModel getFile(int index, CoreSession session)
public static NuxeoPrincipal getPowerUser()
Copyright © 2015 Nuxeo SA. All rights reserved.