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 | 
getCalendarNoMillis(int year,
                   int month,
                   int day,
                   int hourOfDay,
                   int minute,
                   int second)
Gets a calendar instance 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)
RepositoryInitpopulate in interface RepositoryInitpopulate in class DefaultRepositoryInitsession - the session to use to create objectsprotected DocumentModel createLeftDoc(CoreSession session)
session - the sessionprotected DocumentModel createRightDoc(CoreSession session)
session - the sessionpublic static Calendar getCalendarNoMillis(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 © 2019 Nuxeo. All rights reserved.