KIE Uberfire Social Activities Backend 6.2.0.CR4

org.kie.uberfire.social.activities.persistence
Class SocialTimelineCachePersistence

java.lang.Object
  extended by org.kie.uberfire.social.activities.persistence.SocialTimelineCachePersistence
All Implemented Interfaces:
SocialTimelinePersistenceAPI
Direct Known Subclasses:
SocialTimelineCacheClusterPersistence, SocialTimelineCacheInstancePersistence

public abstract class SocialTimelineCachePersistence
extends Object
implements SocialTimelinePersistenceAPI


Nested Class Summary
protected  class SocialTimelineCachePersistence.SocialCacheControl
           
 
Field Summary
static String SOCIAL_FILES
           
static String THRESHOLD_PROPERTY
           
 
Constructor Summary
SocialTimelineCachePersistence()
           
 
Method Summary
 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)
           
 void setup()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.kie.uberfire.social.activities.service.SocialTimelinePersistenceAPI
persist, persist, saveAllEvents
 

Field Detail

SOCIAL_FILES

public static final String SOCIAL_FILES
See Also:
Constant Field Values

THRESHOLD_PROPERTY

public static final String THRESHOLD_PROPERTY
See Also:
Constant Field Values
Constructor Detail

SocialTimelineCachePersistence

public SocialTimelineCachePersistence()
Method Detail

setup

public void setup()
Specified by:
setup in interface SocialTimelinePersistenceAPI

getLastEvents

public List<SocialActivitiesEvent> getLastEvents(SocialEventType key)
Specified by:
getLastEvents in interface SocialTimelinePersistenceAPI

numberOfPages

public Integer numberOfPages(SocialEventType type)
Specified by:
numberOfPages in interface SocialTimelinePersistenceAPI

getRecentEvents

public List<SocialActivitiesEvent> getRecentEvents(SocialEventType type)
Specified by:
getRecentEvents in interface SocialTimelinePersistenceAPI

getTypeMostRecentFileIndex

public Integer getTypeMostRecentFileIndex(SocialEventType type)
Specified by:
getTypeMostRecentFileIndex in interface SocialTimelinePersistenceAPI

getTimeline

public List<SocialActivitiesEvent> getTimeline(SocialEventType type,
                                               String timelineFile)
Specified by:
getTimeline in interface SocialTimelinePersistenceAPI

getLastEvents

public List<SocialActivitiesEvent> getLastEvents(SocialUser user)
Specified by:
getLastEvents in interface SocialTimelinePersistenceAPI

getRecentEvents

public List<SocialActivitiesEvent> getRecentEvents(SocialUser user)
Specified by:
getRecentEvents in interface SocialTimelinePersistenceAPI

getUserMostRecentFileIndex

public Integer getUserMostRecentFileIndex(SocialUser user)
Specified by:
getUserMostRecentFileIndex in interface SocialTimelinePersistenceAPI

getTimeline

public List<SocialActivitiesEvent> getTimeline(SocialUser socialUser,
                                               String timelineFile)
Specified by:
getTimeline in interface SocialTimelinePersistenceAPI

getNumberOfEventsOnFile

public Integer getNumberOfEventsOnFile(SocialEventType type,
                                       String originalFilename)
Specified by:
getNumberOfEventsOnFile in interface SocialTimelinePersistenceAPI

getNumberOfEventsOnFile

public Integer getNumberOfEventsOnFile(SocialUser socialUser,
                                       String originalFilename)
Specified by:
getNumberOfEventsOnFile in interface SocialTimelinePersistenceAPI

KIE Uberfire Social Activities Backend 6.2.0.CR4

Copyright © 2001-2015 JBoss by Red Hat. All Rights Reserved.