public abstract class SocialTimelineCachePersistence extends Object implements SocialTimelinePersistenceAPI
Modifier and Type | Class and Description |
---|---|
protected class |
SocialTimelineCachePersistence.SocialCacheControl |
Modifier and Type | Field and Description |
---|---|
static String |
SOCIAL_FILES |
static String |
THRESHOLD_PROPERTY |
Constructor and Description |
---|
SocialTimelineCachePersistence() |
Modifier and Type | Method and Description |
---|---|
void |
dispose() |
List<SocialActivitiesEvent> |
getLastEvents(SocialEventType key) |
List<SocialActivitiesEvent> |
getLastEvents(SocialUser user) |
Integer |
getNumberOfEventsOnFile(SocialEventType type,
String originalFilename) |
Integer |
getNumberOfEventsOnFile(SocialUser socialUser,
String originalFilename) |
List<SocialActivitiesEvent> |
getRecentEvents(SocialEventType type) |
List<SocialActivitiesEvent> |
getRecentEvents(SocialUser user) |
List<SocialActivitiesEvent> |
getTimeline(SocialEventType type,
String timelineFile) |
List<SocialActivitiesEvent> |
getTimeline(SocialUser socialUser,
String timelineFile) |
Integer |
getTypeMostRecentFileIndex(SocialEventType type) |
Integer |
getUserMostRecentFileIndex(SocialUser user) |
Integer |
numberOfPages(SocialEventType type) |
int |
priority() |
void |
setup() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
persist, persist, saveAllEvents
public static final String SOCIAL_FILES
public static final String THRESHOLD_PROPERTY
public void setup()
setup
in interface SocialTimelinePersistenceAPI
public List<SocialActivitiesEvent> getLastEvents(SocialEventType key)
getLastEvents
in interface SocialTimelinePersistenceAPI
public Integer numberOfPages(SocialEventType type)
numberOfPages
in interface SocialTimelinePersistenceAPI
public List<SocialActivitiesEvent> getRecentEvents(SocialEventType type)
getRecentEvents
in interface SocialTimelinePersistenceAPI
public Integer getTypeMostRecentFileIndex(SocialEventType type)
getTypeMostRecentFileIndex
in interface SocialTimelinePersistenceAPI
public List<SocialActivitiesEvent> getTimeline(SocialEventType type, String timelineFile)
getTimeline
in interface SocialTimelinePersistenceAPI
public List<SocialActivitiesEvent> getLastEvents(SocialUser user)
getLastEvents
in interface SocialTimelinePersistenceAPI
public List<SocialActivitiesEvent> getRecentEvents(SocialUser user)
getRecentEvents
in interface SocialTimelinePersistenceAPI
public Integer getUserMostRecentFileIndex(SocialUser user)
getUserMostRecentFileIndex
in interface SocialTimelinePersistenceAPI
public List<SocialActivitiesEvent> getTimeline(SocialUser socialUser, String timelineFile)
getTimeline
in interface SocialTimelinePersistenceAPI
public Integer getNumberOfEventsOnFile(SocialEventType type, String originalFilename)
getNumberOfEventsOnFile
in interface SocialTimelinePersistenceAPI
public Integer getNumberOfEventsOnFile(SocialUser socialUser, String originalFilename)
getNumberOfEventsOnFile
in interface SocialTimelinePersistenceAPI
public int priority()
priority
in interface org.uberfire.commons.lifecycle.PriorityDisposable
public void dispose()
dispose
in interface org.uberfire.commons.lifecycle.Disposable
Copyright © 2012–2019 JBoss by Red Hat. All rights reserved.