public class NewsUpdater
extends org.opentoutatice.ecm.scanner.AbstractScanUpdater
| Constructor and Description |
|---|
NewsUpdater() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(int index,
Object scannedObject) |
protected String |
getBoundaryValue(NewsPeriod newsPeriod)
Gets boundary according to news periodicity.
|
Date |
getCurrentDate() |
SpaceMember |
getMember() |
Date |
getNextNewsDate(Date previousBaseDate,
String boundaryValue,
boolean init)
Gets next news Date.
|
static org.nuxeo.ecm.core.api.DocumentModel |
getUserWorkspacesRoot()
Gets root of user's workspaces.
|
Object |
initialize(int index,
Object scannedObject) |
static boolean |
isTestModeSet()
Getter for test mode.
|
void |
setCurrentDate(Date currentDate) |
void |
setMember(SpaceMember member) |
Object |
toModel(Object scannedObject) |
Object |
update(int index,
Object scannedObject) |
Object |
updateOnError(int index,
Object scannedObject) |
public Date getCurrentDate()
public SpaceMember getMember()
public void setMember(SpaceMember member)
member - the member to setpublic void setCurrentDate(Date currentDate)
currentDate - the currentDate to setpublic static org.nuxeo.ecm.core.api.DocumentModel getUserWorkspacesRoot()
throws Exception
Exceptionpublic static boolean isTestModeSet()
public Object toModel(Object scannedObject) throws Exception
toModel in class org.opentoutatice.ecm.scanner.AbstractScanUpdaterExceptionprotected String getBoundaryValue(NewsPeriod newsPeriod) throws Exception
newsPeriod - Exceptionpublic boolean accept(int index,
Object scannedObject)
throws Exception
accept in class org.opentoutatice.ecm.scanner.AbstractScanUpdaterExceptionpublic Object initialize(int index, Object scannedObject) throws Exception
initialize in class org.opentoutatice.ecm.scanner.AbstractScanUpdaterExceptionpublic Object update(int index, Object scannedObject) throws Exception
update in class org.opentoutatice.ecm.scanner.AbstractScanUpdaterExceptionpublic Date getNextNewsDate(Date previousBaseDate, String boundaryValue, boolean init) throws Exception
previousBaseDate - ExceptionCopyright © 2019. All rights reserved.