Package org.nuxeo.ecm.restapi.test
Class RestServerInit
- java.lang.Object
-
- org.nuxeo.ecm.restapi.test.RestServerInit
-
- All Implemented Interfaces:
org.nuxeo.ecm.core.test.annotations.RepositoryInit
public class RestServerInit extends Object implements org.nuxeo.ecm.core.test.annotations.RepositoryInit
Repo init to test Rest API- Since:
- 5.7.2
-
-
Field Summary
Fields Modifier and Type Field Description static String[]
FIRSTNAMES
static String[]
GROUPNAMES
static String[]
LASTNAMES
static int
MAX_NOTE
-
Constructor Summary
Constructors Constructor Description RestServerInit()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Field Detail
-
MAX_NOTE
public static final int MAX_NOTE
- See Also:
- Constant Field Values
-
FIRSTNAMES
public static final String[] FIRSTNAMES
-
LASTNAMES
public static final String[] LASTNAMES
-
GROUPNAMES
public static final String[] GROUPNAMES
-
-
Method Detail
-
populate
public void populate(CoreSession session)
- Specified by:
populate
in interfaceorg.nuxeo.ecm.core.test.annotations.RepositoryInit
-
createUser
protected void createUser(UserManager um, String userId, String firstName, String lastName)
-
getFolder
public static DocumentModel getFolder(int index, CoreSession session)
-
getNote
public static DocumentModel getNote(int index, CoreSession session)
-
getFile
public static DocumentModel getFile(int index, CoreSession session)
-
getPowerUser
public static NuxeoPrincipal getPowerUser()
-
-