Modifier and Type | Field and Description |
---|---|
static String |
DELETE_TRANSITION |
static String |
FILE1_CONTENT |
Constructor and Description |
---|
Helper() |
Modifier and Type | Method and Description |
---|---|
static DocumentModel |
createDocument(CoreSession session,
DocumentModel doc) |
static String |
createUserWorkspace(CoreSession repo,
String username) |
static GregorianCalendar |
getCalendar(int year,
int month,
int day,
int hours,
int minutes,
int seconds)
Gets a Calendar object.
|
static GregorianCalendar |
getCalendar(int year,
int month,
int day,
int hours,
int minutes,
int seconds,
TimeZone tz)
Gets a Calendar object with a specific timezone
|
static Map<String,String> |
makeNuxeoRepository(CoreSession session) |
static Map<String,String> |
makeNuxeoRepository(CoreSession session,
boolean addProxy)
Creates data in the repository using the Nuxeo API.
|
static String |
read(InputStream in,
String charset)
Reads a stream into a string.
|
static DocumentModel |
saveDocument(CoreSession session,
DocumentModel doc) |
static void |
sleepForAuditGranularity()
For audit, make sure event dates don't have the same millisecond.
|
public static final String DELETE_TRANSITION
public static final String FILE1_CONTENT
public Helper()
public static String read(InputStream in, String charset) throws IOException
IOException
public static GregorianCalendar getCalendar(int year, int month, int day, int hours, int minutes, int seconds)
public static GregorianCalendar getCalendar(int year, int month, int day, int hours, int minutes, int seconds, TimeZone tz)
public static Map<String,String> makeNuxeoRepository(CoreSession session)
public static Map<String,String> makeNuxeoRepository(CoreSession session, boolean addProxy)
public static void sleepForAuditGranularity()
public static DocumentModel createDocument(CoreSession session, DocumentModel doc)
public static DocumentModel saveDocument(CoreSession session, DocumentModel doc)
public static String createUserWorkspace(CoreSession repo, String username)
Copyright © 2016 Nuxeo SA. All rights reserved.