public class RestServerInit extends Object implements RepositoryInit
Modifier and Type | Field and Description |
---|---|
static String[] |
FIRSTNAMES |
static String[] |
GROUPNAMES |
static String[] |
LASTNAMES |
static int |
MAX_NOTE |
Constructor and Description |
---|
RestServerInit() |
Modifier and Type | Method and Description |
---|---|
protected void |
createUser(UserManager um,
String userId,
String firstName,
String lastName) |
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 int MAX_NOTE
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 objectsprotected void createUser(UserManager um, String userId, String firstName, String lastName)
public 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 © 2018 Nuxeo. All rights reserved.