public class DocumentDiffRepositoryInit extends DefaultRepositoryInit
Constructor and Description |
---|
DocumentDiffRepositoryInit() |
Modifier and Type | Method and Description |
---|---|
protected DocumentModel |
createLeftDoc(CoreSession session)
Creates the left doc.
|
protected DocumentModel |
createRightDoc(CoreSession session)
Creates the right doc.
|
static Calendar |
getCalendarUTCNoMillis(int year,
int month,
int day,
int hourOfDay,
int minute,
int second)
Gets a calendar set on the UTC time zone with 0 milliseconds.
|
static String |
getLeftDocPath() |
static String |
getRightDocPath() |
void |
populate(CoreSession session)
Creates the default objects in an empty repository.
|
public DocumentDiffRepositoryInit()
public static String getLeftDocPath()
public static String getRightDocPath()
public void populate(CoreSession session)
RepositoryInit
populate
in interface RepositoryInit
populate
in class DefaultRepositoryInit
session
- the session to use to create objectsprotected DocumentModel createLeftDoc(CoreSession session)
session
- the sessionprotected DocumentModel createRightDoc(CoreSession session)
session
- the sessionpublic static Calendar getCalendarUTCNoMillis(int year, int month, int day, int hourOfDay, int minute, int second)
year
- the yearmonth
- the monthday
- the dayhourOfDay
- the hour of dayminute
- the minutesecond
- the secondCopyright © 2015 Nuxeo SA. All rights reserved.